U_Blox device connector

Dependencies:   mbed

Fork of mbed-os-example-client by mbed-os-examples

Revision:
48:bef96b79dec0
Parent:
43:90fccf21be20
Child:
57:bb3eca53b307
--- a/simpleclient.h	Fri Dec 16 13:15:09 2016 +0000
+++ b/simpleclient.h	Tue Dec 20 14:45:09 2016 +0000
@@ -124,7 +124,7 @@
                           void *handler=NULL) {
     // Randomizing listening port for Certificate mode connectivity
     _server_address = server_address;
-    uint16_t port = rand() % 65535 + 12345;
+    uint16_t port = 0; // Network interface will randomize with port 0
 
     // create mDS interface object, this is the base object everything else attaches to
     _interface = M2MInterfaceFactory::create_interface(*this,