|
static M2MInterface * | create_interface (M2MInterfaceObserver &observer, const String &endpoint_name, const String &endpoint_type="", const int32_t life_time=-1, const uint16_t listen_port=5683, const String &domain="", M2MInterface::BindingMode mode=M2MInterface::NOT_SET, M2MInterface::NetworkStack stack=M2MInterface::LwIP_IPv4, const String &context_address="") |
| Creates an interface object for the mbed Client Inteface. With this, the client can handle client operations like Bootstrapping, Client Registration, Device Management and Information Reporting. More...
|
|
static M2MSecurity * | create_security (M2MSecurity::ServerType server_type) |
| Creates a security object for the mbed Client Inteface. With this, the client can manage Bootstrapping and Client Registration. More...
|
|
static M2MServer * | create_server () |
| Creates a server object for the mbed Client Inteface. With this, the client can manage the server resources used for client operations such as Client Registration, server lifetime. More...
|
|
static M2MDevice * | create_device () |
| Creates a device object for the mbed Client Inteface. With this, the client can manage the device resources used for client operations such as Client Registration, Device Management and Information Reporting. More...
|
|
static M2MFirmware * | create_firmware () m2m_deprecated |
| Creates a firmware object for the mbed Client Inteface. With this, the client can manage the firmware resources used for the client operations such as Client Registration, Device Management and Information Reporting. More...
|
|
static M2MObject * | create_object (const String &name) |
| Creates a generic object for the mbed Client Inteface. With this, the client can manage its own customized resources used for registering Device Management and Information Reporting for those resources. More...
|
|
static M2MResource * | create_resource (M2MObjectList &m2m_obj_list, const uint16_t object_id, const uint16_t object_instance_id, const uint16_t resource_id, const M2MResourceInstance::ResourceType resource_type, const M2MBase::Operation allowed, bool multiple_instance=false, bool external_blockwise_store=false) |
| Creates a M2M resource and places it to the given object list. More...
|
|
|
class | Test_M2MInterfaceFactory |
|
static M2MDevice* M2MInterfaceFactory::create_device |
( |
| ) |
|
|
static |
Creates a device object for the mbed Client Inteface. With this, the client can manage the device resources used for client operations such as Client Registration, Device Management and Information Reporting.
- Parameters
-
name | The name of the device object. |
- Returns
- M2MDevice An object for managing other client operations.
static M2MFirmware* M2MInterfaceFactory::create_firmware |
( |
| ) |
|
|
static |
Creates a firmware object for the mbed Client Inteface. With this, the client can manage the firmware resources used for the client operations such as Client Registration, Device Management and Information Reporting.
- Returns
- M2MFirmware An object for managing other client operations.
Creates an interface object for the mbed Client Inteface. With this, the client can handle client operations like Bootstrapping, Client Registration, Device Management and Information Reporting.
- Parameters
-
endpoint_name | The endpoint name of mbed Client. |
endpoint_type | The endpoint type of mbed Client, default is empty. |
life_time | The lifetime of the endpoint in seconds, if -1 it is optional. |
listen_port | The listening port for the endpoint, default is 5683. |
domain | The domain of the endpoint, default is empty. |
mode | The binding mode of the endpoint, default is NOT_SET. |
stack | The underlying network stack to be used for the connection, default is LwIP_IPv4. |
context_address | The context address for M2M-HTTP, not used currently. |
- Returns
- M2MInterfaceImpl An object for managing other client operations.
static M2MObject* M2MInterfaceFactory::create_object |
( |
const String & |
name | ) |
|
|
static |
Creates a generic object for the mbed Client Inteface. With this, the client can manage its own customized resources used for registering Device Management and Information Reporting for those resources.
- Parameters
-
name | The name of the object. |
- Returns
- M2MObject An object for managing other mbed Client operations.
Creates a M2M resource and places it to the given object list.
- Parameters
-
m2m_obj_list | Object list where the newly created resource is added. |
object_id | The OMALwM2M object identifier. |
object_instance_id | The OMALwM2M object instance identifier. |
resource_id | The OMALwM2M resource identifier. |
resource_type | The OMALwM2M resource type. |
allowed | Defines possible REST operations to the requested resource. |
multiple_instance | The resource can have multiple instances, default is false. |
external_blockwise_store | If true CoAP blocks are passed to application through callbacks otherwise handled in mbed-client-c. |
- Returns
- Returns pointer to the created M2MResource, or a NULL on failure.
Creates a security object for the mbed Client Inteface. With this, the client can manage Bootstrapping and Client Registration.
- Parameters
-
ServerType | The type of the Security Object, bootstrap or LWM2M server. |
- Returns
- M2MSecurity An object for managing other client operations.
static M2MServer* M2MInterfaceFactory::create_server |
( |
| ) |
|
|
static |
Creates a server object for the mbed Client Inteface. With this, the client can manage the server resources used for client operations such as Client Registration, server lifetime.
- Returns
- M2MServer An object for managing server client operations.
The documentation for this class was generated from the following file: