rgerganov / py-air-control

Command line app for controlling Philips air purifiers
MIT License
264 stars 53 forks source link

no timeout when using CoAP #60

Closed pythonbegginer closed 4 years ago

pythonbegginer commented 4 years ago

Could you add the exception, when CoAP protocol is used to pull information from air purifier in case when device is powered off or disconnected from network? At this moment when air purifier is not available, nothing is happening when query is sent, airctrl is working in background. I'm using ACS2729/50. Below purifier is powered off, would be nice to receive any message when there is no answer after ~5sec. [pezet@logsrv airpurifier]$ airctrl --ipaddr 192.168.10.253 --protocol coap

rgerganov commented 4 years ago

Added 5sec timeout