EDP KIT from OneNet
Diff: EdpKit.cpp
- Revision:
- 1:bfbe3a09a808
- Parent:
- 0:79de700849c5
--- a/EdpKit.cpp Wed Mar 29 03:07:27 2017 +0000 +++ b/EdpKit.cpp Wed Apr 08 04:00:12 2020 +0000 @@ -560,7 +560,7 @@ uint32 json_len = 0; pkg = NewBuffer(); - remainlen; + json_out = cJSON_Print(json_obj); json_len = strlen(json_out); @@ -966,13 +966,13 @@ int rc; if (ReadRemainlen(pkg, &remainlen)) return ERR_UNPACK_CMDREQ; - + rc = ReadUint16(pkg, cmdid_len); if (rc) return rc; if (ReadBytes(pkg, (uint8**)cmdid, *cmdid_len)) return ERR_UNPACK_CMDREQ; - + rc = ReadUint32(pkg, req_len); if (rc) return rc;