Function anjay_sim_bootstrap_stream_create

Function Documentation

avs_stream_t *anjay_sim_bootstrap_stream_create(anjay_sim_bootstrap_perform_command_cb_t *perform_command_cb, void *perform_command_cb_arg)

Creates an input stream object that reads the LwM2M bootstrap information file (EF LwM2M_Bootstrap) from the SIM card.

The stream object will be allocated on the heap and can be freed using avs_stream_cleanup().

Parameters:
  • 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:

The newly created stream object, or NULL in case of error.