device-communication-node 1.0.0-beta.1 → 1.0.0-beta.3
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 +2 -2
- package/src/index.js +13 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "device-communication-node",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"description": "轻量级统一物联网设备通信框架,支持 TCP/UDP、串口等多通道自由切换与高度抽象。",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"serialport": "^13.0.0"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
const CommDispatcherManager = require('./device/core/commDispatcherManager')
|
|
2
2
|
const DeviceTest = require('./drivers/test/DeviceTest')
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
const DeviceCore = require('./device/core/DeviceCore')
|
|
4
|
+
const checkUtils = require('./device/utils/checkUtils')
|
|
5
|
+
const hexUtils = require('./device/utils/hexUtils')
|
|
6
|
+
const networkUtils = require('./device/utils/NetworkUtils')
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
CommDispatcherManager,
|
|
10
|
+
DeviceCore,
|
|
11
|
+
DeviceTest,
|
|
12
|
+
checkUtils,
|
|
13
|
+
hexUtils,
|
|
14
|
+
networkUtils
|
|
15
|
+
};
|