Skip to content

Commit

Permalink
* 0.6 - 2015/07/28 - owagner
Browse files Browse the repository at this point in the history
  - include timestamps ("ts") in generated JSON objects
  - updated minimal-json to 0.9.4 and eclipse-paho to 1.0.2
  • Loading branch information
owagner committed Jul 28, 2015
1 parent 2f8ac39 commit 2efc01e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ See also

Changelog
---------
* 0.6 - 2015/07/28 - owagner
- include timestamps ("ts") in generated JSON objects
- updated minimal-json to 0.9.4 and eclipse-paho to 1.0.2

* 0.5 - 2015/03/19 - owagner
- now properly supports multiple ESP3 connections. Will filter duplicate messages within 500ms.
- changed state handling: will now retry failed connections every 10 seconds. Will keep running
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = '0.5'
version = '0.6'

apply plugin: 'java'
apply plugin: 'eclipse'
Expand All @@ -14,8 +14,8 @@ repositories {
}

dependencies {
compile 'com.eclipsesource.minimal-json:minimal-json:0.9.1'
compile 'org.eclipse.paho:mqtt-client:0.4.0'
compile 'com.eclipsesource.minimal-json:minimal-json:0.9.4'
compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
compile 'org.bidib.com.neuronrobotics:nrjavaserial:3.9.3.1'
}

Expand All @@ -24,7 +24,7 @@ task listJars << {
}

jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } { exclude "META-INF/**" }
archiveName 'eno2mqtt.jar'
manifest {
attributes 'Main-Class': 'com.tellerulam.eno2mqtt.Main',
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/tellerulam/eno2mqtt/MQTTHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ else if(val instanceof Float)
jso.add("val",((Float)val).floatValue());
else
jso.add("val",val.toString());
jso.add("ts",System.currentTimeMillis());
jso.add("eno_srcid",src);
jso.add("eno_dbm",-dbm);
String txtmsg=jso.toString();
Expand Down

0 comments on commit 2efc01e

Please sign in to comment.