
Functions before Radio ON | |
API functions which can effect before lte_radio_on() Those functions can be called just after lte_power_on() until before lte_radio_on(). | |
| int | lte_setm2m_endpointname (FAR char *name) |
| Set endpoint name. More... | |
| int | lte_getm2m_endpointname (FAR char *name, int len) |
| Get endpoint name. More... | |
| int | lte_getm2m_servernum (void) |
| Get Server num. More... | |
| int | lte_setm2m_serverinfo (FAR struct lwm2mstub_serverinfo_s *info, int id) |
| Server configuration. More... | |
| int | lte_getm2m_serverinfo (FAR struct lwm2mstub_serverinfo_s *info, int id) |
| Get server configuration. More... | |
| int | lte_getm2m_enabled_objectnum (void) |
| Get enabled objects number. More... | |
| int | lte_getm2m_enabled_objects (FAR uint16_t *objids, int objnum) |
| Get object IDs of currently active objects. More... | |
| int | lte_enablem2m_objects (FAR uint16_t *objids, int objnum) |
| Enable objects. More... | |
| int | lte_getm2m_objresourcenum (uint16_t objid) |
| Get resource number on the object. More... | |
| int | lte_getm2m_objresourceinfo (uint16_t objids, int res_num, FAR struct lwm2mstub_resource_s *reses) |
| Get the information of resources on the object. More... | |
| int | lte_setm2m_objectdefinition (uint16_t objids, int res_num, FAR struct lwm2mstub_resource_s *reses) |
| Configure the resources of the object. More... | |
| bool | lte_getm2m_qmode (void) |
| Get current Queue mode of LwM2M. More... | |
| int | lte_setm2m_qmode (bool en) |
| Set Queue mode of LwM2M. More... | |
| int | lte_apply_m2msetting (void) |
| Activate all configurations. More... | |
| int lte_setm2m_endpointname | ( | FAR char * | name | ) |
Set endpoint name.
To set the device endpoint name.
| [in] | name | Endpoint name to set. This is ASCII character array terminated by '\0' |
| OK | Setting is done successfully |
| non-OK | Any error is occurred |
| int lte_getm2m_endpointname | ( | FAR char * | name, |
| int | len | ||
| ) |
Get endpoint name.
Get the device endpoint name.
| [out] | name | pointer to store the endpoint name. |
| [in] | len | Length of the memory of name in bytes. |
| OK | Setting is done successfully |
| non-OK | Any error is occurred |
| int lte_getm2m_servernum | ( | void | ) |
Get Server num.
Get number of servers.
| >=0 | Server number |
| <0 | Any error is occurred |
| int lte_setm2m_serverinfo | ( | FAR struct lwm2mstub_serverinfo_s * | info, |
| int | id | ||
| ) |
Server configuration.
Configure the settings according to the information on the server side.
| [in] | info | Server information to set |
| [in] | id | Server ID. Which is an ID from 0 to the number obtained by lte_getm2m_servernum(). Currently only 0 is supported. |
| OK | Configuration is done successfully |
| non-OK | Any error is occurred |
| int lte_getm2m_serverinfo | ( | FAR struct lwm2mstub_serverinfo_s * | info, |
| int | id | ||
| ) |
Get server configuration.
Configure the settings according to the information on the server side.
| [out] | info | Server information |
| [in] | id | Server ID. Which is an ID from 0 to the number obtained by lte_getm2m_servernum(). Currently only 0 is supported. |
| OK | Configuration is done successfully |
| non-OK | Any error is occurred |
| int lte_getm2m_enabled_objectnum | ( | void | ) |
Get enabled objects number.
Obtaining the number of currently active objects.
| >=0 | Objects number |
| <0 | Any error is occurred |
| int lte_getm2m_enabled_objects | ( | FAR uint16_t * | objids, |
| int | objnum | ||
| ) |
Get object IDs of currently active objects.
Obtaining object IDs of currently active objects.
| [out] | objids | Array to store object IDs |
| [in] | objnum | Size of objids array |
| >=0 | Actual number of object IDs |
| <0 | Any error is occurred |
| int lte_enablem2m_objects | ( | FAR uint16_t * | objids, |
| int | objnum | ||
| ) |
Enable objects.
Activate the specified Object IDs
| [in] | objids | Array to indicate object IDs to enable |
| [in] | objnum | Size of objids array |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_getm2m_objresourcenum | ( | uint16_t | objid | ) |
Get resource number on the object.
Obtains the number of resources that the specified Object has.
| [in] | objid | Object ID |
| >=0 | The number of resources |
| <0 | Any error is occurred |
| int lte_getm2m_objresourceinfo | ( | uint16_t | objids, |
| int | res_num, | ||
| FAR struct lwm2mstub_resource_s * | reses | ||
| ) |
Get the information of resources on the object.
Obtains the information of resources that the specified Object has.
| [in] | objids | Object ID |
| [in] | res_num | Array size of reses |
| [in] | reses | Array of resources information to store |
| OK | Operation is done successfully |
| non-OK | Any error is occurred |
| int lte_setm2m_objectdefinition | ( | uint16_t | objids, |
| int | res_num, | ||
| FAR struct lwm2mstub_resource_s * | reses | ||
| ) |
| bool lte_getm2m_qmode | ( | void | ) |
| int lte_setm2m_qmode | ( | bool | en | ) |
| int lte_apply_m2msetting | ( | void | ) |
Activate all configurations.
Configuration functions in Ltelwm2m_func_beforeradioon group is not effected before this function is called.
| OK | Operation is done successfully |
| non-OK | Any error is occurred |