fork microbit-dal
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Revision 78:e4c9170fd9b9, committed 2017-08-02
- Comitter:
- kenogami
- Date:
- Wed Aug 02 00:23:30 2017 +0000
- Parent:
- 77:151a3b864991
- Child:
- 79:e4e6ab1c9835
- Commit message:
- modify power level and start advertising.
Changed in this revision
source/bluetooth/MicroBitBLEManager.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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(); }