EDP KIT from OneNet

Files at this revision

API Documentation at this revision

Comitter:
ws1992108
Date:
Wed Apr 08 04:00:12 2020 +0000
Parent:
0:79de700849c5
Commit message:
by ws

Changed in this revision

EdpKit.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;