35 friend class M2MNsdlInterface;
36 friend class M2MInterfaceImpl;
116 const String &value);
160 M2MResource* get_resource(ServerResource res)
const;
167 friend class Test_M2MServer;
168 friend class Test_M2MNsdlInterface;
171 #endif // M2M_SERVER_H Definition: m2mobject.h:35
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.
Definition: m2mobjectinstance.h:42
void delete_resources()
Deletes all optional resources.
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:44
bool is_resource_present(ServerResource resource) const
Returns whether the resource instance with the given resource enum exists or not. ...
Definition: m2mresource.h:38
Definition: m2minterfacefactory.h:36
virtual ~M2MServer()
Destructor.