2) Then I created a small test program to insert a text on the sensor calling the json command (ip replaced by xxx)
Code: Select all
http://xxx.xxx.xxx.xxx:8080/json.htm?type=command¶m=udevice&idx=111&nvalue=0&svalue="new text"
3) I then called a JSON command to clear the sensor, also this works fine.
But if I then repeat step 2 if fails. The text does NOT re-appear. (also not after browser clearing, I did inspect the dbase table as well)
But when I call the same JSON command from a brower the text does re-appear.
And when I then call the python program again it also re-appears.
Or when I first delete and recreate the sensor it also works fine.
So only when the sensor is empty and the json is then triggered from within the python program it fails.
Is this a bug? Why does it work from the browser but not from the program? It is the same JSON command.
Response code from all commands are OK.