1、中南院MQTT推送,时间到毫秒
This commit is contained in:
parent
108bf78bfe
commit
57de48e899
@ -78,7 +78,7 @@ public class ZNYMQTTForwarder extends Forwarder {
|
|||||||
tranData.setRposu(d);
|
tranData.setRposu(d);
|
||||||
String json = GsonUtil.toJson(tranData);
|
String json = GsonUtil.toJson(tranData);
|
||||||
String cryptJson = Des3Utils.encrypt(json,key,iv);
|
String cryptJson = Des3Utils.encrypt(json,key,iv);
|
||||||
logger.debug("forward to ZNY mqtt: {}, {}",json, cryptJson);
|
logger.info("forward to ZNY mqtt: {}, {}",json, cryptJson);
|
||||||
String topic = "/GnssData/"+locationRecord.getDeviceid()+"/Increment";
|
String topic = "/GnssData/"+locationRecord.getDeviceid()+"/Increment";
|
||||||
try {
|
try {
|
||||||
if(!mqttClient.publish(topic, cryptJson)) break;
|
if(!mqttClient.publish(topic, cryptJson)) break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user