How can I get the last value of a variable when my device connects to Ubidots at the first time? I want to synchronize my device to the status on Ubidots.
- I turn off my bulb.
- Disconnect from Ubidots.
- Turn on the button (which can control the variable represent for the bulb) on Ubidots.
- Connect the bulb to Ubidots. Now I want my bulb turn on automatically.
Can you help me?
Thank you in advance!