|
17 | 17 | // packet, which means you must provide a valid Manufacturer ID. Update
|
18 | 18 | // the field below to an appropriate value. For a list of valid IDs see:
|
19 | 19 | // https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers
|
20 |
| -// 0x004C is Apple (for example) |
21 |
| -#define MANUFACTURER_ID 0x004C |
22 |
| - |
23 |
| -// AirLocate UUID: E2C56DB5-DFFB-48D2-B060-D0F5A71096E0 |
24 |
| -uint8_t beaconUuid[16] = |
25 |
| -{ |
26 |
| - 0xE2, 0xC5, 0x6D, 0xB5, 0xDF, 0xFB, 0x48, 0xD2, |
27 |
| - 0xB0, 0x60, 0xD0, 0xF5, 0xA7, 0x10, 0x96, 0xE0, |
| 20 | +// 0x004C is Apple |
| 21 | +// 0x0822 is Adafruit |
| 22 | +// 0x0059 is Nordic |
| 23 | +#define MANUFACTURER_ID 0x0059 |
| 24 | + |
| 25 | +// "nRF Connect" app can be used to detect beacon |
| 26 | +uint8_t beaconUuid[16] = |
| 27 | +{ |
| 28 | + 0x01, 0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78, |
| 29 | + 0x89, 0x9a, 0xab, 0xbc, 0xcd, 0xde, 0xef, 0xf0 |
28 | 30 | };
|
29 | 31 |
|
30 | 32 | // A valid Beacon packet consists of the following information:
|
31 | 33 | // UUID, Major, Minor, RSSI @ 1M
|
32 |
| -BLEBeacon beacon(beaconUuid, 0x0000, 0x0000, -54); |
| 34 | +BLEBeacon beacon(beaconUuid, 0x0102, 0x0304, -54); |
33 | 35 |
|
34 | 36 | void setup()
|
35 | 37 | {
|
|
0 commit comments