Commit 9aad0037 authored by 刘林's avatar 刘林

fix(equip):处理换流站发送消息不带消息类型问题

parent c441c027
......@@ -366,14 +366,14 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
indexAddress = jsonObject.getString("scadaid");
value = jsonObject.getInteger("value") == 1 ? "true" : "false";
timeStamp = jsonObject.getString("timestamp");
}else if (dataType.equals("analog")){
}else if (dataType.equals("discreate")){
indexAddress = jsonObject.getString("key");
value = jsonObject.getString("value");
value = jsonObject.getFloat("value") == 0.0 ? "false" : "true";
timeStamp = jsonObject.getString("time_stamp");
quality = jsonObject.getString("quality");
}else {
indexAddress = jsonObject.getString("key");
value = jsonObject.getFloat("value") == 0.0 ? "false" : "true";
value = jsonObject.getString("value");
timeStamp = jsonObject.getString("time_stamp");
quality = jsonObject.getString("quality");
}
......
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