k64f targated antenna alignment tool with lwm2m client capabilities.
Dependencies: FXOS8700Q-driver MODSERIAL
Fork of mbed-os-example-client by
Diff: simpleclient.h
- Revision:
- 48:bef96b79dec0
- Parent:
- 43:90fccf21be20
- Child:
- 52:74019970a2bf
--- 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,