Quellcode durchsuchen

add 网络泵协议

18339543638 vor 4 Jahren
Ursprung
Commit
dfa729f9d6

+ 2 - 2
jetlinks-components/network-component/network-core/src/main/java/org/jetlinks/community/netpump/NetPumpDeviceMetadataCodec.java

@@ -33,8 +33,8 @@ public class NetPumpDeviceMetadataCodec implements DeviceMessageCodec {
     @Override
     public Publisher<DeviceMessage> decode(@Nonnull MessageDecodeContext context) {
         byte[] bytes = context.getMessage().getPayload().array();
-//        String value = DataUtils.byteArrToHexString(bytes);
-        String value =new String(bytes);
+        String value = DataUtils.byteArrToHexString(bytes);
+//        String value =new String(bytes);
         MqttMessage message = (MqttMessage) context.getMessage();
         String topic = message.getTopic();
         if (!topic.endsWith("/properties/report")) {