09.05.2021, 21:18
(09.05.2021, 21:01)Erwin van der Zwart Wrote: headers = {
['Content-Length'] = #body,
['Content-Type'] = 'application/json',
},
Thanks. I was sure that i tried that, but apparently not :)
Now i found a new problem. This part of the code did not work:
Code:
body = require('json').encode({
percent = event.getvalue()
})
But this this works:
Code:
body = '{"percent":"30"}'
It would have been nice if i could use the event.getvalue.
BR
Kai-Roger
Kai-Roger