35 friend class M2MNsdlInterface;
154 M2MResource* get_resource(ServerResource res)
const;
161 friend class Test_M2MServer;
162 friend class Test_M2MNsdlInterface;
165 #endif // M2M_SERVER_H The base class for Client Objects.
Definition: m2mobject.h:39
Definition: m2mserver.h:31
M2MResource * create_resource(ServerResource resource, uint32_t value)
Creates a new resource for a given resource enum.
uint16_t total_resource_count() const
Returns the total number of resources for the server object.
M2MObject. This class is the base class for the mbed Client Objects.
Definition: m2mobjectinstance.h:36
Definition: m2mstring.h:33
bool delete_resource(ServerResource rescource)
Deletes the resource with the given resource enum. Mandatory resources cannot be deleted.
String resource_value_string(ServerResource resource) const
Returns the value of the given resource enum, in string format.
uint32_t resource_value_int(ServerResource resource) const
Returns the value of a given resource name, in integer format.
bool set_resource_value(ServerResource resource, const String &value)
Sets the value of a given resource enum.
ServerResource
Am enum defining all resources associated with a Server Object in the LWM2M framework.
Definition: m2mserver.h:43
bool is_resource_present(ServerResource resource) const
Returns whether the resource instance with the given resource enum exists or not. ...
The base class for Client Resources.
Definition: m2mresource.h:40
Definition: m2minterfacefactory.h:36
virtual ~M2MServer()
Destructor.