Skip to content
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

Steps to reproduce at high level:

  1. Create a a device template with 2 Telemetry values (temp,humidity), 1 command, 1 Writeble Property (bool)
  2. Create a device
  3. Follow steps in sample ESP 8286 and connect using necessary 5 parameters (wifi and IOT central device parameters)
  4. Telemetry values are reported fine
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions