File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,13 @@ gcc -o ble_sensor_mqtt_pub ble_sensor_mqtt_pub.c -lbluetooth -l paho-mqtt3c
2222
2323To run:
2424```
25- ble_sensor_mqtt_pub <bluetooth adapter> <scan type> <scan window> <scan interval>
25+ sudo ble_sensor_mqtt_pub <bluetooth adapter> <scan type> <scan window> <scan interval>
2626
2727bluetooth adapter = integer number of bluetooth devices, run hciconfig to see your adapters
2828scan type = 0 for passive, 1 for active advertising scan, some BLE sensors only share data on type 4 response active advertising packets
2929scan window = integer number that is multiplied by 0.625 to set advertising scanning window in milliseconds. Try 100 to start.
3030scan interval = integer number that is multiplied by 0.625 to set advertising scanning interval in milliseconds. Try 1000 to start.
31+ BLE scanning requires root equivalent rights, therefor sudo is necessary.
3132 ```
3233
3334Example JSON published to MQTT topic:
You can’t perform that action at this time.
0 commit comments