Skip to content

Commit ede2cff

Browse files
authored
Update README.md
1 parent 39a2ae4 commit ede2cff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ gcc -o ble_sensor_mqtt_pub ble_sensor_mqtt_pub.c -lbluetooth -l paho-mqtt3c
2222

2323
To 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
2727
bluetooth adapter = integer number of bluetooth devices, run hciconfig to see your adapters
2828
scan type = 0 for passive, 1 for active advertising scan, some BLE sensors only share data on type 4 response active advertising packets
2929
scan window = integer number that is multiplied by 0.625 to set advertising scanning window in milliseconds. Try 100 to start.
3030
scan 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

3334
Example JSON published to MQTT topic:

0 commit comments

Comments
 (0)