We would like to pre-bond our devices in production by writing bonding data into flash. Generating LTKs is easy enough. But we'd also like to store that notifications on peripheral were enabled, even though they never even connected before.
I'm aware of the sd_ble_gatts_sys_attr_set and that local gatt database is updated when using peer manager and enabling notifications through normal route. That way they get re-enabled on next connection. I tried inspecting pm_peer_data_local_gatt_db_t using pds_peer_data_read after normal bonding, but values don't make much sense to me.
If someone could point me in right direction, like when does peer manager store the gatt databse, or the format of pm_peer_data_local_gatt_db_t::data would be appreciated.