nrf5832 try

This commit is contained in:
Odri Tomas
2019-04-26 14:23:56 +02:00
parent 9e10b6bdc6
commit c9e02ff9b2
5 changed files with 16317 additions and 14 deletions
+2 -8
View File
@@ -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();