Skip to content

Commit f3ab21d

Browse files
blakeyjasonblakeyjason
authored andcommitted
Reverted method names back to Url from FQDN
1 parent fb746cf commit f3ab21d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

golang/src/tlsdemo/cmd/cmd_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func hdlDemo( Parameters []string, pConfig *Config_t ) error {
5656
opts.SetClientID("IoT-Device")
5757
opts.SetTLSConfig( pTlsConfig )
5858
opts.SetProtocolVersion( uint(4) ) // MQTT 3.1.1
59+
opts.SetAutoReconnect( true)
5960

6061
// Attempting to connect to the server for a number of times before asserting
6162
// that the connection failed

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SCRIPTDIR="$( cd "$(dirname "$0")" ; pwd -P )"
44

5-
PORT="/dev/ttyUSB0"
5+
PORT="/dev/ttyUSB2"
66

77
if [[ -z "${BUILD_DIR}" ]]; then
88
source "${SCRIPTDIR}/setenv.sh"

0 commit comments

Comments
 (0)