-
Notifications
You must be signed in to change notification settings - Fork 451
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
uuids is being cached #283
Comments
Got same issue, I think this is why I can't write to my RPi #280 |
@anchetaWern could you provide an HCI dump capture for this? What version of Android are you using? Could you also try turning bluetooth off and on on the Android device? |
I had the same problem, running bleno on mac with an android device. Turns out Android is the one doing the cashing, starting the bluetooth on the android device fixed the problem |
This is on purpose, and should happen. In most cases in today's BLE stacks, once you do a scan, it will cache the data unless a service changed packet comes across invalidating the service. This is one of the reasons I wrote #128 |
I'm not sure why but it seems like the uuids are being cached somewhere. Not sure if its the device or bleno itself but changing the uuids doesn't change what's actually being advertised (even though when I
console.log
from the Node side of things it's reflecting the new values). But when testing via a Cordova app, the old uuid is still being advertised. I'm also changing the advertisement name. Part of the name is used for constructing the uuid but the odd thing is that the advertisement name is changing while the uuid remains constant. This is why the app fails to connect because the actual uuid being advertised is no longer the same with the uuid being constructed by the app (as based from the advertisement name).Here's what the code looks like:
I already tried the following but nothing seems to work:
sudo shutdown -r now
)sudo shutdown -h now
)Has anyone ever encountered this issue? Anything else that I could try or somewhere I've missed? Thanks in advance.
The text was updated successfully, but these errors were encountered: