User55412
User55412

Reputation: 940

BlueZ missing RequestAuthorization

I have a Bluetooth client which implements an agent with NoInputNoOutput capabilities (using BlueZ version 5.54 in Linux).

When a new pairing occurs, I expect the agent to receive a RequestAuthorization D-Bus message, but this never arrives.

From the BlueZ agent-api documentation:

void RequestAuthorization(object device)

This method gets called to request the user to authorize an incoming pairing attempt which would in other circumstances trigger the just-works model, or when the user plugged in a device that implements cable pairing. In the latter case, the device would not be connected to the adapter via Bluetooth yet.

        Possible errors: org.bluez.Error.Rejected
                         org.bluez.Error.Canceled

I have used dbus-monitor --system to check for the existence of the message, but it's not there.

Why wouldn't this be sent?

Upvotes: 0

Views: 303

Answers (1)

OlivierM
OlivierM

Reputation: 3212

I would recommend to start bluetoothd with --debug to confirm your agent is actually registered to BlueZ. And ensure your BlueZ agent is registered on the system bus (not the session bus).

Upvotes: 0

Related Questions