You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I bought the mentioned sensor and wanted to integrate it using BLE (also it support MQTT via WLAN). I found btlewrap a nice lib to use for, because MI temp as a similar sensor used it too. But in the case of Blusensor AIQ wait_for_notificaton() was not working. The write command ended up in an exception. Therefore I added an additional variant named wait_for_notification_no_write() and simply deleted this function call. Then everything works fin. The sensor spams notification after connection. Perhaps on option for wait_for_notification() is another solution?!
Recently I bought the mentioned sensor and wanted to integrate it using BLE (also it support MQTT via WLAN). I found btlewrap a nice lib to use for, because MI temp as a similar sensor used it too. But in the case of Blusensor AIQ wait_for_notificaton() was not working. The write command ended up in an exception. Therefore I added an additional variant named wait_for_notification_no_write() and simply deleted this function call. Then everything works fin. The sensor spams notification after connection. Perhaps on option for wait_for_notification() is another solution?!
In my fork I added the function: https://github.com/Gezzo42/btlewrap/blob/a1c6953e5ed1dd64f027c2d1a757eb72a21fe15b/btlewrap/bluepy.py
It would be nice, if you can add it to btlewrap :-).
The text was updated successfully, but these errors were encountered: