aconno acnsensa project for iOS devices with iBeacon packets support.
Dependencies: LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common
Diff: main.cpp
- Branch:
- noSensors
- Revision:
- 22:3710de547ff1
- Parent:
- 20:fc639ef579b6
- Child:
- 25:dd95f36e3461
--- a/main.cpp Thu Aug 02 10:38:30 2018 +0200 +++ b/main.cpp Fri Aug 03 14:28:54 2018 +0200 @@ -73,13 +73,16 @@ typedef struct __attribute__((packed, aligned(1))) { - uint16_t appleID; - uint8_t secondID; - uint8_t DataSize; - uint8_t UUID[18]; - uint8_t major; - uint8_t minor; - int8_t RSSI; + // AppleID is constant + uint16_t appleID = 0x004C; + // secondID is constant + uint8_t secondID = 0x02; + // DataSize is constant + uint8_t DataSize = 0x15; + uint8_t UUID[16] = {UUID_INIT}; + uint16_t major = MAJOR; + uint16_t minor = MINOR; + int8_t RSSI = RSSI_INIT; }IBeaconMSD; struct __attribute__((packed, aligned(1))) advertising_packet