use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Diff: source/ConnectorEndpoint.cpp
- Revision:
- 86:89977e288213
- Parent:
- 85:ad357f0a48d2
- Child:
- 87:00b3837986c7
--- a/source/ConnectorEndpoint.cpp Fri Nov 04 23:33:59 2016 +0000 +++ b/source/ConnectorEndpoint.cpp Fri Nov 04 23:37:11 2016 +0000 @@ -485,22 +485,22 @@ #endif // object registered -void Endpoint::object_registered(M2MSecurity *security, const M2MServer &server) { +void Endpoint::object_registered(M2MSecurity *security, const M2MServer &) { this->logger()->log("Connector::Endpoint: endpoint registered."); this->m_connected = true; this->m_registered = true; if (this->m_csi != NULL) { - this->m_csi->object_registered((void *)this,(void *)security,(void *)&server); + this->m_csi->object_registered((void *)this,(void *)security,(void *)NULL); } } // registration updated -void Endpoint::registration_updated(M2MSecurity *security, const M2MServer &server) { +void Endpoint::registration_updated(M2MSecurity *security, const M2MServer &) { this->logger()->log("Connector::Endpoint: endpoint re-registered."); this->m_connected = true; this->m_registered = true; if (this->m_csi != NULL) { - this->m_csi->registration_updated((void *)this,(void *)security,(void *)&server); + this->m_csi->registration_updated((void *)this,(void *)security,(void *)NULL); } }