Go Down

Topic: Control Yun REST API put/KEY/VALUE from HTML (Read 890 times) previous topic - next topic

robertics

Sep 15, 2020, 08:14 am Last Edit: Sep 15, 2020, 08:17 am by robertics
Can anyone point me in the direction of an example of how to use the REST API data endpoint to modify a Bridge /KEY/VALUE pair using put in response to an HTML button push.

There are examples that use data/get/KEY, but can't find a put example.

I could achieve something similar using the REST API arduino endpoint, but would prefer to use the data endpoint as the Linux/Python side of my app needs to receive a lot more KEY/VALUE pairs than the Arduino side ever needs to know about.

Go Up