use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Revision 90:b738617379a6, committed 2016-11-28
- Comitter:
- Maggie17
- Date:
- Mon Nov 28 15:52:56 2016 +0000
- Parent:
- 89:ccd22d25f431
- Commit message:
- first release
Changed in this revision
source/ConnectorEndpoint.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ccd22d25f431 -r b738617379a6 source/ConnectorEndpoint.cpp --- a/source/ConnectorEndpoint.cpp Fri Nov 04 23:58:52 2016 +0000 +++ b/source/ConnectorEndpoint.cpp Mon Nov 28 15:52:56 2016 +0000 @@ -235,7 +235,7 @@ //this->logger()->log("Connector::Endpoint: listening port: %d",listening_port); // Socket protocol type: TCP or UDP - M2MInterface::BindingMode socket_protocol_type = M2MInterface::UDP; + M2MInterface::BindingMode socket_protocol_type = M2MInterface::TCP; if (this->m_options->getCoAPConnectionType() == COAP_TCP) socket_protocol_type = M2MInterface::TCP; // Socket address type: IPv4 or IPv6