Skip to content

Commit c73e6ee

Browse files
committed
iBeacon works OK
1 parent ef1534a commit c73e6ee

File tree

9 files changed

+161246
-97711
lines changed

9 files changed

+161246
-97711
lines changed

apps/my_sensor_app/src/ble.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Based on https://mynewt.apache.org/latest/tutorials/ble/ibeacon.html
12
#include "sysinit/sysinit.h"
23
#include "os/os.h"
34
#include "console/console.h"
@@ -28,7 +29,7 @@ ble_app_advertise(void)
2829

2930
/* Major version=2; minor version=10. */
3031
// Measured Power ranging data (Calibrated tx power at 1 meters). Must be > -126 and < 20
31-
rc = ble_ibeacon_set_adv_data(uuid128, 2, 10, 0); // TODO: Confirm RSSI
32+
rc = ble_ibeacon_set_adv_data(uuid128, 2, 10, -60); // TODO: Confirm RSSI
3233
assert(rc == 0);
3334

3435
/* Begin advertising. */

0 commit comments

Comments
 (0)