nrf5832 try
This commit is contained in:
+2
-8
@@ -221,6 +221,7 @@ void disconnectionCallback(void)
|
||||
AconnoBLE &myBLE = *getAconnoBLEInstance();
|
||||
myBLE.startAdvertising(APP_ADV_INTERVAL, APP_ADV_DURATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Function for application main entry.
|
||||
*/
|
||||
@@ -377,9 +378,7 @@ int main(void)
|
||||
// Initialize aconno BLE module
|
||||
|
||||
AconnoBLE &myBLE = *getAconnoBLEInstance();
|
||||
NRF_LOG_FLUSH();
|
||||
myBLE.initBLEStack();
|
||||
NRF_LOG_FLUSH();
|
||||
uint16_t myUUID = BLE_EX_CHAR_UUID;
|
||||
myService.serviceInit(myUUID);
|
||||
myBLE.addService(&myService);
|
||||
@@ -387,17 +386,12 @@ int main(void)
|
||||
myChar.charInit(BLE_EX_CHAR_SIZE_B, WRITE, false, false, NULL, imageUpdate);
|
||||
myService.addChar(&myChar);
|
||||
myBLE.setTXPower(4);
|
||||
|
||||
|
||||
|
||||
// Create a FreeRTOS task for the BLE stack.
|
||||
// The task will run advertising_start() before entering its loop.
|
||||
nrf_sdh_freertos_init(NULL, NULL);
|
||||
NRF_LOG_INFO("HRS FreeRTOS example started.");
|
||||
|
||||
//settingsInit(NULL);
|
||||
//basicConfigInit();
|
||||
//arbDataInit(NULL);
|
||||
//slotsInit(NULL);
|
||||
|
||||
// Start FreeRTOS scheduler.
|
||||
vTaskStartScheduler();
|
||||
|
||||
Reference in New Issue
Block a user