@mysetup/mqtt 1.14.9 → 1.14.10
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/dist/mqttClient.js
CHANGED
|
@@ -15,7 +15,7 @@ var checkInitConnect = function (props) {
|
|
|
15
15
|
protocol: protocol,
|
|
16
16
|
clientId: props.clientId,
|
|
17
17
|
clean: false, /// for retaining previous message purpose
|
|
18
|
-
rejectUnauthorized:
|
|
18
|
+
rejectUnauthorized: false,
|
|
19
19
|
resubscribe: true,
|
|
20
20
|
keepalive: 300,
|
|
21
21
|
username: username,
|
package/package.json
CHANGED
package/dist/test/test-mqtt.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-mqtt.d.ts","sourceRoot":"","sources":["../../test/test-mqtt.ts"],"names":[],"mappings":""}
|
package/dist/test/test-mqtt.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var logger_1 = require("@mysetup/logger");
|
|
4
|
-
var mqttClient_1 = require("../mqttClient");
|
|
5
|
-
var CLIENT_ID = "testClient-".concat(Math.random().toString(16).slice(2, 8));
|
|
6
|
-
(0, mqttClient_1.mqttCreateConnection)({
|
|
7
|
-
clientId: CLIENT_ID,
|
|
8
|
-
config: {
|
|
9
|
-
host: "localhost",
|
|
10
|
-
port: 1883,
|
|
11
|
-
protocol: "mqtt",
|
|
12
|
-
path: "",
|
|
13
|
-
username: process.env.MQTT_USERNAME,
|
|
14
|
-
password: process.env.MQTT_PASSWORD,
|
|
15
|
-
},
|
|
16
|
-
topicList: ["mj/ems/test"],
|
|
17
|
-
messageCallback: function (topic, message) {
|
|
18
|
-
logger_1.logger.info("Message received \u2192 topic: ".concat(topic, ", message: ").concat(message.toString()));
|
|
19
|
-
},
|
|
20
|
-
});
|