Example: iBeacon - ozarchie/BlueBasic GitHub Wiki
##Beacon iBeacons contain a specific data format defined by Apple, Inc and may be subject to copyright. The user should research these issues and make their own decisions.) Presumably, if the advertisement data follows this format, then you can pretend to be an iBeacon.. (This information is for experimantal purposes, and no rights are inferred by providing these observations)
Example Captured iBeacon advertisement data
4C00 02 15 74278BDAB64445208F0C720EAF059935 0002 0004 C5
- Apple company identifier (2 bytes)
- type (1 byte)
- data length (1 byte)
- proximity uuid (16 bytes)
- major (2 bytes)
- minor (2 bytes)
- RSSI @ 1m (1 byte)
###iBeacon Advertisement Data Explanation
Apple Company Identifier (Little Endian), 0x004c
data type, 0x02 => iBeacon
data length, 0x15 = 21
company proximity uuid: 74278BDAB64445208F0C720EAF059935
major: 0002
minor: 0004
measured power at 1 meter: 0xc5 = -59
###Example
10 // "A Simple Beacon service"
20 DIM M(5)
30 // "Major (0-65535)"
31 M(0) = 0
32 M(1) = 2
40 // "Minor (0-65535)"
41 M(2) = 0
42 M(3) = 4
50 // "Power"
51 M(4) = 0xC5
100 // Setup ADVERT
101 ADVERT GENERAL
102 ADVERT CUSTOM "FF 4C 00 02 15" "74 27 8B DA B6 44 45 20 8F 0C 72 0E AF 05 99 35" M "00"
103 ADVERT END
120 // SET A NAME IN THE SCAN RESPONSE
121 SCAN NAME "nBeacon"
122 SCAN END
AUTORUN ON