Why there isn’t POST /v1/devices/{DEVICE_ID}/{VARIABLE}? I think it would be more convenient if we could directly change the variable values in the device from the cloud!
If you look at my tutorial on driving a servo, you will find simple code to set and get variable values.
The current separation of variable and functions makes sense to me but it is not the only way it could be done of course. With the Javascript in the tutorial linked above, you can have your own set and get methods that emulate what you want with no trouble.
3 Likes