aconno acnsensa project for iOS devices with iBeacon packets support.

Dependencies:   LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common

Branch:
iBeacon
Revision:
21:71f2f1b314f2
Parent:
18:442bc914996b
Child:
26:834af521af0a
Child:
29:b65cab4fa70f
diff -r 442bc914996b -r 71f2f1b314f2 main.cpp
--- a/main.cpp	Thu Aug 02 10:18:51 2018 +0200
+++ b/main.cpp	Fri Aug 03 12:43:15 2018 +0200
@@ -20,6 +20,7 @@
 #include "acd_nrf52_saadc.h"
 #include "service.h"
 #include <events/mbed_events.h>
+#include "aconnoConfig.h"
 
 #define V0 0.47    /* In volts */
 #define TC 0.01    /* In volts */
@@ -83,13 +84,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