Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
Shadow.update(0,state) only change the "reported" of Shadow.
Actually what i want is to control an led with RESP api and also with a button in the .
When ever i click the button, the led state is change. But this change is reported back to the Mongoose cloud and then Mongoose cloud send a "UPDATE_DELTA" back to the device and change the led state (which i dont want).
So my only option is:
1) not to report to the Mongoose cloud when i change the button.(If this, i will not able to check the led status from REST API)
2) by using "UPDATE" instead of "UPDATE_DATA".(this will send an "UPDATE_DELTA" to device a lot)
Shadow.update(0,state) only change the "reported" of Shadow. Actually what i want is to control an led with RESP api and also with a button in the . When ever i click the button, the led state is change. But this change is reported back to the Mongoose cloud and then Mongoose cloud send a "UPDATE_DELTA" back to the device and change the led state (which i dont want).
So my only option is: 1) not to report to the Mongoose cloud when i change the button.(If this, i will not able to check the led status from REST API) 2) by using "UPDATE" instead of "UPDATE_DATA".(this will send an "UPDATE_DELTA" to device a lot)