01.06.2016, 09:31
(01.06.2016, 09:20)admin Wrote: You can store your table via storage.set and read it via storage.get. The question is why do you need to store connected clients? When your script ends - all clients are automatically disconnected anyway.
LogicMachine is in my case also Client, which after updating some groupaddress sends to all devices it's state.
So I need to store IP addresses in storage. I can discover if new connected device is in table this way:
Code:
if (storage.get(ipcut) == nil) {
storage.set(someIndex, ipcut);
}
Problem is that index for now In your documentation is not written how can I discover how much indexes does database have.
One solution is to iterate from 0 to xyz and discover where does it end.