aconno acnsensa project for iOS devices with iBeacon packets support.

Dependencies:   LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common

Branch:
normal_axis
Revision:
12:46fbc77fab33
Parent:
9:0453d592221b
Child:
13:4747e6e8396a
--- a/main.cpp	Fri Apr 20 09:57:56 2018 +0000
+++ b/main.cpp	Mon Jul 23 08:15:28 2018 +0000
@@ -41,7 +41,9 @@
 #define WAKE_UP_TIME    (0.150)          /* Awake time in ms */
 #define ADV_INTERVAL    (100)            /* Advertising interval in ms */
 #define GO_TO_SLEEP     (0)              /* Sleep flag: 0 -> Device will not go to sleep, 1 -> Will go to sleep mode */
-#define CALIBRATION_STEPS 20
+#define CALIBRATION_STEPS (20)
+
+#define TX_POWER        (4)
 
 static NRF52_SAADC analogIn;
 static NRF52_DigitalOut lightPower(p28);
@@ -131,6 +133,7 @@
     ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, (uint8_t *)&advertisementPacket, sizeof(advertisementPacket));
     ble.gap().setAdvertisingType(GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);    
     ble.gap().setAdvertisingInterval(ADV_INTERVAL);
+    ble.gap().setTxPower(TX_POWER);        // Set TX power to TX_POWER
     ble.gap().startAdvertising();    
 }