Hi,
i used to set values in OH1.83 long time ago via http link (restful). did switch to MQTT and never had a usecase anymore. Now i tried again with 2.3dev but seems to not work as before (i know the link changed…but still. tried several variants…). Can anyone tell me what I do wrong…RestAPI “modul” is installed.
hm, thanks - you’re right …CMD still works fine. Did not even try as i generally mixed up Restful and http.
curl works - but (i know boarder to what people here may be able to answer) any ideas what this ESP8266 library may need to get in terms of command?
My assumption is that I need POST not PUT.
so looking and the library doc:
Just fixed my problem, in case someone else runs into this issue. I used the GET procedure with ESP and restclient library long time and worked like a charm. Now wanted to also POST item values from ESP to Openhab which did not work out as expected.
What helped, was to add the content-type setting (client.setContentType(“text/plain”);). This was not required for GET, but for POST@Openhab this was required. Now all works fine.