Developer World
Spresense SDK Library v3.2.0-ebc0364
Ltelwm2m_callback_functypes
Collaboration diagram for Ltelwm2m_callback_functypes:

Callback function types

Callback function types to receive notification from server.

typedef void(* lwm2mstub_write_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst, FAR char *value, int len)
 Write request call back function type. More...
 
typedef void(* lwm2mstub_read_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst)
 Read request call back function type. More...
 
typedef void(* lwm2mstub_exec_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst)
 Execution request call back function type. More...
 
typedef void(* lwm2mstub_ovstart_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst, FAR char *token, FAR struct lwm2mstub_ovcondition_s *cond)
 Observe start request call back function type. More...
 
typedef void(* lwm2mstub_ovstop_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst, FAR char *token)
 Observation stop request call back function type. More...
 
typedef void(* lwm2mstub_operation_cb_t) (int event, int srv_id, FAR struct lwm2mstub_instance_s *inst)
 Server operation call back function type. More...
 
typedef void(* lwm2mstub_fwupstate_cb_t) (int event)
 Firmware update call back function type. More...
 

Detailed Description

Typedef Documentation

◆ lwm2mstub_write_cb_t

typedef void(* lwm2mstub_write_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst, FAR char *value, int len)

Write request call back function type.

This type of function pointer is registered by lte_set_report_m2mwrite to get write request from the server

Parameters
[in]seq_noRequest sequence number generated by modem. This number is used when the response is sent.
[in]srv_idServer ID which is received the request.
[in]instRequested resource url.
[in]valueWritten value as string data.
[in]lenLength of the value.

◆ lwm2mstub_read_cb_t

typedef void(* lwm2mstub_read_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst)

Read request call back function type.

This type of function pointer is registered by lte_set_report_m2mread to get read request from the server

Parameters
[in]seq_noRequest sequence number generated by modem. This number is used when the response is sent.
[in]srv_idServer ID which is received the request.
[in]instRequested resource url.

◆ lwm2mstub_exec_cb_t

typedef void(* lwm2mstub_exec_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst)

Execution request call back function type.

This type of function pointer is registered by lte_set_report_m2mexec to get execution request from the server

Parameters
[in]seq_noRequest sequence number generated by modem. This number is used when the response is sent.
[in]srv_idServer ID which is received the request.
[in]instRequested resource url.

◆ lwm2mstub_ovstart_cb_t

typedef void(* lwm2mstub_ovstart_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst, FAR char *token, FAR struct lwm2mstub_ovcondition_s *cond)

Observe start request call back function type.

This type of function pointer is registered by lte_set_report_m2movstart to get observation start request from the server

Parameters
[in]seq_noRequest sequence number generated by modem. This number is used when the response is sent.
[in]srv_idServer ID which is received the request.
[in]instRequested resource url.
[in]tokenToken ID for this observation. This token is used when it updates the value by lte_m2m_observeupdate
[in]condObservation condition

◆ lwm2mstub_ovstop_cb_t

typedef void(* lwm2mstub_ovstop_cb_t) (int seq_no, int srv_id, FAR struct lwm2mstub_instance_s *inst, FAR char *token)

Observation stop request call back function type.

This type of function pointer is registered by lte_set_report_m2movstop to get write request from the server

Parameters
[in]seq_noRequest sequence number generated by modem. This number is used when the response is sent.
[in]srv_idServer ID which is received the request.
[in]instRequested resource url.
[in]tokenToken ID for the observation to stop.

◆ lwm2mstub_operation_cb_t

typedef void(* lwm2mstub_operation_cb_t) (int event, int srv_id, FAR struct lwm2mstub_instance_s *inst)

Server operation call back function type.

This type of function pointer is registered by lte_set_report_m2moperation to get brief request code from the server

Parameters
[in]eventOperation code from Server. Refer to Ltelwm2m_macro_serverop for more details
[in]srv_idServer ID which is received the request.
[in]instRequested resource url.

◆ lwm2mstub_fwupstate_cb_t

typedef void(* lwm2mstub_fwupstate_cb_t) (int event)

Firmware update call back function type.

This type of function pointer is registered by lte_set_report_m2mfwupdate to get the status of firmware update

Parameters
[in]eventStatus code about firmware update. Refer to Ltelwm2m_callback_functypes for more details