15.11.2016, 16:00
(15.11.2016, 15:43)gjniewenhuijse Wrote: nice code
The code string.split doesn't work for me:
time = string.split(time, '.')[1]
If you have some devices and some data received from them this should work. Firstly check errors and alerts.
If this won't be a solution then log the whole response by insert this line:
log(response)
but you must add above line after this code:
Code:
-- decoding received data
response = table.concat(t)
response = json.decode(response)
And please check what is in "Logs" section.