-
Notifications
You must be signed in to change notification settings - Fork 46
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
Feature Request - Send MQTT message on error #70
Comments
Currently this is designed to exit on error. If you want the error logged, you might want to introduce a new callback |
Also checkout the bleak port which uses a different bluetooth library and supposed to be more stable. |
Can you checkout #72 if it works? It doesn't do any mqtt per se, but in the callback you can do your stuff. |
I'll give it a shot this week; thanks!
…On Sat, Jun 29, 2024, 19:10 Cyril Sebastian ***@***.***> wrote:
Can you checkout #72 <#72> if it
works? It doesn't do any mqtt per se, but in the callback you can do your
stuff.
—
Reply to this email directly, view it on GitHub
<#70 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABO65BGD2UMG2MT6B3VRHHLZJ45G7AVCNFSM6AAAAABJ6ISOVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGM3DSMZYHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have three batteries daisy-chained together to one BT-2 module. As it stands, I have a cron job that runs the equivalent of example.py for each battery on a regular interval. About half the time, an error occurs when pulling one or more of the sets of data. This isn't a huge deal, as it basically means that my data lags by about 15 minutes or so, but it would be good to know if something is actually broken so I can take a look.
What I'd like is to have an MQTT message published every time a read error occurs (to a different topic from the one where data goes on success.) Thanks!
The text was updated successfully, but these errors were encountered: