anjay
Loading...
Searching...
No Matches
bootstrapper.h File Reference
#include <avsystem/commons/avs_stream.h>
#include <anjay/core.h>

Go to the source code of this file.

Functions

avs_error_t anjay_bootstrapper (anjay_t *anjay, avs_stream_t *data_stream)
 

Function Documentation

◆ anjay_bootstrapper()

avs_error_t anjay_bootstrapper ( anjay_t anjay,
avs_stream_t *  data_stream 
)

Reads Bootstrap Information from the stream (data_stream) and initializes Anjay's data model. Expected format of the stream data is described in LwM2M specification in Appendix G.3.3.

Parameters
anjayAnjay Object to operate on.
data_streamBootstrap Information data stream.
Returns
AVS_OK in case of success, or an error code.