Ver código fonte

查询使用卫生间信息

chejianzheng 3 meses atrás
pai
commit
93891da2b8

+ 2 - 2
src/main/java/com/wxxcx/index/WxxcxIndexController.java

@@ -1113,8 +1113,8 @@ public class WxxcxIndexController<AesException extends Throwable> {
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("dev_id", dev_id);
         try {
-            MqttUtil.pub("/ops/update_furnitures", jsonObject.toJSONString());
-            System.out.println("发送topic/ops/update_furnitures, param = " +jsonObject.toJSONString() + " 成功");
+            MqttUtil.pub("/opc/update_furnitures", jsonObject.toJSONString());
+            System.out.println("发送topic: /opc/update_furnitures, param = " +jsonObject.toJSONString() + " 成功");
         } catch (Exception e) {
             r = JSONUtil.getErrorMsg(e);
         }