Skip to content

Instantly share code, notes, and snippets.

@razueroh
Last active February 13, 2016 17:23
Show Gist options
  • Save razueroh/0b0f5fbd8485c69391fb to your computer and use it in GitHub Desktop.
Save razueroh/0b0f5fbd8485c69391fb to your computer and use it in GitHub Desktop.
NoFlo serialport echo demo
{
"properties": {
"name": "Serialport Echo Example",
"id": "SerialportEchoExample",
"environment": {
"type": "noflo-nodejs"
}
},
"inports": {},
"outports": {},
"groups": [],
"processes": {
"Open": {
"component": "serialport/Open",
"metadata": {
"label": "Open",
"x": 396,
"y": 216,
"width": 72,
"height": 72
}
},
"serialport/Error_jalfi": {
"component": "serialport/Error",
"metadata": {
"label": "serialport/Error",
"x": 540,
"y": 432,
"width": 72,
"height": 72
}
},
"core/Output_efo2z": {
"component": "core/Output",
"metadata": {
"label": "core/Output",
"x": 684,
"y": 432,
"width": 72,
"height": 72
}
},
"serialport/Write_zsyxv": {
"component": "serialport/Write",
"metadata": {
"label": "serialport/Write",
"x": 720,
"y": 216,
"width": 72,
"height": 72
}
},
"serialport/Read_hqttk": {
"component": "serialport/Read",
"metadata": {
"label": "serialport/Read",
"x": 540,
"y": 288,
"width": 72,
"height": 72
}
}
},
"connections": [
{
"src": {
"process": "serialport/Error_jalfi",
"port": "out"
},
"tgt": {
"process": "core/Output_efo2z",
"port": "in"
},
"metadata": {
"route": 1
}
},
{
"src": {
"process": "Open",
"port": "out"
},
"tgt": {
"process": "serialport/Error_jalfi",
"port": "serialport"
},
"metadata": {
"route": 3
}
},
{
"src": {
"process": "Open",
"port": "out"
},
"tgt": {
"process": "serialport/Write_zsyxv",
"port": "serialport"
},
"metadata": {
"route": 3
}
},
{
"src": {
"process": "Open",
"port": "out"
},
"tgt": {
"process": "serialport/Read_hqttk",
"port": "serialport"
},
"metadata": {
"route": 3
}
},
{
"src": {
"process": "serialport/Read_hqttk",
"port": "out"
},
"tgt": {
"process": "serialport/Write_zsyxv",
"port": "message"
},
"metadata": {}
},
{
"src": {
"process": "serialport/Read_hqttk",
"port": "out"
},
"tgt": {
"process": "serialport/Write_zsyxv",
"port": "start"
},
"metadata": {
"route": 0
}
},
{
"data": 8,
"tgt": {
"process": "Open",
"port": "databits"
}
},
{
"data": 1,
"tgt": {
"process": "Open",
"port": "stopbits"
}
},
{
"data": "none",
"tgt": {
"process": "Open",
"port": "parity"
}
},
{
"data": 255,
"tgt": {
"process": "Open",
"port": "buffersize"
}
},
{
"data": 9600,
"tgt": {
"process": "Open",
"port": "baudrate"
}
},
{
"data": "raw",
"tgt": {
"process": "Open",
"port": "parser"
}
},
{
"data": "/dev/ttyUSB0",
"tgt": {
"process": "Open",
"port": "port"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment