Bluetooth LE on Raspbian

后端 未结 2 1460
野性不改
野性不改 2021-01-06 04:29

I installed bluez-5.15 from source with the following configuration:

$ ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc \\
--localstatedir         


        
2条回答
  •  自闭症患者
    2021-01-06 05:01

    From my experience with Bluez 5.15

    1. Ensure you have no connections to the BLE device (check with hcitool con).
    2. Do not run hcitool lecc.
    3. Start gatttool like in your question.
    4. In gatttool run connect command. If the command hangs, then press button on the device (i.e. sometimes needed when connecting to SensorTag).

    I believe earlier versions of Bluez required hcitool lecc step, but it is not the case anymore.

提交回复
热议问题