2 years ago
#17751
Popsicle
How can i receive a pairing request event via dbus, glib?
I'm currently making a Bluetooth app with BlueZ
I need to get a Pairing request. Using BlueZ DBus API, i've made my Agent into NoInputOutput mode, and i succeed the first pairing with my phone.
However, if i delete the linux device(which uses my bluetooth app that i am developing) from my phone and try to re-connect, i can't pair it together.
I searched Python code examples that... From BlueZ's DBus API, calling RequestAuthorization method to pair and successes it, then deleting the device and re-pairing works fine.
But in case of smartphone's pairing request, i think i should call RequestAuthorization method WHEN SOME EVENT(S) is received. And i have no idea for that.
Conclusion: How can i get a pairing request event using dbus and glib loop?
I've already checked bluez pairing before exchange
apparently, gdbus is a combination of dbus and glib. However, i'm using dbus and glib separated since i can sorted some codes that i do not need. More, now i think it doesn't have any relations with deleting devices from the list.
c
bluetooth
glib
bluez
pairing
0 Answers
Your Answer