This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Modifying ble_app_uart

Hi I have a device that already have a role as broadcaster and send message continously, now my job is to establish a connection between the device and a gadget and also want to enable a Data exchange.

for establishing the connection I used ble_app_template as my refererence and for data exchange i use the NUS because the charactristic they has is exactly what i want.

at first it works fine I can establish the connection using ble_app_template until i implement my NUS code (i modify the nus fisrt using SES and implement it in eclipse makefile).

here is the structur of my main

int main(void) {

    // Initialize.
    log_init();
    timers_init();
//    power_management_init();
    gap_params_init();
    gatt_init();
    ble_stack_init();
    advertising_init(true);
    services_init();
    conn_params_init();
//    peer_manager_init();
	advertising_start();

it has no error but now the device is not found anymore.

and I debuged it to know where is wrong and then after the first two command it goes two nrf_breakpoint_cond;

anyone knows what causes these?

Parents Reply Children
Related