如何让iOS和CoreBluetooth可以发现Raspberry Pi 3?

Jer*_*sel 5 bluetooth ios core-bluetooth bluetooth-lowenergy raspberry-pi3

我有一个Raspberry Pi 3,我试图让它可以被iOS设备发现.我跑去sudo hciconfig hci0 piscan让它可以被发现.我可以用我的iMac看到它.

在iOS上,我正在使用CoreBluetooth并对附近的设备运行扫描.我可以发现几个FitBit设备和我的iMac,但Raspberry Pi没有出现.

是否有其他设置我必须启用蓝牙LE可发现性?Raspberry Pi 3是否与iOS兼容以实现蓝牙连接?

提前致谢.我很感激任何帮助.

Jer*_*sel 10

经过大量研究和Twitter朋友的一些帮助,要启用LE广播,您必须使用以下命令之一.

sudo hciconfig hci0 leadv 0
sudo hciconfig hci0 leadv 3
Run Code Online (Sandbox Code Playgroud)

0表示可连接.

3表示不可连接.