Seite 4 von 4

Re: OpenEPaperLink

Verfasst: 14. Feb 2024 11:32
von I3uLL3t
Hi,

ich habe es nun hinbekommen, der request lässt sich wie folgt abschicken:

Code: Alles auswählen

var String url = 'http://192.168.1.229/jsonupload' //URL 
var String content = 'mac=021A48653B1F&json=[ { "text": [5, 5, "Hallo Welt", "fonts/bahnschrift20", 1 ] } ]'
var response = sendHttpPostRequest(url,"application/x-www-form-urlencoded",content, 10000) //the Request
logInfo("epaper","url: {} content: {} response: {}",url,content,response) // just for logmessage in Openhab