mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 12:12:16 +02:00
Depends on meta-python therefore move it here so it does not impact non meta-python users Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
33 lines
684 B
JSON
Executable File
33 lines
684 B
JSON
Executable File
{
|
|
"name": "Custom serial connector",
|
|
"devices": [
|
|
{
|
|
"name": "CustomSerialDevice1",
|
|
"type": "default",
|
|
"port": "/dev/ttyUSB0",
|
|
"baudrate": 9600,
|
|
"converter": "CustomSerialUplinkConverter",
|
|
"telemetry": [
|
|
{
|
|
"type": "byte",
|
|
"key": "humidity",
|
|
"untilDelimiter": "\r"
|
|
}
|
|
],
|
|
"attributes":[
|
|
{
|
|
"key": "SerialNumber",
|
|
"type": "string",
|
|
"fromByte": 4,
|
|
"toByte": -1
|
|
}
|
|
],
|
|
"attributeUpdates": [
|
|
{
|
|
"attributeOnThingsBoard": "attr1",
|
|
"stringToDevice": "value = ${attr1}\n"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |