Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Program4_mbedClient by
Diff: simpleclient.h
- Revision:
- 48:bef96b79dec0
- Parent:
- 43:90fccf21be20
- Child:
- 57:bb3eca53b307
diff -r c64ceb183891 -r bef96b79dec0 simpleclient.h
--- 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,
