ble_app_att_mtu_throughput convert to only pheripheral

I have to use 240 bytes for my sensor value to send in bluetooth. so i choosed to work on ble_app_att_mtu_throughput i need only pheripheral to work on it . i have to remove central part from it . what has to be done for it

Parents Reply
  • At first i have commented 

    // client_init(); 
     which act as a central

    NRF_SDH_BLE_CENTRAL_LINK_COUNT 1
    PM_CENTRAL_ENABLED 1 these two i have set to zero

    i don't get any error only this line show as warning not as error,

    ../../../main.c:812:13: warning: 'client_init' defined but not used [-Wunused-function]
    812 | static void client_init(void)
    | ^~~~~~~~~~~ 
    apart from any things has to  remove ?
Children
Related