-
Notifications
You must be signed in to change notification settings - Fork 22
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
Multiple notifications for the same characteristic #36
Comments
Thank you for the report. |
Mmm, I couldn't reproduce the duplicate notification. I used TI's Sensor Tag to test with the example flow included in this node (menu => Import => Examples => node-red-contrib-generic-ble => 01-read-write). I modified the notification period from 5 to 0 in the flow and deployed it. What I did is
Then the result showed a single message per event. I thought I'd had been able to reproduce with these steps but no luck so far. The device I tested is not same as yours so the way to reproduce it is different from yours. |
Well those repro steps all sound right. I'll do some more investigation.
|
I have just completed some testing on this and found the following:
So not as simple as # of Subscribes == # of messages, and the issue appears to be on the RPi side somehow getting into a state where it has remembered subscriptions and is not clearing them down. I'll keep an eye on it and let you know if I can see a pattern if it happens again. |
Hello, I have the same problem, did you solve it? Thanks for your help |
Sorry, a while ago now and I can't remember whether I just manged to workaround it or just accept it. I no longer have it running so unable to replicate it. |
Ok, thanks anyway |
Hi! I am still facing this issue of multiple notifications. Were any of you able to solve this @JasonBSteele @dbaba @aries84ct |
Hi,
I am using a Nano BLE Sense device to listen for sounds, and then infer what they are. If the sound is other than background noise it sends a Notify to the central.
There is only one characteristic and when I first set it up it was working fine with a single message being out put when the Notify was sent. However after reconnecting, and the resubscribing for notifications I found that two messages were being sent. I now have five messages being sent.
I'm guessing the subscriptions aren't being cleared down when reconnecting. I tried reconnecting without resubscribing but then I didn't receive any notifications.
The text was updated successfully, but these errors were encountered: