I need help. I don't know what I'm doing wrong to put the value in a group address.
Thanks for your help
Thanks for your help
Code:
require('json')
http = require('socket.http')
require('socket.url')
url= 'http://192.168.2.11/api/dxs.json?dxsEntries=33556229'
url = string.format(url)
res = http.request(url)
data = json.pdecode(res)
if type(data) ~= 'table' then
alert('failed to load data')
return
end
if data.error then
log('error', data.error)
return
end
dxsEntries = data.dxsEntries
log(dxsEntries)
grp.write('32/4/10', dxsEntries.value)