fix(emqx_lwm2m_message): Path is built from binary format (#3987)

This commit is contained in:
Zaiming Shi 2021-01-04 17:31:21 +01:00 committed by GitHub
parent 9b6b762f1c
commit b9661cddfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ tlv_to_json(BaseName, TlvData) ->
TrueBaseName = basename(BaseName, undefined, Id, undefined, 2),
tlv_level2(TrueBaseName, Value, ObjDefinition, []);
List3=[#{tlv_object_instance:=_Id}, _|_] ->
tlv_level1(ObjectId, List3, ObjDefinition, [])
tlv_level1(integer_to_binary(ObjectId), List3, ObjDefinition, [])
end.