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... | |
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
[in] | seq_no | Request sequence number generated by modem. This number is used when the response is sent. |
[in] | srv_id | Server ID which is received the request. |
[in] | inst | Requested resource url. |
[in] | value | Written value as string data. |
[in] | len | Length of the value. |
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
[in] | seq_no | Request sequence number generated by modem. This number is used when the response is sent. |
[in] | srv_id | Server ID which is received the request. |
[in] | inst | Requested resource url. |
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
[in] | seq_no | Request sequence number generated by modem. This number is used when the response is sent. |
[in] | srv_id | Server ID which is received the request. |
[in] | inst | Requested resource url. |
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
[in] | seq_no | Request sequence number generated by modem. This number is used when the response is sent. |
[in] | srv_id | Server ID which is received the request. |
[in] | inst | Requested resource url. |
[in] | token | Token ID for this observation. This token is used when it updates the value by lte_m2m_observeupdate |
[in] | cond | Observation condition |
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
[in] | seq_no | Request sequence number generated by modem. This number is used when the response is sent. |
[in] | srv_id | Server ID which is received the request. |
[in] | inst | Requested resource url. |
[in] | token | Token ID for the observation to stop. |
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
[in] | event | Operation code from Server. Refer to Ltelwm2m_macro_serverop for more details |
[in] | srv_id | Server ID which is received the request. |
[in] | inst | Requested resource url. |
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
[in] | event | Status code about firmware update. Refer to Ltelwm2m_callback_functypes for more details |