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:
- 38:bb6d2be4d54c
- Parent:
- 29:be035befb437
- Child:
- 40:5c039dcbd7b2
--- a/source/ConnectorEndpoint.cpp Tue Jun 14 19:56:47 2016 +0000 +++ b/source/ConnectorEndpoint.cpp Tue Jun 14 20:18:30 2016 +0000 @@ -212,7 +212,7 @@ if (server != NULL) { const String url = this->m_options->getConnectorURL(); server->set_resource_value(M2MSecurity::M2MServerUri, url); - server->set_resource_value(M2MSecurity::BootstrapServer, NULL); + server->set_resource_value(M2MSecurity::BootstrapServer, false); server->set_resource_value(M2MSecurity::SecurityMode, M2MSecurity::Certificate); server->set_resource_value(M2MSecurity::ServerPublicKey,this->m_options->getServerCertificate(),this->m_options->getServerCertificateSize()); server->set_resource_value(M2MSecurity::PublicKey,this->m_options->getClientCertificate(),this->m_options->getClientCertificateSize()); @@ -434,7 +434,7 @@ this->logger()->log("Endpoint::build(): All Resources bound. Number of Objects in list: %d",list.size()); // add all of the object instances we have created... - for(int i=0;i<list.size();++i) { + for(int i=0;i<(int)list.size();++i) { // DEBUG this->logger()->log("Endpoint::build(): adding Object Instance with ObjID: %s...",list.at(i).name().c_str());