-
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 #1210 from samson0v/master
Added default connectors configurations
- Loading branch information
Showing
16 changed files
with
1,631 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"name": "BACnet Connector", | ||
"logLevel": "INFO", | ||
"general": { | ||
"objectName": "TB_gateway", | ||
"address": "0.0.0.0:47808", | ||
"objectIdentifier": 599, | ||
"maxApduLengthAccepted": 1476, | ||
"segmentationSupported": "segmentedBoth", | ||
"vendorIdentifier": 15 | ||
}, | ||
"devices": [ | ||
{ | ||
"deviceName": "BACnet Device ${objectName}", | ||
"deviceType": "default", | ||
"address": "192.168.2.110:47808", | ||
"pollPeriod": 10000, | ||
"attributes": [ | ||
{ | ||
"key": "temperature", | ||
"type": "string", | ||
"objectId": "analogOutput:1", | ||
"propertyId": "presentValue" | ||
} | ||
], | ||
"timeseries": [ | ||
{ | ||
"key": "state", | ||
"type": "bool", | ||
"objectId": "binaryValue:1", | ||
"propertyId": "presentValue" | ||
} | ||
], | ||
"attributeUpdates": [ | ||
{ | ||
"key": "brightness", | ||
"requestType": "writeProperty", | ||
"objectId": "analogOutput:1", | ||
"propertyId": "presentValue" | ||
} | ||
], | ||
"serverSideRpc": [ | ||
{ | ||
"method": "set_state", | ||
"requestType": "writeProperty", | ||
"requestTimeout": 10000, | ||
"objectId": "binaryOutput:1", | ||
"propertyId": "presentValue" | ||
}, | ||
{ | ||
"method": "get_state", | ||
"requestType": "readProperty", | ||
"requestTimeout": 10000, | ||
"objectId": "binaryOutput:1", | ||
"propertyId": "presentValue" | ||
} | ||
] | ||
} | ||
] | ||
} |
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,75 @@ | ||
{ | ||
"name": "BLE Connector", | ||
"logLevel": "INFO", | ||
"passiveScanMode": true, | ||
"showMap": false, | ||
"scanner": { | ||
"timeout": 10000, | ||
"deviceName": "Device name" | ||
}, | ||
"devices": [ | ||
{ | ||
"name": "Temperature and humidity sensor", | ||
"MACAddress": "4C:65:A8:DF:85:C0", | ||
"pollPeriod": 500000, | ||
"showMap": false, | ||
"timeout": 10000, | ||
"connectRetry": 5, | ||
"connectRetryInSeconds": 0, | ||
"waitAfterConnectRetries": 10, | ||
"telemetry": [ | ||
{ | ||
"key": "temperature", | ||
"method": "notify", | ||
"characteristicUUID": "226CAA55-6476-4566-7562-66734470666D", | ||
"valueExpression": "[2]" | ||
}, | ||
{ | ||
"key": "humidity", | ||
"method": "notify", | ||
"characteristicUUID": "226CAA55-6476-4566-7562-66734470666D", | ||
"valueExpression": "[0]" | ||
} | ||
], | ||
"attributes": [ | ||
{ | ||
"key": "name", | ||
"method": "read", | ||
"characteristicUUID": "00002A00-0000-1000-8000-00805F9B34FB", | ||
"valueExpression": "[0:2]cm [2:]A" | ||
}, | ||
{ | ||
"key": "values", | ||
"method": "read", | ||
"characteristicUUID": "00002A00-0000-1000-8000-00805F9B34FB", | ||
"valueExpression": "All values: [:]" | ||
} | ||
], | ||
"attributeUpdates": [ | ||
{ | ||
"attributeOnThingsBoard": "sharedName", | ||
"characteristicUUID": "00002A00-0000-1000-8000-00805F9B34FB" | ||
} | ||
], | ||
"serverSideRpc": [ | ||
{ | ||
"methodRPC": "rpcMethod1", | ||
"withResponse": true, | ||
"characteristicUUID": "00002A00-0000-1000-8000-00805F9B34FB", | ||
"methodProcessing": "read" | ||
}, | ||
{ | ||
"methodRPC": "rpcMethod2", | ||
"withResponse": true, | ||
"characteristicUUID": "00002A00-0000-1000-8000-00805F9B34FB", | ||
"methodProcessing": "write" | ||
}, | ||
{ | ||
"methodRPC": "rpcMethod3", | ||
"withResponse": true, | ||
"methodProcessing": "scan" | ||
} | ||
] | ||
} | ||
] | ||
} |
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,91 @@ | ||
{ | ||
"name": "CAN Connector", | ||
"logLevel": "INFO", | ||
"interface": "socketcan", | ||
"channel": "vcan0", | ||
"backend": { | ||
"fd": true | ||
}, | ||
"reconnectPeriod": 5, | ||
"devices": [ | ||
{ | ||
"name": "Car", | ||
"sendDataOnlyOnChange": false, | ||
"enableUnknownRpc": true, | ||
"strictEval": false, | ||
"attributes": [ | ||
{ | ||
"key": "isDriverDoorOpened", | ||
"nodeId": 41, | ||
"command": "2:2:big:8717", | ||
"value": "4:1:int", | ||
"expression": "bool(value & 0b00000100)", | ||
"polling": { | ||
"type": "once", | ||
"dataInHex": "AB CD AB CD" | ||
} | ||
} | ||
], | ||
"timeseries": [ | ||
{ | ||
"key": "rpm", | ||
"nodeId": 1918, | ||
"isExtendedId": true, | ||
"command": "2:2:big:48059", | ||
"value": "4:2:big:int", | ||
"expression": "value / 4", | ||
"polling": { | ||
"type": "always", | ||
"period": 5, | ||
"dataInHex": "aaaa bbbb aaaa bbbb" | ||
} | ||
}, | ||
{ | ||
"key": "milliage", | ||
"nodeId": 1918, | ||
"isExtendedId": true, | ||
"value": "4:2:little:int", | ||
"expression": "value * 10", | ||
"polling": { | ||
"type": "always", | ||
"period": 30, | ||
"dataInHex": "aa bb cc dd ee ff aa bb" | ||
} | ||
} | ||
], | ||
"attributeUpdates": [ | ||
{ | ||
"attributeOnThingsBoard": "softwareVersion", | ||
"nodeId": 64, | ||
"isExtendedId": true, | ||
"dataLength": 4, | ||
"dataExpression": "value + 5", | ||
"dataByteorder": "little" | ||
} | ||
], | ||
"serverSideRpc": [ | ||
{ | ||
"method": "sendSameData", | ||
"nodeId": 4, | ||
"isExtendedId": true, | ||
"isFd": true, | ||
"bitrateSwitch": true, | ||
"dataInHex": "aa bb cc dd ee ff aa bb aa bb cc d ee ff" | ||
}, | ||
{ | ||
"method": "setLightLevel", | ||
"nodeId": 5, | ||
"dataLength": 2, | ||
"dataByteorder": "little", | ||
"dataBefore": "00AA" | ||
}, | ||
{ | ||
"method": "setSpeed", | ||
"nodeId": 16, | ||
"dataAfter": "0102", | ||
"dataExpression": "userSpeed if maxAllowedSpeed > userSpeed else maxAllowedSpeed" | ||
} | ||
] | ||
} | ||
] | ||
} |
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,67 @@ | ||
{ | ||
"name": "FTP Connector", | ||
"logLevel": "INFO", | ||
"host": "0.0.0.0", | ||
"port": 21, | ||
"TLSSupport": false, | ||
"security": { | ||
"type": "basic", | ||
"username": "admin", | ||
"password": "admin" | ||
}, | ||
"paths": [ | ||
{ | ||
"devicePatternName": "asd", | ||
"devicePatternType": "Device", | ||
"delimiter": ",", | ||
"path": "fol/*_hello*.txt", | ||
"readMode": "FULL", | ||
"maxFileSize": 5, | ||
"pollPeriod": 500, | ||
"txtFileDataView": "SLICED", | ||
"withSortingFiles": true, | ||
"attributes": [ | ||
{ | ||
"key": "temp", | ||
"value": "[1:]" | ||
}, | ||
{ | ||
"key": "tmp", | ||
"value": "[0:1]" | ||
} | ||
], | ||
"timeseries": [ | ||
{ | ||
"type": "int", | ||
"key": "[0:1]", | ||
"value": "[0:1]" | ||
}, | ||
{ | ||
"type": "int", | ||
"key": "temp", | ||
"value": "[1:]" | ||
} | ||
] | ||
} | ||
], | ||
"attributeUpdates": [ | ||
{ | ||
"path": "fol/hello.json", | ||
"deviceNameFilter": ".*", | ||
"writingMode": "WRITE", | ||
"valueExpression": "{'${attributeKey}':'${attributeValue}'}" | ||
} | ||
], | ||
"serverSideRpc": [ | ||
{ | ||
"deviceNameFilter": ".*", | ||
"methodFilter": "read", | ||
"valueExpression": "${params}" | ||
}, | ||
{ | ||
"deviceNameFilter": ".*", | ||
"methodFilter": "write", | ||
"valueExpression": "${params}" | ||
} | ||
] | ||
} |
Oops, something went wrong.