22.11.2018, 23:03
(22.11.2018, 21:03)Erwin van der Zwart Wrote: hHi,
Why don’t you just create 1 widget with a value box for setting the GW 1 to xx and a value box with EVG nr. Under this you create a slider and a on/off button.
Then you can handle the rest in a single script..
This way the user just selects the GW and EVG by selector and the 2 elements control the selected EVGCode:GW = grp.getvalue('1/1/1')
EVG = grp.getvalue('1/1/2')
if event.dst == '1/1/3' then — bit value
grp.write('2/' .. GW .. '/' .. EVG, event.getvalue())
elseif event.dst == '1/1/4'' then — byte value
grp.write('3/' .. GW .. '/' .. EVG, event.getvalue())
end
BR,
Erwin
Hi Erwin,
Great ! There are small errors on lines 3 (-- bit value) and line 5 ('1/1/4')
Do you have a solution to display string in the same time, along with GW and EVG numbers ?
B.R,
Chouaibou.