Hello,
I'm using SDK 132 (v5), kiel 5, SDK 14 and the nrf52 dev board.
- I'd like my application to have multiple Offical Services (Heart rate, Humain temperature, Pulse Oxymeter,...) and a custom one (the UART one).
- I succefully merged the Generic access, generic attribute, NUS, HRS, HTS, DIS, BAS services together and I did a PLX service that's working fine on its own. (I tested it separately, and I'm able to receive notification on nRF connect).
But, when I tried to add the PLX service, to services_init():
enter code // Initialize Pulseoxymeter Service.
memset(&pos_init, 0, sizeof(pos_init));
pos_init.evt_handler = NULL;
pos_init.is_measurment_calibration_ongoing = true;
// Here the sec level for the Pulseoxymeter Service can be changed/increased.
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&pos_init.pos_pom_c_attr_md.cccd_write_perm);
BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&pos_init.pos_pom_c_attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&pos_init.pos_pom_c_attr_md.write_perm);
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&pos_init.pos_fts_attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&pos_init.pos_fts_attr_md.write_perm);
err_code = ble_pos_init(&m_pos, &pos_init);
APP_ERROR_CHECK(err_code);
My application won't advertize anymore, and I get a fatal error. I suspect It may be because I don't have enough RAM (I've a total of 8 services (7 x UUID 16) and 1 custom (UUID 128), that contain 14 characteristics).
I included my pos.c (pulse oxymeter service) on this post
Thank you for your help!
Regards, -Damien