Skip to content

Commit

Permalink
Updated tls client example
Browse files Browse the repository at this point in the history
Added protocol ssl. Without protocol parameter thos example doesn't work.
  • Loading branch information
zarej authored Nov 29, 2017
1 parent 13f0219 commit 2c29c25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/tls client/mqttclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ var options = {
cert: CERT,
rejectUnauthorized: true,
// The CA list will be used to determine if server is authorized
ca: TRUSTED_CA_LIST
ca: TRUSTED_CA_LIST,
protocol: 'ssl'
}

var client = mqtt.connect(options)
Expand Down

0 comments on commit 2c29c25

Please sign in to comment.