Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52 serialization: ble_data_item_t

It is unclear for me why the following code look like this (conn_ble_gap_sec_keys.c, SDK15):

Fullscreen
1
2
3
4
5
6
7
typedef struct
{
uint32_t id;
uint8_t ble_data[SER_MAX_ADV_DATA];
} ble_data_item_t;
ble_data_item_t m_ble_data_pool[8];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Is it logical that here the SER_MAX_ADV_DATA is used? is there actual advertising data stored in this field?

And why is the data size of 8 for m_ble_data_pool[8] hard coded, is this not the same define as SER_MAX_CONNECTIONS used earlier in the same file?

Regards,

Erwin