|
|
@@ -112,9 +112,9 @@ public class MqttSubHandle {
|
|
|
// case "realtime_pos":
|
|
|
// subDasRealtimePos(topic, payload);
|
|
|
// break;
|
|
|
- case "dev_status":
|
|
|
- subDasDevStatus(topic, payload);
|
|
|
- break;
|
|
|
+// case "dev_status":
|
|
|
+// subDasDevStatus(topic, payload);
|
|
|
+// break;
|
|
|
case "exist":
|
|
|
subDasExist(topic, payload);
|
|
|
break;
|
|
|
@@ -161,8 +161,8 @@ public class MqttSubHandle {
|
|
|
String deviceInfoStr = obj.getString("device_info");
|
|
|
JSONObject deviceInfo = JSONObject.parseObject(deviceInfoStr);
|
|
|
|
|
|
- String software = deviceInfo.getString("firmware");
|
|
|
- dev.setSoftware(software);
|
|
|
+ String hardware = deviceInfo.getString("firmware");
|
|
|
+ dev.setHardware(hardware);
|
|
|
int indicatorLed = obj.getIntValue("indicator_led");
|
|
|
dev.setStatusLight(indicatorLed == 0 ? 1 : 0);
|
|
|
int isCeiling = obj.getIntValue("isCeiling");
|