Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Sending Writable Property from IOTC to ESP8266 not working properly. #123

Open
avokhour opened this issue Oct 17, 2020 · 0 comments
Open

Comments

@avokhour
Copy link

Hello there,

I am using a esp8266 for my iot project and I came across an error which I did not find any solution for it.
I am sending property from Device to IoT central and it is working perfectly.
While sending property from Cloud to Device then the problem starts.
While sending a property with a value of 0 then the esp8266 is accepting it, but when the value changes then it says you have a NULL value.

The below are seen on the serial monitor when I send values different then 0.

**X - Error at ../common/iotc_json.h:119
(getNumberByName) object == NULL!

    • [SettingsUpdated] event was received. Payload => {"Property1":1,"property3":1,"property4":1,"property5":1,"$version":19}
    • Command name was => property5
    • Setting name was => property5

X - Error at ../common/iotc_json.h:119
(getNumberByName) object == NULL!**

The below are seen on the serial monitor when I send values 0.

**- - Command name was => Property1

    • Setting name was => Property1
    • [SettingsUpdated] event was received. Payload => {"Property1":{"requested":{"value":0}},"property3":{"requested":{"value":0}},"property4":{"requested":{"value":0}},"property5":{"requested":{"value":0}},"$version":20}
    • Command name was => property3
    • Setting name was => property3
    • [SettingsUpdated] event was received. Payload => {"Property1":{"requested":{"value":0}},"property3":{"requested":{"value":0}},"property4":{"requested":{"value":0}},"property5":{"requested":{"value":0}},"$version":20}
    • Command name was => property4
    • Setting name was => property4
    • [SettingsUpdated] event was received. Payload => {"Property1":{"requested":{"value":0}},"property3":{"requested":{"value":0}},"property4":{"requested":{"value":0}},"property5":{"requested":{"value":0}},"$version":20}
    • Command name was => property5
    • Setting name was => property5**

How can I fix this problem?
If I have to define a property in the device in order to save and store the value, how can I do it?
Your urgent help is needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant