Function anjay_sim_bootstrap_perform
Defined in File sim_bootstrap.h
Function Documentation
-
static inline avs_error_t anjay_sim_bootstrap_perform(anjay_t *anjay, anjay_sim_bootstrap_perform_command_cb_t *perform_command_cb, void *perform_command_cb_arg)
Reads LwM2M Bootstrap Information from the SIM card, as described in Appendix G of the LwM2M Core TS, and initializes the Anjay data model according to the data contained inside.
If such bootstrap information is not present on the SIM card, or on any other error, the data model will be left unchanged.
For details on the internals of this process, see LwM2M Core TS 1.2.1, Appendix G https://www.openmobilealliance.org/release/LightweightM2M/V1_2_1-20221209-A/HTML-Version/OMA-TS-LightweightM2M_Core-V1_2_1-20221209-A.html#15-0-Appendix-G-Storage-of-LwM2M-Bootstrap-Information-on-the-Smartcard-Normative.
This is a convenience function that calls anjay_sim_bootstrap_stream_create and anjay_bootstrapper underneath.
- Parameters:
anjay – Anjay object to operate on.
perform_command_cb – Callback function to use for performing raw commands on the smartcard.
perform_command_cb_arg – Opaque argument that will be passed to
perform_command_cb.
- Returns:
AVS_OK in case of success, or an error code.