藍芽iBeacon

檢視是否安裝bluez套件

dpkg -l | grep bluez
ii  bluez                                 5.50-1+rpt1                           armhf        Bluetooth tools and daemons
ii  bluez-firmware                        1.2-4+rpt2                            all          Firmware for Bluetooth devices

hciconfig

hciconfig
hci0:   Type: Primary  Bus: UART
        BD Address: XX:XX:XX:XX:XX:XX  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING
        RX bytes:766 acl:0 sco:0 events:49 errors:0
        TX bytes:2504 acl:0 sco:0 commands:49 errors:0

啟用藍牙的低耗能廣告(LE advertising)模式,並關閉掃描功能: sudo hciconfig hci0 leadv 3 sudo hciconfig hci0 noscan

Last updated