mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
NOTE:
This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!
Diff: source/ConnectorEndpoint.cpp
- Revision:
- 82:e085176f6719
- Parent:
- 81:a2441163a06e
- Child:
- 83:8d856fa24fda
--- a/source/ConnectorEndpoint.cpp Fri Nov 04 23:18:57 2016 +0000 +++ b/source/ConnectorEndpoint.cpp Fri Nov 04 23:22:01 2016 +0000 @@ -296,7 +296,7 @@ #ifdef ENABLE_MBED_CLOUD_SUPPORT // mbed-cloud-client: Callback from mbed client stack if any error is encountered -void Endpoint::error(int error_code) { +void Endpoint::on_error(int error_code) { char *error = "No Error"; switch(error_code) { case 0x01: @@ -463,7 +463,7 @@ #ifdef ENABLE_MBED_CLOUD_SUPPORT // object registered -void Endpoint::object_registered() { +void Endpoint::on_registered() { this->logger()->log("Connector::Endpoint(Cloud): endpoint registered."); this->m_connected = true; this->m_registered = true; @@ -473,7 +473,7 @@ } // registration updated -void Endpoint::registration_updated() { +void Endpoint::on_registration_updated() { this->logger()->log("Connector::Endpoint(Cloud): endpoint re-registered."); this->m_connected = true; this->m_registered = true; @@ -483,7 +483,7 @@ } // object unregistered -void Endpoint::object_unregistered() { +void Endpoint::on_unregistered() { // DEBUG this->logger()->log("Connector::Endpoint(Cloud): endpoint de-registered."); @@ -502,8 +502,7 @@ // halt the main event loop... we are done. net_shutdown_endpoint(); } - -#else +#endif // object registered void Endpoint::object_registered(M2MSecurity *security, const M2MServer &server) { @@ -545,7 +544,6 @@ // halt the main event loop... we are done. net_shutdown_endpoint(); } -#endif // bootstrap done void Endpoint::bootstrap_done(M2MSecurity *server) {