-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1554 from thingsboard/feature/report-strategy
Report strategy feature
- Loading branch information
Showing
72 changed files
with
2,031 additions
and
1,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule tb_mqtt_client
updated
3 files
+1 −1 | setup.py | |
+16 −5 | tb_device_mqtt.py | |
+15 −4 | tb_gateway_mqtt.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
|
||
LOG = logging.getLogger("TEST") | ||
LOG.trace = LOG.debug | ||
|
||
|
||
@unittest.skip('Flaky test') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
..._modbus_uplink_converter_report_strategy_on_change_or_report_period_on_period_factor.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
{ | ||
"Modbus": { | ||
"name": "Modbus", | ||
"type": "modbus", | ||
"logLevel": "DEBUG", | ||
"configuration": "modbus.json", | ||
"configurationJson": { | ||
"name": "Modbus", | ||
"logLevel": "DEBUG", | ||
"master": { | ||
"slaves": [ | ||
{ | ||
"host": "localhost", | ||
"port": 5021, | ||
"type": "tcp", | ||
"method": "socket", | ||
"timeout": 35, | ||
"byteOrder": "LITTLE", | ||
"wordOrder": "LITTLE", | ||
"retries": true, | ||
"retryOnEmpty": true, | ||
"retryOnInvalid": true, | ||
"pollPeriod": 1000, | ||
"unitId": 1, | ||
"deviceName": "Temp Sensor", | ||
"reportStrategy": { | ||
"type": "ON_CHANGE_OR_REPORT_PERIOD", | ||
"reportPeriod": 5000 | ||
}, | ||
"connectAttemptTimeMs": 5000, | ||
"connectAttemptCount": 5, | ||
"waitAfterFailedAttemptsMs": 300000, | ||
"attributes": [ | ||
{ | ||
"tag": "string_read", | ||
"type": "string", | ||
"functionCode": 4, | ||
"objectsCount": 2, | ||
"address": 0 | ||
}, | ||
{ | ||
"tag": "bits_read", | ||
"type": "bits", | ||
"functionCode": 4, | ||
"objectsCount": 1, | ||
"address": 5 | ||
}, | ||
{ | ||
"tag": "8int_read", | ||
"type": "8int", | ||
"functionCode": 4, | ||
"objectsCount": 1, | ||
"address": 6 | ||
}, | ||
{ | ||
"tag": "16int_read", | ||
"type": "16int", | ||
"functionCode": 4, | ||
"objectsCount": 1, | ||
"address": 7 | ||
}, | ||
{ | ||
"tag": "32int_read_divider", | ||
"type": "32int", | ||
"functionCode": 4, | ||
"objectsCount": 2, | ||
"address": 8, | ||
"divider": 10 | ||
}, | ||
{ | ||
"tag": "8int_read_multiplier", | ||
"type": "8int", | ||
"functionCode": 4, | ||
"objectsCount": 1, | ||
"address": 10, | ||
"multiplier": 10 | ||
}, | ||
{ | ||
"tag": "32int_read", | ||
"type": "32int", | ||
"functionCode": 4, | ||
"objectsCount": 2, | ||
"address": 11 | ||
}, | ||
{ | ||
"tag": "64int_read", | ||
"type": "64int", | ||
"functionCode": 4, | ||
"objectsCount": 4, | ||
"address": 13 | ||
} | ||
], | ||
"timeseries": [ | ||
{ | ||
"tag": "8uint_read", | ||
"type": "8uint", | ||
"functionCode": 4, | ||
"objectsCount": 1, | ||
"address": 17 | ||
}, | ||
{ | ||
"tag": "16uint_read", | ||
"type": "16uint", | ||
"functionCode": 4, | ||
"objectsCount": 2, | ||
"address": 18 | ||
}, | ||
{ | ||
"tag": "32uint_read", | ||
"type": "32uint", | ||
"functionCode": 4, | ||
"objectsCount": 4, | ||
"address": 20 | ||
}, | ||
{ | ||
"tag": "16float_read", | ||
"type": "16float", | ||
"functionCode": 4, | ||
"objectsCount": 1, | ||
"address": 25 | ||
} | ||
], | ||
"attributeUpdates": [], | ||
"rpc": [] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.