mbedConnectorInterface back port from mbedOS v3 using mbed-client C++ call interface
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