Bluetoothctl set passkey

后端 未结 5 685
北荒
北荒 2021-02-05 12:39

I have a Raspberry Pi 2 running Raspbian kernel 4.1.15 and Bluez version 5.23.

I want to be able to connect a device (like an Android phone) to the rapsberry which shoul

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 13:18

    https://github.com/nokia/rcm-bluez/blob/master/client/bluez-5.43/test/simple-agent

    https://raw.githubusercontent.com/pauloborges/bluez/master/test/bluezutils.py

    @Ion Flare idea is perfect for setup auto-pairing Bluetooth for raspberry pi. just little tweak in my answer is I got an error for import bluezutils so in order to bypass that simply I would say download above file that is simple-agent and bluezutils.py. Put in is same location, for me it is /home/pi. And just run command @Ion Flare mentioned python simple-agent -c NoInputNoOutput

    In my use case I changed a simple-agent file to accept every connection and services to make things simple for me.

提交回复
热议问题