Skip to content

Commit d7546d4

Browse files
committed
change default manuf to Nordic
use same uuid, major, minor as nordic beacon example
1 parent 7564443 commit d7546d4

File tree

1 file changed

+11
-9
lines changed
  • libraries/Bluefruit52Lib/examples/Peripheral/beacon

1 file changed

+11
-9
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/beacon/beacon.ino

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,21 @@
1717
// packet, which means you must provide a valid Manufacturer ID. Update
1818
// the field below to an appropriate value. For a list of valid IDs see:
1919
// 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
2830
};
2931

3032
// A valid Beacon packet consists of the following information:
3133
// UUID, Major, Minor, RSSI @ 1M
32-
BLEBeacon beacon(beaconUuid, 0x0000, 0x0000, -54);
34+
BLEBeacon beacon(beaconUuid, 0x0102, 0x0304, -54);
3335

3436
void setup()
3537
{

0 commit comments

Comments
 (0)