Attribute requires authentication before read/write

后端 未结 1 1439
感情败类
感情败类 2021-01-14 18:11

I am using a Linux computer with bluez version 4.101. I am communicating with a BLE device in slave mode. I am trying to read data from the BLE device. But when I do that th

1条回答
  •  孤街浪徒
    2021-01-14 18:35

    Try using --sec-level=medium or --sec-level=high with gatttool. I'm not sure how those work, but essentially you don't have the right level of security to read that attribute. Pairing ups your security level, and that's why it works on your iPhone.

    You may also want to try -I for an interactive prompt with gatttool.

    0 讨论(0)
提交回复
热议问题