![]() # Do something with the updated data unsub_method = await gateway. Screenlogicpy will automatically handle subscribing and unsubscribing as a client to the ScreenLogic protocol adapter upon the first callback subscription and last unsub respectively.įrom screenlogicpy. This function returns a callback that can be called to unsubscribe that particular subscription. To enable push updates, subscribe to a particular message code using gateway.async_subscribe_client(callback, message_code), passing a callback method to be called when that message is received, and the message code to subscribe to. This reduces network traffic compared to polling, and improves responsiveness to state changes. The preferred method for retrieving updated pool data is to subscribe to updates pushed to the gateway by the ScreenLogic system. The ScreenLogic protocol adapter may respond with an error message if too many requests are made too quickly.Ĭhanged in v0.5.0: This method is now an async coroutine and no longer disconnects from the protocol adapter after polling the data. The calling application is responsible for maintaining reasonable intervals between updates. Warning: This method is not rate-limited. ![]() Status and settings for any configured salt chlorine generators.Detailed information for each configured pump.This update consists of sending requests for:
0 Comments
Leave a Reply. |