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.
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.