Dears,
I have a problem with the ble_ant_app_hrm in the examples (multiprotocol). I am using a pca10040 demo board with sdk 14.2 with IDE SES on a MacOS
I have flash the softdevice s332, compile and run the example.
I can discover the device by bluetooth on the NRF connect app but when I want to connect it is continuously saying that it is « connecting » and the led0 on the board is continually ON.
I have done a small app by my own on iOS, I can connect with a heart rate belt from Decathlon and when I try to connect with the pca10040 board it discovers it but never received a response after discovering services.
I have seen in the code that there is a BONDING_ENABLE macro,
I have add a line:
#define BONDING_ENABLE
At the beginning of the main.c
But I have the error by compiling
Building ‘ble_ant_app_hrm_pca10040_s332’ from solution ‘ble_ant_app_hrm_pca10040_s332’ in configuration ‘Debug’
Compiling ‘main.c’
implicit declaration of function 'fs_sys_event_handler'; did you mean 'soc_evt_handler'? [-Wimplicit-function-declaration]
implicit declaration of function 'ble_advertising_on_sys_evt'; did you mean 'advertising_init'? [-Wimplicit-function-declaration]
expected ')' before numeric constant
implicit declaration of function 'NRF_LOG_INFO_DEBUG'; did you mean 'NRF_LOG_DEBUG'? [-Wimplicit-function-declaration]
Build failed
Corresponding to:
static void soc_evt_handler(uint32_t evt_id, void * p_context)
{
// Dispatch the system event to the fstorage module, where it will be
// dispatched to the Flash Data Storage (FDS) module.
fs_sys_event_handler(evt_id);
// Dispatch to the Advertising module last, since it will check if there are any
// pending flash operations in fstorage. Let fstorage process system events first,
// so that it can report correctly to the Advertising module.
ble_advertising_on_sys_evt(evt_id);
}
NRF_SDH_SOC_OBSERVER_REGISTER(m_soc_observer, 0, soc_evt_handler, NULL);
Am I doing something wrong? Any idea why it is stucking at the discovery of the services?
Thank you!