Hi,
The below one is my serialport information.
1.I have installed losant edge agent in my laptop.
2.My gateway information
3.My losant edge agent log.
{
"topic": "losant/5cfb4dfbafabc800087c61d1/toAgent/flows",
"payload": {
"time": 1560075667344,
"mode": "complete",
"flows": {
"5cfbef7c50371c00095ba876": {
"name": "energymtr work flow",
"globals": {},
"triggers": [
{
"type": "serial",
"meta": {
"x": 40,
"y": 60,
"id": "cwbYEnvljv",
"category": "trigger",
"name": "serial",
"label": "Serial",
"uiId": "cwbYEnvljv",
"description": "",
"parseBy": "byteLength"
},
"config": {
"path": "/dev/ttyUSB0",
"baudRate": 9600,
"encoding": "hex",
"writeOnOpen": "hi em",
"byteLength": "8"
},
"key": "5cfbef7c50371c00095ba876-lohrEzH3aYJ4QlsWrieVE",
"outputIds": [["hJdOs_FpLR"]]
}
],
"nodes": [
{
"type": "DebugNode",
"config": {"message": "", "property": ""},
"id": "hJdOs_FpLR",
"outputIds": []
}
],
"version": "2019-06-08T18-01-58",
"versionId": "5cfbf81b66b3b30008490a67",
"minimumAgentVersion": "1.8.0"
}
},
"application": {"name": "smartphone", "id": "5ca5f7f18b62290008d0e84d", "globals": {}},
"device": {"name": "comportgateway", "id": "5cfb4dfbafabc800087c61d1", "tags": {}}
}
}
4.after my edge workflow deployment,I got the following error.
2019-06-09T10:23:51.326Z [#[33mwarn#[39m] Serial path will retry to open in 30 seconds.
2019-06-09T10:24:21.340Z [#[33mwarn#[39m] Serial path /dev/ttyUSB0 is attempting to reopen…
2019-06-09T10:24:21.340Z [#[33mwarn#[39m] Error in serial manager while listening at /dev/ttyUSB0: Error:Error: No such file or directory,
5.I want to get the serialport data using edge workflow,do you have any sample workflow for
getting serial port data?