Selaa lähdekoodia

add 通道更新

18339543638 3 vuotta sitten
vanhempi
commit
af274a3fd4

+ 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")) {