From 2c29c25a2e0926d932014efd132182b2c1d3a078 Mon Sep 17 00:00:00 2001 From: zarej Date: Wed, 29 Nov 2017 12:30:59 +0100 Subject: [PATCH] Updated tls client example Added protocol ssl. Without protocol parameter thos example doesn't work. --- examples/tls client/mqttclient.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/tls client/mqttclient.js b/examples/tls client/mqttclient.js index f598292b0..8ce3357d2 100644 --- a/examples/tls client/mqttclient.js +++ b/examples/tls client/mqttclient.js @@ -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)