Hi,
I have extended the nRF9160 sample app to use Leshan bootstrap server. Using a boostrap server means getting DTLS PSK crypto keys from the bootstrap server. Hence the device must be able to update the keys while connecting. However, it seems this is not supported by the system:
1) The IP stack is offloaded in the sample app (CONFIG_NET_SOCKETS_OFFLOAD=y), meaning it is deployed on the modem to my understanding!?
2) The sample app writes keys at startup (before connecting to the network) thru function nrf_inbuilt_key_write(). The documentation of this function states: "Run this function only when LTE link is inactive. If used during active link, NRF_EACCES will be returned and the key material will not be written."
3) Since it is not possible to write/update keys when connected it is not possible to implement the bootstrap server scenario efficiently!
Please advice regarding the above limitations! How do you envision that the bootstrap server scenario shall be implemented?
I am using the nRF Connect SDK version 1.1.0.
BR / Björn