use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Diff: source/ConnectorEndpoint.cpp
- Revision:
- 90:b738617379a6
- Parent:
- 89:ccd22d25f431
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