add iBeacon functionality

Dependencies:   BLE_API mbed-dev-bin nRF51822

Fork of microbit-dal by Ken Ogami

Revision:
78:e4c9170fd9b9
Parent:
75:739b6a1c1b50
Child:
79:e4e6ab1c9835
Child:
80:1d4526d816a8
--- a/source/bluetooth/MicroBitBLEManager.cpp	Mon Jul 17 21:32:11 2017 +0000
+++ b/source/bluetooth/MicroBitBLEManager.cpp	Wed Aug 02 00:23:30 2017 +0000
@@ -173,7 +173,9 @@
 
 
     // Configure the radio at our default power level
-    setTransmitPower(MICROBIT_BLE_DEFAULT_TX_POWER);
+//    setTransmitPower(MICROBIT_BLE_DEFAULT_TX_POWER);
+    // use higher power setting for iOS nrf Connect
+    setTransmitPower(6);
 
 // Bring up core BLE services.
 #if CONFIG_ENABLED(MICROBIT_BLE_DFU_SERVICE)
@@ -207,7 +209,7 @@
 #if (MICROBIT_BLE_ADVERTISING_TIMEOUT > 0)
     ble->gap().setAdvertisingTimeout(MICROBIT_BLE_ADVERTISING_TIMEOUT);
 #endif
-
+    ble-?gap().startAdvertising();
 }