16 #ifndef M2M_ENDPOINT_H 17 #define M2M_ENDPOINT_H 31 #ifdef MBED_CLOUD_CLIENT_EDGE_EXTENSION 37 class M2MEndpoint :
public M2MBase 41 friend class M2MNsdlInterface;
42 friend class TestFactory;
43 friend class Test_M2MObject;
54 M2MEndpoint(
const String &object_name,
61 M2MEndpoint& operator=(
const M2MEndpoint& );
64 M2MEndpoint(
const M2MEndpoint& );
79 bool get_changed()
const;
87 virtual ~M2MEndpoint();
101 bool remove_object(
const String &name);
120 uint16_t object_count()
const;
155 sn_coap_hdr_s *received_coap_header,
168 sn_coap_hdr_s *received_coap_header,
170 bool &execute_value_updated);
182 sn_coap_hdr_s *received_coap_header,
184 bool &execute_value_updated,
185 sn_nsdl_addr_s *address = NULL);
191 void set_context(
void *ctx);
198 void* get_context()
const;
203 virtual void set_deleted();
209 virtual bool is_deleted();
220 friend class Test_M2MEndpoint;
221 friend class Test_M2MInterfaceImpl;
222 friend class Test_M2MNsdlInterface;
223 friend class Test_M2MTLVSerializer;
224 friend class Test_M2MTLVDeserializer;
225 friend class Test_M2MDevice;
226 friend class Test_M2MFirmware;
227 friend class Test_M2MBase;
228 friend class Test_M2MResource;
229 friend class Test_M2MSecurity;
230 friend class Test_M2MServer;
231 friend class Test_M2MResourceInstance;
234 #endif // MBED_CLOUD_CLIENT_EDGE_EXTENSION 236 #endif // M2M_ENDPOINT_H The base class for Client Objects.
Definition: m2mobject.h:39
Definition: m2mobservationhandler.h:31
virtual void set_changed()
The data has changed and it needs to be updated into Device Management. Current implementation mainta...
The base class based on which all LwM2M object models can be created.
Definition: m2mbase.h:63
M2MObject. This class is the base class for the mbed Client Objects.
Observation
Enum to define observation level.
Definition: m2mbase.h:83
virtual sn_coap_hdr_s * handle_get_request(nsdl_s *nsdl, sn_coap_hdr_s *received_coap_header, M2MObservationHandler *observation_handler=NULL)
Handles GET request for the registered objects.
virtual sn_coap_hdr_s * handle_put_request(nsdl_s *nsdl, sn_coap_hdr_s *received_coap_header, M2MObservationHandler *observation_handler, bool &execute_value_updated)
Handles PUT request for the registered objects.
virtual void set_observation_handler(M2MObservationHandler *handler)=0
Sets the observation handler.
Definition: m2mstring.h:33
M2MBase. This class is the base class based on which all LwM2M object models can be created...
A simple C++ Vector class, used as replacement for std::vector.
virtual sn_coap_hdr_s * handle_post_request(nsdl_s *nsdl, sn_coap_hdr_s *received_coap_header, M2MObservationHandler *observation_handler, bool &execute_value_updated, sn_nsdl_addr_s *address=NULL)
Handles GET request for the registered objects.
Definition: m2mvector.h:30
A simple C++ string class, used as replacement for std::string.
virtual void remove_observation_level(M2MBase::Observation observation_level)
Removes the observation level for the object.
virtual void add_observation_level(M2MBase::Observation observation_level)
Adds the observation level for the object.
Definition: m2minterfacefactory.h:36
virtual M2MObservationHandler * observation_handler() const =0
Returns the Observation Handler object.