This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
iotc library crashing upon update of iot central writable property - ESP8266 #113
Open
Description
openedon Apr 2, 2020
Steps to reproduce at high level:
- Create a a device template with 2 Telemetry values (temp,humidity), 1 command, 1 Writeble Property (bool)
- Create a device
- Follow steps in sample ESP 8286 and connect using necessary 5 parameters (wifi and IOT central device parameters)
- Telemetry values are reported fine
- If a Property is updated from IOT Central UI for the device, crash in ESP 8286 firmware while processing updated event payload
Crash logs look something like this:
=================
- Entering event handler of eventName: SettingsUpdated
-
- [SettingsUpdated] event was received. Payload => {"LatestFWV":{"value":11},"$version":19}
- ERROR: echoDesired has failed due to payload doesn't include the property: twin
================= - To be specific, crash observed at following code block:
void jsobject_free(jsobject_t *object) { if (object->tokens != NULL) { IOTC_FREE(object->tokens); object->tokens = NULL; } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels