1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
| {
| "send": {
| "mode": "batch",
| "flushIntervalMs": 60000,
| "alignToMinute": true,
| "includeDeviceIdField": true,
| "deviceIdField": "n",
| "publishOnShutdown": true,
| "channels": [
| "aliyun"
| ]
| },
| "logging": {
| "enabled": true,
| "console": true,
| "dir": "./logs",
| "filePrefix": "jhm-service",
| "level": "info"
| },
| "tcp": {
| "host": "0.0.0.0",
| "port": 9000,
| "maxConnections": 100,
| "socketTimeoutMs": 120000,
| "keepAlive": true,
| "keepAliveDelayMs": 10000,
| "noDelay": true,
| "backlog": 128,
| "maxBufferBytes": 8192
| },
| "mqtt": {
| "protocol": "mqtt",
| "host": "mqtt.ihemodialysis.com",
| "port": 62283,
| "username": "data",
| "password": "data#2018",
| "defaultTopicPrefix": "touxiji"
| },
| "aliyun": {
| "enabled": true,
| "tupleApiBaseUrl": "https://things.icoldchain.cn",
| "tupleApiPath": "/device/info/getAliyunDeviceSecret",
| "autoRegister": true,
| "registerRetryMs": 60000,
| "connectTimeoutMs": 15000
| },
| "protocol": {
| "alModelPath": "./alModel.json",
| "bloodPressure": {
| "publishTime": true
| }
| },
| "devices": [
| {
| "deviceId": "JHM-001",
| "ip": "169.254.233.58",
| "备注": "1号透析机"
| },
| {
| "deviceId": "JHM-002",
| "ip": "192.168.33.2",
| "备注": "2号透析机"
| },
| {
| "deviceId": "JH-10235221005A",
| "ip": "127.0.0.1",
| "备注": "本机TCP模拟测试设备"
| }
| ]
| }
|
|