
Variables | |
| int | res_id |
| int | operation |
| int | inst_type |
| int | data_type |
| int | handl |
| int | object_id |
| int | object_inst |
| int | res_id |
| int | res_inst |
| uint8_t | valid_mask |
| unsigned int | min_period |
| unsigned int | max_period |
| double | gt_cond |
| double | lt_cond |
| double | step_val |
| int | object_inst |
| int | state |
| bool | bootstrap |
| bool | nonip |
| int | security_mode |
| uint32_t | lifetime |
| char | server_uri [LWM2MSTUB_MAX_SERVER_NAME] |
| char | device_id [LWM2MSTUB_MAX_DEVID] |
| char | security_key [LWM2MSTUB_MAX_SEQKEY] |
Functions after Radio ON | |
API functions which can effect after lte_radio_on() Those functions can be called after lte_radio_on(). | |
| int | lte_m2m_connection (int cmd) |
| Control connection to server. More... | |
| int | lte_set_report_m2mwrite (lwm2mstub_write_cb_t cb) |
| Register callback function pointer for write request. More... | |
| int | lte_set_report_m2mread (lwm2mstub_read_cb_t cb) |
| Register callback function pointer for read request. More... | |
| int | lte_set_report_m2mexec (lwm2mstub_exec_cb_t cb) |
| Register callback function pointer for execute request. More... | |
| int | lte_set_report_m2movstart (lwm2mstub_ovstart_cb_t cb) |
| Register callback function pointer for observation start request. More... | |
| int | lte_set_report_m2movstop (lwm2mstub_ovstop_cb_t cb) |
| Register callback function pointer for observation stop request. More... | |
| int | lte_set_report_m2moperation (lwm2mstub_operation_cb_t cb) |
| Register callback function pointer for server operation. More... | |
| int | lte_set_report_m2mfwupdate (lwm2mstub_fwupstate_cb_t cb) |
| Register callback function pointer for firmware update status. More... | |
| int | lte_m2m_readresponse (int seq_no, FAR struct lwm2mstub_instance_s *inst, int resp, FAR char *readvalue, int len) |
| Response result of read request to the server. More... | |
| int | lte_m2m_writeresponse (int seq_no, FAR struct lwm2mstub_instance_s *inst, int resp) |
| Response result of write request to the server. More... | |
| int | lte_m2m_executeresp (int seq_no, FAR struct lwm2mstub_instance_s *inst, int resp) |
| Response result of execute request to the server. More... | |
| int | lte_m2m_observeresp (int seq_no, int resp) |
| Response result of observation start/stop request to the server. More... | |
| int lte_m2m_connection | ( | int | cmd | ) |
Control connection to server.
Connection control to the server which is configured by lte_setm2m_serverinfo()
| [in] | cmd | Connection command. Refer to Ltelwm2m_macro_regcmd for more details. |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_set_report_m2mwrite | ( | lwm2mstub_write_cb_t | cb | ) |
Register callback function pointer for write request.
Register callback function to get notification of write request from a server
| [in] | cb | Callback function pointer which is implemented by user |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_set_report_m2mread | ( | lwm2mstub_read_cb_t | cb | ) |
Register callback function pointer for read request.
Register callback function to get notification of read request from a server
| [in] | cb | Callback function pointer which is implemented by user |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_set_report_m2mexec | ( | lwm2mstub_exec_cb_t | cb | ) |
Register callback function pointer for execute request.
Register callback function to get notification of execute request from a server
| [in] | cb | Callback function pointer which is implemented by user |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_set_report_m2movstart | ( | lwm2mstub_ovstart_cb_t | cb | ) |
Register callback function pointer for observation start request.
Register callback function to get notification of observation start request from a server
| [in] | cb | Callback function pointer which is implemented by user |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_set_report_m2movstop | ( | lwm2mstub_ovstop_cb_t | cb | ) |
Register callback function pointer for observation stop request.
Register callback function to get notification of observation stop request from a server
| [in] | cb | Callback function pointer which is implemented by user |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_set_report_m2moperation | ( | lwm2mstub_operation_cb_t | cb | ) |
Register callback function pointer for server operation.
Register callback function to get briefly notification of server operation
| [in] | cb | Callback function pointer which is implemented by user |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_set_report_m2mfwupdate | ( | lwm2mstub_fwupstate_cb_t | cb | ) |
Register callback function pointer for firmware update status.
Register callback function to get notification of firmware update status from the modem
| [in] | cb | Callback function pointer which is implemented by user |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_m2m_readresponse | ( | int | seq_no, |
| FAR struct lwm2mstub_instance_s * | inst, | ||
| int | resp, | ||
| FAR char * | readvalue, | ||
| int | len | ||
| ) |
Response result of read request to the server.
Send response of result of read request to the server. Basically this function is called in lwm2mstub_read_cb_t callback function.
| [in] | seq_no | Sequence number provided on an argument as seq_no in lwm2mstub_read_cb_t |
| [in] | inst | Resource URI to respond. Basically this should be the same as inst argument on lwm2mstub_read_cb_t |
| [in] | resp | Response code. Refer to Ltelwm2m_macro_serverop for more details. |
| [in] | value | Read value as string data to send. |
| [in] | len | Length of the value. |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_m2m_writeresponse | ( | int | seq_no, |
| FAR struct lwm2mstub_instance_s * | inst, | ||
| int | resp | ||
| ) |
Response result of write request to the server.
Send response of result of write request to the server. Basically this function is called in lwm2mstub_write_cb_t callback function.
| [in] | seq_no | Sequence number provided on an argument as seq_no in lwm2mstub_write_cb_t |
| [in] | inst | Resource URI to respond. Basically this should be the same as inst argument on lwm2mstub_write_cb_t |
| [in] | resp | Response code. Refer to Ltelwm2m_macro_serverop for more details. |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_m2m_executeresp | ( | int | seq_no, |
| FAR struct lwm2mstub_instance_s * | inst, | ||
| int | resp | ||
| ) |
Response result of execute request to the server.
Send response of result of execute request to the server. Basically this function is called in lwm2mstub_exec_cb_t callback function.
| [in] | seq_no | Sequence number provided on an argument as seq_no in lwm2mstub_exec_cb_t |
| [in] | inst | Resource URI to respond. Basically this should be the same as inst argument on lwm2mstub_exec_cb_t |
| [in] | resp | Response code. Refer to Ltelwm2m_macro_serverop for more details. |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_m2m_observeresp | ( | int | seq_no, |
| int | resp | ||
| ) |
Response result of observation start/stop request to the server.
Send response of result of observation start/stop request to the server. Basically this function is called in lwm2mstub_obstart_cb_t or lwm2mstub_ovstop_cb_t callback function.
| [in] | seq_no | Sequence number provided on an argument as seq_no in lwm2mstub_ovstart_cb_t or lwm2mstub_ovstop_cb_t |
| [in] | resp | Response code. Refer to Ltelwm2m_macro_serverop for more details. |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int res_id |
Resource id
| int operation |
Operation mode: refer to Ltelwm2m_macro_resopmode more details
| int inst_type |
Instance type: refer to Ltelwm2m_macro_resinsttype more details
| int data_type |
Data type: refer to Ltelwm2m_macro_resdatatype more details
| int handl |
Handle side: refer to Ltelwm2m_macro_reshandle more details
| int object_id |
Object ID
| int object_inst |
Object Instance number
| int res_id |
Resource ID
| int res_inst |
Resource instance number
| uint8_t valid_mask |
Bit map to indicate valid parameters: refer to Ltelwm2m_macro_condvalid for more details
| unsigned int min_period |
Min period seconds
| unsigned int max_period |
Max period seconds
| double gt_cond |
Grater than condition
| double lt_cond |
Less than condition
| double step_val |
Step value
| int object_inst |
Server object instance number. Usually set to 0
| int state |
Current server status: Refer to Ltelwm2m_macro_serverstat for more details
| bool bootstrap |
Set true, when it uses bootstrap server
| bool nonip |
Set true, when Non IP like NIDD is used
| int security_mode |
Security type: Refer to Ltelwm2m_macro_seqmode for more details
| uint32_t lifetime |
Lifetime which is stored into /1/x/1 resource as a default value.
| char server_uri[LWM2MSTUB_MAX_SERVER_NAME] |
Server URI
| char device_id[LWM2MSTUB_MAX_DEVID] |
Device ID
| char security_key[LWM2MSTUB_MAX_SEQKEY] |
Security key