Commit 3ff7276e authored by Jongmin Choi's avatar Jongmin Choi Committed by Randeep

Change pstat.deviceuuid from R-only to RW

As SWG decided that pstat.deviceuuid is RW,
pstat handler has been fixed accordingly.

Patch #1: Initial upload

Change-Id: Ibc0b1d86ddfb06306268dddaf07f38152d8800f2
Signed-off-by: default avatarJongmin Choi <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarKevin Kane <>
Reviewed-by: Nathan Heldt-Sheller's avatarNathan Heldt-Sheller <>
Reviewed-by: default avatarUze Choi <>
Reviewed-by: Randeep's avatarRandeep Singh <>
(cherry picked from commit 4f64da7a)
parent 94652bbd
......@@ -301,10 +301,6 @@ static OCStackResult CBORPayloadToPstatBin(const uint8_t *cborPayload, const siz
OICFree(strUuid );
strUuid = NULL;
if (roParsed)
*roParsed = true;
......@@ -603,6 +599,7 @@ static OCEntityHandlerResult HandlePstatPostRequest(const OCEntityHandlerRequest
gPstat->om = pstat->om;
gPstat->tm = pstat->tm;
gPstat->cm = pstat->cm;
memcpy(&(gPstat->deviceID), &(pstat->deviceID), sizeof(OicUuid_t));
memcpy(&(gPstat->rownerID), &(pstat->rownerID), sizeof(OicUuid_t));
// Convert pstat data into CBOR for update to persistent storage
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment