@kuriousdesign/machine-sdk 1.0.2 → 1.0.4
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/plc-tags/mqtt.d.ts +6 -0
- package/dist/plc-tags/mqtt.js +7 -1
- package/package.json +1 -1
- package/src/plc-tags/mqtt.ts +8 -0
package/dist/plc-tags/mqtt.d.ts
CHANGED
|
@@ -4,4 +4,10 @@ export interface TopicData {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const MqttTopics: {
|
|
6
6
|
readonly BRIDGE_STATUS: "bridge/status";
|
|
7
|
+
readonly BRIDGE_CMD: "bridge/cmd";
|
|
8
|
+
readonly DEVICE_MAP: "deviceMap";
|
|
9
|
+
};
|
|
10
|
+
export declare const BridgeCmds: {
|
|
11
|
+
readonly CONNECT: "connect";
|
|
12
|
+
readonly DISCONNECT: "disconnect";
|
|
7
13
|
};
|
package/dist/plc-tags/mqtt.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MqttTopics = void 0;
|
|
3
|
+
exports.BridgeCmds = exports.MqttTopics = void 0;
|
|
4
4
|
exports.MqttTopics = {
|
|
5
5
|
BRIDGE_STATUS: 'bridge/status',
|
|
6
|
+
BRIDGE_CMD: 'bridge/cmd',
|
|
7
|
+
DEVICE_MAP: 'deviceMap',
|
|
8
|
+
};
|
|
9
|
+
exports.BridgeCmds = {
|
|
10
|
+
CONNECT: 'connect',
|
|
11
|
+
DISCONNECT: 'disconnect'
|
|
6
12
|
};
|
package/package.json
CHANGED
package/src/plc-tags/mqtt.ts
CHANGED
|
@@ -5,4 +5,12 @@ export interface TopicData {
|
|
|
5
5
|
|
|
6
6
|
export const MqttTopics = {
|
|
7
7
|
BRIDGE_STATUS: 'bridge/status',
|
|
8
|
+
BRIDGE_CMD: 'bridge/cmd',
|
|
9
|
+
DEVICE_MAP: 'deviceMap',
|
|
8
10
|
} as const;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export const BridgeCmds = {
|
|
14
|
+
CONNECT: 'connect',
|
|
15
|
+
DISCONNECT: 'disconnect'
|
|
16
|
+
} as const;
|