@wiotp/sdk 0.8.1-alpha.1 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/BaseConfig.js
CHANGED
|
@@ -134,7 +134,7 @@ export default class BaseConfig{
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
// For encrypted ports
|
|
137
|
-
if (this.options.mqtt.port ==
|
|
137
|
+
if (this.options.mqtt.port == 443 || this.options.mqtt.port == 8883) {
|
|
138
138
|
if (this.options.mqtt.transport == "tcp") {
|
|
139
139
|
return "ssl://" + server;
|
|
140
140
|
}
|
|
@@ -155,4 +155,4 @@ export default class BaseConfig{
|
|
|
155
155
|
throw new Error("Sub class must implement parseConfigFile()");
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
};
|
|
158
|
+
};
|