Next: , Previous: , Up: STCA Tuya Cloud Plugin   [Contents]


7 Adapter HTTP Behaviour

This plugin does not open a separate plugin HTTP server; all client access goes through the adapter API (optional <enable-http> in the STCA global section).

$ curl -s http://127.0.0.1:42111/data | jq .
$ curl -s http://127.0.0.1:42111/data/DEVICEID:temp_set
$ curl -s -X PUT http://127.0.0.1:42111/data/DEVICEID:temp_set \
    -H 'Content-Type: application/json' \
    -d '235'

Read-only keys reject PUT/POST with permission denied. Writable keys forward to the cloud thread as described in Writable Keys.