Skip to content

Commit 5478eb8

Browse files
committed
Merge branch 'master' of github.com:thingsboard/thingsboard-gateway
2 parents b194d0e + 64e183e commit 5478eb8

12 files changed

Lines changed: 609 additions & 32 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2025. ThingsBoard
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"parameters": {
3+
"host": "0.0.0.0",
4+
"port": 21,
5+
"TLSSupport": false,
6+
"security": {
7+
"type": "anonymous"
8+
}
9+
},
10+
"paths": [
11+
{
12+
"devicePatternName": "asd",
13+
"devicePatternType": "Device",
14+
"delimiter": ",",
15+
"path": "fol/*_hello*.txt",
16+
"readMode": "FULL",
17+
"maxFileSize": 5,
18+
"pollPeriod": 500,
19+
"txtFileDataView": "SLICED",
20+
"withSortingFiles": true,
21+
"attributes": [
22+
{
23+
"type": "string",
24+
"key": "temp",
25+
"value": "[1:]"
26+
},
27+
{
28+
"type": "string",
29+
"key": "tmp",
30+
"value": "[0:1]"
31+
}
32+
],
33+
"timeseries": [
34+
{
35+
"type": "integer",
36+
"key": "[0:1]",
37+
"value": "[0:1]"
38+
},
39+
{
40+
"type": "integer",
41+
"key": "temp",
42+
"value": "[1:]"
43+
}
44+
]
45+
}
46+
],
47+
"requestsMapping": {
48+
"attributeUpdates": [
49+
{
50+
"path": "fol/hello.json",
51+
"deviceNameFilter": ".*",
52+
"writingMode": "WRITE",
53+
"valueExpression": "{'${attributeKey}':'${attributeValue}'}"
54+
}
55+
],
56+
"serverSideRpc": [
57+
{
58+
"deviceNameFilter": ".*",
59+
"methodFilter": "read",
60+
"valueExpression": "${params}"
61+
},
62+
{
63+
"deviceNameFilter": ".*",
64+
"methodFilter": "write",
65+
"valueExpression": "${params}"
66+
}
67+
]
68+
}
69+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"host": "0.0.0.0",
3+
"port": 21,
4+
"TLSSupport": false,
5+
"security": {
6+
"type": "anonymous"
7+
},
8+
"paths": [
9+
{
10+
"devicePatternName": "asd",
11+
"devicePatternType": "Device",
12+
"delimiter": ",",
13+
"path": "fol/*_hello*.txt",
14+
"readMode": "FULL",
15+
"maxFileSize": 5,
16+
"pollPeriod": 500,
17+
"txtFileDataView": "SLICED",
18+
"withSortingFiles": true,
19+
"attributes": [
20+
{
21+
"key": "temp",
22+
"value": "[1:]"
23+
},
24+
{
25+
"key": "tmp",
26+
"value": "[0:1]"
27+
}
28+
],
29+
"timeseries": [
30+
{
31+
"type": "int",
32+
"key": "[0:1]",
33+
"value": "[0:1]"
34+
},
35+
{
36+
"type": "int",
37+
"key": "temp",
38+
"value": "[1:]"
39+
}
40+
]
41+
}
42+
],
43+
"attributeUpdates": [
44+
{
45+
"path": "fol/hello.json",
46+
"deviceNameFilter": ".*",
47+
"writingMode": "WRITE",
48+
"valueExpression": "{'${attributeKey}':'${attributeValue}'}"
49+
}
50+
],
51+
"serverSideRpc": [
52+
{
53+
"deviceNameFilter": ".*",
54+
"methodFilter": "read",
55+
"valueExpression": "${params}"
56+
},
57+
{
58+
"deviceNameFilter": ".*",
59+
"methodFilter": "write",
60+
"valueExpression": "${params}"
61+
}
62+
]
63+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"parameters": {
3+
"host": "0.0.0.0",
4+
"port": 21,
5+
"TLSSupport": false,
6+
"security": {
7+
"type": "basic",
8+
"username": "admin",
9+
"password": "admin"
10+
}
11+
},
12+
"paths": [
13+
{
14+
"devicePatternName": "asd",
15+
"devicePatternType": "Device",
16+
"delimiter": ",",
17+
"path": "fol/*_hello*.txt",
18+
"readMode": "FULL",
19+
"maxFileSize": 5,
20+
"pollPeriod": 500,
21+
"txtFileDataView": "SLICED",
22+
"withSortingFiles": true,
23+
"attributes": [
24+
{
25+
"type": "string",
26+
"key": "temp",
27+
"value": "[1:]"
28+
},
29+
{
30+
"type": "string",
31+
"key": "tmp",
32+
"value": "[0:1]"
33+
}
34+
],
35+
"timeseries": [
36+
{
37+
"type": "integer",
38+
"key": "[0:1]",
39+
"value": "[0:1]"
40+
},
41+
{
42+
"type": "integer",
43+
"key": "temp",
44+
"value": "[1:]"
45+
}
46+
]
47+
}
48+
],
49+
"requestsMapping": {
50+
"attributeUpdates": [
51+
],
52+
"serverSideRpc": [
53+
{
54+
"deviceNameFilter": ".*",
55+
"methodFilter": "read",
56+
"valueExpression": "${params}"
57+
},
58+
{
59+
"deviceNameFilter": ".*",
60+
"methodFilter": "write",
61+
"valueExpression": "${params}"
62+
}
63+
]
64+
}
65+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"host": "0.0.0.0",
3+
"port": 21,
4+
"TLSSupport": false,
5+
"security": {
6+
"type": "basic",
7+
"username": "admin",
8+
"password": "admin"
9+
},
10+
"paths": [
11+
{
12+
"devicePatternName": "asd",
13+
"devicePatternType": "Device",
14+
"delimiter": ",",
15+
"path": "fol/*_hello*.txt",
16+
"readMode": "FULL",
17+
"maxFileSize": 5,
18+
"pollPeriod": 500,
19+
"txtFileDataView": "SLICED",
20+
"withSortingFiles": true,
21+
"attributes": [
22+
{
23+
"key": "temp",
24+
"value": "[1:]"
25+
},
26+
{
27+
"key": "tmp",
28+
"value": "[0:1]"
29+
}
30+
],
31+
"timeseries": [
32+
{
33+
"type": "int",
34+
"key": "[0:1]",
35+
"value": "[0:1]"
36+
},
37+
{
38+
"type": "int",
39+
"key": "temp",
40+
"value": "[1:]"
41+
}
42+
]
43+
}
44+
],
45+
"attributeUpdates": [
46+
],
47+
"serverSideRpc": [
48+
{
49+
"deviceNameFilter": ".*",
50+
"methodFilter": "read",
51+
"valueExpression": "${params}"
52+
},
53+
{
54+
"deviceNameFilter": ".*",
55+
"methodFilter": "write",
56+
"valueExpression": "${params}"
57+
}
58+
]
59+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"parameters": {
3+
"host": "0.0.0.0",
4+
"port": 21,
5+
"TLSSupport": false,
6+
"security": {
7+
"type": "basic",
8+
"username": "admin",
9+
"password": "admin"
10+
}
11+
},
12+
"paths": [
13+
{
14+
"devicePatternName": "asd",
15+
"devicePatternType": "Device",
16+
"delimiter": ",",
17+
"path": "fol/*_hello*.txt",
18+
"readMode": "FULL",
19+
"maxFileSize": 5,
20+
"pollPeriod": 500,
21+
"txtFileDataView": "SLICED",
22+
"withSortingFiles": true,
23+
"attributes": [
24+
{
25+
"type": "string",
26+
"key": "temp",
27+
"value": "[1:]"
28+
},
29+
{
30+
"type": "string",
31+
"key": "tmp",
32+
"value": "[0:1]"
33+
}
34+
],
35+
"timeseries": [
36+
{
37+
"type": "integer",
38+
"key": "[0:1]",
39+
"value": "[0:1]"
40+
},
41+
{
42+
"type": "integer",
43+
"key": "temp",
44+
"value": "[1:]"
45+
}
46+
]
47+
}
48+
],
49+
"requestsMapping": {
50+
"attributeUpdates": [
51+
{
52+
"path": "fol/hello.json",
53+
"deviceNameFilter": ".*",
54+
"writingMode": "WRITE",
55+
"valueExpression": "{'${attributeKey}':'${attributeValue}'}"
56+
}
57+
],
58+
"serverSideRpc": [
59+
{
60+
"deviceNameFilter": ".*",
61+
"methodFilter": "read",
62+
"valueExpression": "${params}"
63+
},
64+
{
65+
"deviceNameFilter": ".*",
66+
"methodFilter": "write",
67+
"valueExpression": "${params}"
68+
}
69+
]
70+
}
71+
}

0 commit comments

Comments
 (0)