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

ble_central_and_peripheral

hi,

I use examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay\pca10040

I want to change the maximum number of central connected from the peripheral to 20

BLE_NUS_C_ARRAY_DEF(m_NUS_C,NRF_SDH_BLE_CENTRAL_LINK_COUNT);

#ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT
#define NRF_SDH_BLE_CENTRAL_LINK_COUNT 20
#endif



#define BLE_NUS_C_ARRAY_DEF(_name, _cnt)                                                            \

static ble_nus_c_t _name[_cnt];
NRF_SDH_BLE_OBSERVERS(_name ## _obs,
BLE_LBS_C_BLE_OBSERVER_PRIO,
ble_nus_c_on_ble_evt, &_name, _cnt)

Compiler error:LE_NUS_C_ARRAY_DEF(m_NUS_C,NRF_SDH_BLE_CENTRAL_LINK_COUNT); ......\main.c(184): error: #29: expected an expression

Parents Reply Children
No Data
Related