use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
21:0bbe9057e7b1
Parent:
13:9edad7677211
Child:
27:b8aaf7dc7023
--- a/source/Utils.cpp	Fri Jun 10 19:29:07 2016 +0000
+++ b/source/Utils.cpp	Fri Jun 10 19:35:59 2016 +0000
@@ -46,6 +46,7 @@
     logger.log("Endpoint: allocating endpoint instance...");
 	Connector::Endpoint *ep = new Connector::Endpoint(&logger,options);
 	if (ep != NULL) {
+		config.setEndpoint((void *)ep);
 		ep->asRouterNode(canActAsRouterNode);
     }
     return (void *)ep;
@@ -102,6 +103,8 @@
     // main.cpp can override or change any of the above defaults...
     logger.log("Endpoint: gathering configuration overrides...");
     options = configure_endpoint(config);
+    
+    // set our options
 	ep->setOptions(options);
 	
     // DONE