mirror of
https://github.com/thingsboard/thingsboard-gateway.git
synced 2026-10-29 04:16:43 +08:00
24 lines
599 B
JSON
24 lines
599 B
JSON
{
|
|
"connection": {
|
|
"str": "DO_NOT_EDIT_THIS_PARAMETER.IT WILL BE OVERRIDDEN BY TESTS."
|
|
},
|
|
"polling": {
|
|
"query": "SELECT key, bool_v, str_v, dbl_v, long_v, device_id, ts FROM attributes WHERE ts > ? ORDER BY ts ASC LIMIT 10",
|
|
"period": 1,
|
|
"iterator": {
|
|
"column": "ts",
|
|
"query": "SELECT MIN(ts) - 1 FROM attributes"
|
|
}
|
|
},
|
|
"mapping": {
|
|
"device": {
|
|
"name": "'ODBC ' + str(device_id)"
|
|
},
|
|
"attributes": [
|
|
{
|
|
"nameExpression": "key",
|
|
"value": "[i for i in [str_v, long_v, dbl_v,bool_v] if i is not None][0]"
|
|
}
|
|
]
|
|
}
|
|
} |