Hi Tomas,
thanks a lot for the quick answer. You are right, the /rest/wd returns the right values, but I'm still not able to activate the watchdogs:
$ /usr/bin/curl --request POST --url http://unipi:8080/rest/wd/1_01 --data 'value=1'
{"result": {"circuit": "1_01", "value": 0, "glob_dev_id": 1, "dev": "wd", "timeout": 5000, "was_wd_reset": 0, "nv_save": 0}, "success": true}
$ /usr/bin/curl --request GET --url http://unipi:8080/rest/wd/1_01 --data ''
{"circuit": "1_01", "value": 0, "glob_dev_id": 1, "dev": "wd", "timeout": 5000, "was_wd_reset": 0, "nv_save": 0}
Whereas setting of ULED works:
$ /usr/bin/curl --request POST --url http://unipi:8080/rest/led/1_01 --data 'value=1'
{"result": {"value": 1, "circuit": "1_01", "dev": "led", "glob_dev_id": 1}, "success": true}
$ /usr/bin/curl --request GET --url http://unipi:8080/rest/led/1_01 --data ''
{"value": 1, "circuit": "1_01", "dev": "led", "glob_dev_id": 1}
I also tried setting it with the sample web interface, led works, watchdog does not.