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:
- 23:5852c0884714
- Parent:
- 15:c11dbe4d354c
- Child:
- 26:d7b009313e3b
--- a/source/ConnectorEndpoint.cpp Fri Jun 10 19:39:48 2016 +0000 +++ b/source/ConnectorEndpoint.cpp Sat Jun 11 02:34:34 2016 +0000 @@ -242,18 +242,18 @@ // register the endpoint void Endpoint::register_endpoint(M2MSecurity *server_instance, M2MObjectList resources) { - if (this->m_interface != NULL && server_instance != NULL && resources.size() > 0) { - // register endpoint - this->logger()->log("Registering endpoint..."); - this->m_interface->register_object(server_instance, resources); - } + if (this->m_interface != NULL && server_instance != NULL && resources.size() > 0) { + // register endpoint + this->logger()->log("Registering endpoint..."); + this->m_interface->register_object(server_instance, resources); + } } // re-register the endpoint void Endpoint::re_register_endpoint() { - if (this->m_interface != NULL) { - this->m_interface->update_registration(this->m_server_instance, this->m_options->getLifetime()); - } + if (this->m_interface != NULL) { + this->m_interface->update_registration(this->m_server_instance, this->m_options->getLifetime()); + } } // de-register endpoint