parnic / node-screenlogic

Pentair ScreenLogic Javascript library using Node.JS
https://www.npmjs.com/package/node-screenlogic
MIT License
52 stars 14 forks source link

Added SLAddClient / SLRemoveClient messages #30

Closed bshep closed 4 years ago

bshep commented 4 years ago

This add the above messages, allows you to register to receive poolStatus updates as things change (pumps running, lights changed, etc ) this way you dont have to poll for changes. This mimics the way the Android/Windows apps are able to update the UI quickly when something gets updated.

In the original code a random number is generated as the senderId, but i just made it a fixed number for now, if we were to use a random number we would have to keep track of the number so we can unregister later.

parnic commented 4 years ago

Oh wow, this is a big deal. I didn't know this feature existed.

parnic commented 4 years ago

Looks great, thanks again!