16 #ifndef M2M_ENDPOINT_H 17 #define M2M_ENDPOINT_H 29 #ifdef MBED_CLOUD_CLIENT_EDGE_EXTENSION 32 typedef Vector<M2MObject *> M2MObjectList;
39 class M2MEndpoint :
public M2MBase 43 friend class M2MNsdlInterface;
44 friend class TestFactory;
45 friend class Test_M2MObject;
56 M2MEndpoint(
const String &object_name,
63 M2MEndpoint& operator=(
const M2MEndpoint& );
66 M2MEndpoint(
const M2MEndpoint& );
81 bool get_changed()
const;
89 virtual ~M2MEndpoint();
96 M2MObject* create_object(
const String &name);
103 bool remove_object(
const String &name);
110 M2MObject* object(
const String &name)
const;
116 const M2MObjectList& objects()
const;
122 uint16_t object_count()
const;
157 sn_coap_hdr_s *received_coap_header,
170 sn_coap_hdr_s *received_coap_header,
172 bool &execute_value_updated);
184 sn_coap_hdr_s *received_coap_header,
186 bool &execute_value_updated,
187 sn_nsdl_addr_s *address = NULL);
193 void set_context(
void *ctx);
200 void* get_context()
const;
205 virtual void set_deleted();
211 virtual bool is_deleted();
215 M2MObjectList _object_list;
222 friend class Test_M2MEndpoint;
223 friend class Test_M2MInterfaceImpl;
224 friend class Test_M2MNsdlInterface;
225 friend class Test_M2MTLVSerializer;
226 friend class Test_M2MTLVDeserializer;
227 friend class Test_M2MDevice;
228 friend class Test_M2MBase;
229 friend class Test_M2MResource;
230 friend class Test_M2MSecurity;
231 friend class Test_M2MServer;
232 friend class Test_M2MResourceInstance;
235 #endif // MBED_CLOUD_CLIENT_EDGE_EXTENSION 237 #endif // M2M_ENDPOINT_H Definition: m2mobject.h:35
Definition: m2mobservationhandler.h:30
virtual void set_changed()
The data has changed and it needs to be updated into Device Management. Current implementation mainta...
Observation
Enum to define observation level.
Definition: m2mbase.h:74
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.
Header for M2MBase class.
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.
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.