use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Diff: mbed-connector-interface/ConnectorEndpoint.h
- Revision:
- 76:7f55e1c0635d
- Parent:
- 73:f12a767bc300
- Child:
- 77:cee832ba6dd0
--- a/mbed-connector-interface/ConnectorEndpoint.h Fri Nov 04 22:09:00 2016 +0000 +++ b/mbed-connector-interface/ConnectorEndpoint.h Fri Nov 04 22:28:13 2016 +0000 @@ -90,15 +90,31 @@ @param csi input instance pointer to the ConnectionStatusInterface implementation to be used */ static void setConnectionStatusInterface(ConnectionStatusInterface *csi); - - // register the endpoint - void register_endpoint(M2MSecurity *server_instance, M2MObjectList resources); // re-register endpoint void re_register_endpoint(); // de-register endpoint and stop scheduling void de_register_endpoint(void); + +#ifdef ENABLE_MBED_CLOUD_SUPPORT + // mbed-cloud-client : register the endpoint + void register_endpoint(M2MObjectList resources); + + // mbed-cloud-client : object registered + virtual void object_registered(); + + // mbed-cloud-client : registration updated + virtual void registration_updated() ; + + // mbed-cloud-client : object unregistered + virtual void object_unregistered(); + + // mbed-cloud-client : bootstrap done + virtual void bootstrap_done(); +#else + // mbed-client : register the endpoint + void register_endpoint(M2MSecurity *server_instance, M2MObjectList resources); // mbed-client : object registered virtual void object_registered(M2MSecurity *server_instance, const M2MServer &server); @@ -111,6 +127,7 @@ // mbed-client : bootstrap done virtual void bootstrap_done(M2MSecurity *server_instance); +#endif // mbed-client : resource value updated virtual void value_updated(M2MBase *resource, M2MBase::BaseType type) ;