GPS to Pulga
Diff: source/BLEProcess.h
- Revision:
- 20:86417f956e22
- Parent:
- 19:622c672f6d5f
- Child:
- 22:2c6161c96a76
diff -r 622c672f6d5f -r 86417f956e22 source/BLEProcess.h --- a/source/BLEProcess.h Mon Mar 25 15:01:13 2019 +0000 +++ b/source/BLEProcess.h Wed Jul 10 17:50:57 2019 +0000 @@ -30,6 +30,7 @@ #include "ble/GapAdvertisingData.h" #include "ble/FunctionPointerWithContext.h" +DigitalOut led1(P1_13); /** * Handle initialization adn shutdown of the BLE Instance. * @@ -71,6 +72,7 @@ bool start() { printf("Ble process started.\r\n"); + if (_ble_interface.hasInitialized()) { printf("Error: the ble instance has already been initialized.\r\n"); @@ -202,7 +204,7 @@ ble::LEGACY_ADVERTISING_HANDLE, ble::AdvertisingDataSimpleBuilder<ble::LEGACY_ADVERTISING_MAX_SIZE>() .setFlags() - .setName("GattServer") + .setName("Cathe_w/si") .getAdvertisingData() );