From 11bb26da4debb52350a9b5cfb42392f5ccc09ab9 Mon Sep 17 00:00:00 2001 From: "U-JOHNLIU\\jonhl" Date: Mon, 21 Feb 2022 22:03:23 +0800 Subject: [PATCH] fix: rm read meter --- apps/dgiot_meter/src/dgiot_meter.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/dgiot_meter/src/dgiot_meter.erl b/apps/dgiot_meter/src/dgiot_meter.erl index 77dabcb084..80b33846c5 100644 --- a/apps/dgiot_meter/src/dgiot_meter.erl +++ b/apps/dgiot_meter/src/dgiot_meter.erl @@ -140,7 +140,6 @@ parse_frame(?DLT376, Buff, Opts) -> to_frame(#{ <<"devaddr">> := Addr, <<"di">> := Di, - <<"command">> := <<"r">>, <<"protocol">> := ?DLT376, <<"data">> := <<"null">> } = Frame) -> @@ -157,7 +156,6 @@ to_frame(#{ to_frame(#{ <<"devaddr">> := Addr, <<"di">> := Di, - <<"command">> := <<"r">>, <<"protocol">> := ?DLT645, <<"data">> := <<"null">> } = Frame) -> @@ -293,8 +291,7 @@ to_frame(#{ to_frame(#{ <<"devaddr">> := Addr, <<"di">> := Di, - <<"protocol">> := ?DLT645, - <<"command">> := <<"r">> + <<"protocol">> := ?DLT645 } = Frame) -> dlt645_decoder:to_frame(Frame#{ <<"msgtype">> => ?DLT645,