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

m_sec_params parameter to sd_ble_gap_authenticate declared static?

I noticed that m_sec_params passed to sd_ble_gap_authenticate(uint16_t conn_handle, ble_gap_sec_params_t const * const p_sec_params) has been declared as a static variable in the example main.c . This consumes available memory space.

Can this be safely passed as an automatic stack variable or declared as a const and kept in the flash memory?

Parents Reply Children
No Data
Related