Closed WayneKeenan closed 1 year ago
Can I check my understanding of what the problem is here... Are you saying that you've created a peripheral with Bluezero and when you connect to it from a central device it asks for pairing even though the Bluezero created peripheral has no requirement for pairing?
Is this the "battery" plugin issue? https://github.com/ukBaz/python-bluezero/issues/336#issuecomment-912915781
Correct and setting ReverseServiceDiscovery
to false
didn't work for me.
Would removing the Battery plugin be a better solution for you?
/usr/lib/bluetooth/bluetoothd -P battery
perfect, thanks, that worked.
also just to note that there's no more pairing request 'noise' in the logs.
Hello,
tl;dr: Found a way to stop the pairing request, but what's the most correct and simplest way to disable the BlueZ pairing request from bluezero/Python code?
Well, this is new (to me, today) behaviour. I guess BlueZ is trying to be 'more secure' by default, sensible, but kinda annoying...
The issue I have elsewhere is that the recommended React Native JS client library doesn't support pairing, joy.
So, until that library gets replaced with something sensible I found a way to disable the request:
Although it appears to work on the surface there are 2 issues:
Regards Wayne