Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaption of wait_for_notification() for Blusensor AIQ #42

Open
Gezzo42 opened this issue Mar 23, 2021 · 0 comments
Open

Adaption of wait_for_notification() for Blusensor AIQ #42

Gezzo42 opened this issue Mar 23, 2021 · 0 comments

Comments

@Gezzo42
Copy link

Gezzo42 commented Mar 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant