Commit a0bb6cc1 authored by tangwei's avatar tangwei

修改bug

parent 1a453b8b
...@@ -1772,7 +1772,7 @@ public class CommandController extends BaseController { ...@@ -1772,7 +1772,7 @@ public class CommandController extends BaseController {
e.put("longitude", String.valueOf(gps.getWgLon())); e.put("longitude", String.valueOf(gps.getWgLon()));
}); });
emqKeeper.getMqttClient().publish(topic, (result.get(0)).toString().getBytes(), RuleConfig.DEFAULT_QOS, false); emqKeeper.getMqttClient().publish(topic,JSONObject.toJSONString(result.get(0)).getBytes(), RuleConfig.DEFAULT_QOS, false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment