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