après il y a des exemples de flux, en voila un (il faudra changer les ip dans les nodes fonctions (ça peut être remplacé par une variable globale)
exemple modbus
[
{
« id »: « 9ac44469.cc7228 »,
« type »: « tab »,
« label »: « ModBus Video2 »,
« disabled »: false,
« info »: « »
},
{
« id »: « 96de127a.bd15c8 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Read 32bit Float »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 150,
« y »: 380,
« wires »: [
[
« 566b0e78.c05cd8 »
]
]
},
{
« id »: « ddf1db44.1476d8 »,
« type »: « debug »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« active »: true,
« tosidebar »: true,
« console »: false,
« tostatus »: false,
« complete »: « true »,
« x »: 980,
« y »: 320,
« wires »:
},
{
« id »: « 31e61877.807318 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « 16 Bit INT 16001 »,
« func »: « var fc=3;\nvar sa=3;\nvar addresses=1;\nvar slave_ip=msg.payload.slave_ip;\n\nmsg.slave_ip="192.168.1.31";\n\nmsg.payload={value: msg.payload, ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\n\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 360,
« y »: 80,
« wires »: [
[
« 34dfb4ef.ddcd54 »
]
]
},
{
« id »: « baa3384.02ce6c8 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « Write-Float -6001.5 »,
« func »: « \nvar fc=16;\nvar sa=70;\nvar addresses=2;\nvar value=16001.5;\nbuf=Buffer.alloc(4);\nbuf.writeFloatBE(value);\n//buf.writeFloatBE(16001.5);\nvar values=[(buf[0]*256+buf[1]),(buf[2]*256)+buf[3]]\nmsg.slave_ip="192.168.1.31";\nmsg.payload={"value":values , ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 370,
« y »: 730,
« wires »: [
[
« f4fc3e03.1f01a8 »
]
]
},
{
« id »: « cabf85be.1bf138 »,
« type »: « debug »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« active »: true,
« tosidebar »: true,
« console »: false,
« tostatus »: false,
« complete »: « true »,
« x »: 840,
« y »: 700,
« wires »:
},
{
« id »: « 7119790f.f69ae8 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Read 16bit Integer »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 150,
« y »: 80,
« wires »: [
[
« 31e61877.807318 »
]
]
},
{
« id »: « c5845d88.636798 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« func »: « const buf = Buffer.from(msg.payload.buffer);\nconst value = buf.readUInt16BE();\nmsg.value = value;\n\nnode.status({fill:"red",shape:"ring",text:msg.value});\n\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 770,
« y »: 120,
« wires »: [
[
« ddf1db44.1476d8 »
]
]
},
{
« id »: « caa6eb97.8c27a8 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Write32Float »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 150,
« y »: 730,
« wires »: [
[
« baa3384.02ce6c8 »
]
]
},
{
« id »: « cb22647c.70bd8 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Read 32bit Integer »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 150,
« y »: 180,
« wires »: [
[
« c01fcee9.65817 »
]
]
},
{
« id »: « cb59ac65.5600e8 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« func »: « const buf = Buffer.from(msg.payload.buffer);\nconst value = buf.readUInt32BE();\nmsg.value = value;\n\nnode.status({ fill: "red", shape: "ring", text: msg.value });\n\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 770,
« y »: 220,
« wires »: [
[
« ddf1db44.1476d8 »
]
]
},
{
« id »: « c01fcee9.65817 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « 32bit int »,
« func »: « var fc=3;\nvar sa=5;\nvar addresses=2;\nvar slave_ip=msg.payload.slave_ip;\nmsg.slave_ip="192.168.1.31";\nmsg.payload={value: msg.payload, ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 340,
« y »: 180,
« wires »: [
[
« 3eed334e.35f204 »
]
]
},
{
« id »: « 566b0e78.c05cd8 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: "32Bit Float ",
« func »: « var fc=3;\nvar sa=10;\nvar addresses=2;\nvar slave_ip=msg.payload.slave_ip;\nmsg.slave_ip="192.168.1.31";\nmsg.payload={value: msg.payload, ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 340,
« y »: 380,
« wires »: [
[
« e230adfe.a4fec8 »
]
]
},
{
« id »: « 47d293d3.7b1884 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« func »: « const buf = Buffer.from(msg.payload.buffer);\nconst value = buf.readFloatBE();\nmsg.value = value;\n\nnode.status({ fill: "red", shape: "ring", text: msg.value });\n\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 770,
« y »: 420,
« wires »: [
[
« ddf1db44.1476d8 »
]
]
},
{
« id »: « 64392f40.43711 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Write32INT »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 140,
« y »: 670,
« wires »: [
[
« f50b840c.c18bf »
]
]
},
{
« id »: « f50b840c.c18bf »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « write 100-32 bit »,
« func »: « \nvar fc=16;\nvar sa=50;\nvar addresses=2;\nvar buf=Buffer.alloc(4);\nbuf.writeInt32BE(68001);\nvar values=[(buf[0]*256+buf[1]),(buf[2]*256)+buf[3]]\nmsg.slave_ip="192.168.1.76";\nmsg.payload={"value":values , ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 360,
« y »: 670,
« wires »: [
[
« af670de6.a7f78 »
]
]
},
{
« id »: « d362d1d1.1b4be8 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Write16INT »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 140,
« y »: 630,
« wires »: [
[
« d7ebe300.c793b »
]
]
},
{
« id »: « d7ebe300.c793b »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « Write 16001-16bit »,
« func »: « \nvar fc=6;\nvar sa=40;\nvar addresses=1;\nvar value=16001;\n\nmsg.slave_ip="192.168.1.76";\nmsg.payload={"value":value , ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\n\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 370,
« y »: 630,
« wires »: [
[
« aaf7e636.b5f6c »
]
]
},
{
« id »: « 52e66b6f.961fbc »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Buffer »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « str »,
« x »: 120,
« y »: 120,
« wires »: [
[
« 53259c2b.78ee8c »
]
]
},
{
« id »: « 53259c2b.78ee8c »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « 16 Bit INT 16001 »,
« func »: « msg.payload={};\nvar buf=Buffer.alloc(2);\nbuf.writeInt16BE(16001);\nmsg.payload.buffer=buf;\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 360,
« y »: 120,
« wires »: [
[
« c5845d88.636798 »
]
]
},
{
« id »: « 476b2785.d6a77 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « 32 bit INT 16001 »,
« func »: « msg.payload={};\nvar buf=Buffer.alloc(4);\nbuf.writeInt32BE(16001);\nmsg.payload.buffer=buf;\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 360,
« y »: 220,
« wires »: [
[
« cb59ac65.5600e8 »
]
]
},
{
« id »: « d0b659df.000dd »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Buffer »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « str »,
« x »: 120,
« y »: 220,
« wires »: [
[
« 476b2785.d6a77 »
]
]
},
{
« id »: « 4945ef0e.4d3a08 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « 32Bit Float 16001.5 »,
« func »: « msg.payload={};\nvar buf=Buffer.alloc(4);\nbuf.writeFloatBE(16001.5);\nmsg.payload.buffer=buf;\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 370,
« y »: 420,
« wires »: [
[
« 47d293d3.7b1884 »
]
]
},
{
« id »: « a82b7fab.ce486 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Buffer »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « str »,
« x »: 120,
« y »: 420,
« wires »: [
[
« 4945ef0e.4d3a08 »
]
]
},
{
« id »: « 35c4cb5c.8a2904 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Read 32bit Integer »,
« props »: [
{
« p »: « payload »
},
{
« p »: « topic »,
« vt »: « str »
}
],
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 150,
« y »: 280,
« wires »: [
[
« fde4a066.74f5a8 »
]
]
},
{
« id »: « a68f30f7.4919c »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Buffer »,
« props »: [
{
« p »: « payload »,
« v »: « »,
« vt »: « str »
},
{
« p »: « topic »,
« v »: « »,
« vt »: « str »
}
],
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « str »,
« x »: 120,
« y »: 320,
« wires »: [
[
« 5fcfd729.dd1cc »
]
]
},
{
« id »: « 5fcfd729.dd1cc »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « 32 bit INT 68001 »,
« func »: « msg.payload={};\nvar buf=Buffer.alloc(4);\nbuf.writeInt32BE(68001);\nmsg.payload.buffer=buf;\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 360,
« y »: 320,
« wires »: [
[
« 436ffd6e.0c775c »
]
]
},
{
« id »: « fde4a066.74f5a8 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « 32bit int »,
« func »: « var fc=3;\nvar sa=7;\nvar addresses=2;\nvar slave_ip=msg.payload.slave_ip;\nmsg.slave_ip="192.168.1.31";\nmsg.payload={value: msg.payload, ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 340,
« y »: 280,
« wires »: [
[
« c58a5ca.3ac842 »
]
]
},
{
« id »: « 436ffd6e.0c775c »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« func »: « const buf = Buffer.from(msg.payload.buffer);\nconst value = buf.readUInt32BE();\nmsg.value = value;\n\nnode.status({ fill: "red", shape: "ring", text: msg.value });\n\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 770,
« y »: 320,
« wires »: [
[
« ddf1db44.1476d8 »
]
]
},
{
« id »: « 4c0616be.21cbf8 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Read 64bit Float »,
« props »: [
{
« p »: « payload »
},
{
« p »: « topic »,
« vt »: « str »
}
],
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 150,
« y »: 480,
« wires »: [
[
« d3420f51.965d6 »
]
]
},
{
« id »: « 83f93b76.ba2d08 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Buffer »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « str »,
« x »: 120,
« y »: 520,
« wires »: [
[
« 837d646.ea99c98 »
]
]
},
{
« id »: « d3420f51.965d6 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: "64Bit Float ",
« func »: « var fc=3;\nvar sa=20;\nvar addresses=4;\nvar slave_ip=msg.payload.slave_ip;\nmsg.slave_ip="192.168.1.31";\nmsg.payload={value: msg.payload, ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 340,
« y »: 480,
« wires »: [
[
« 9b4d57fa.db2 »
]
]
},
{
« id »: « 837d646.ea99c98 »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « 64Bit Float 16001.5 »,
« func »: « msg.payload={};\nvar buf=Buffer.alloc(8);\nbuf.writeDoubleBE(16001.5);\nmsg.payload.buffer=buf;\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 370,
« y »: 520,
« wires »: [
[
« b51b0f10.e12da »
]
]
},
{
« id »: « b51b0f10.e12da »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« func »: « const buf = Buffer.from(msg.payload.buffer);\nconst value = buf.readDoubleBE();\nmsg.value = value;\n\nnode.status({ fill: "red", shape: "ring", text: msg.value });\n\nreturn msg; »,
« outputs »: 1,
« timeout »: « »,
« noerr »: 0,
« initialize »: « »,
« finalize »: « »,
« libs »: ,
« x »: 770,
« y »: 520,
« wires »: [
[
« ddf1db44.1476d8 »
]
]
},
{
« id »: « 9eb27939.75ca48 »,
« type »: « inject »,
« z »: « 9ac44469.cc7228 »,
« name »: « Write64Float »,
« repeat »: « »,
« crontab »: « »,
« once »: false,
« onceDelay »: 0.1,
« topic »: « »,
« payload »: « »,
« payloadType »: « date »,
« x »: 150,
« y »: 770,
« wires »: [
[
« dc5dba61.c580d »
]
]
},
{
« id »: « dc5dba61.c580d »,
« type »: « function »,
« z »: « 9ac44469.cc7228 »,
« name »: « Write-Float -16001.5 »,
« func »: « \nvar fc=16;\nvar sa=80;\nvar addresses=4;\nvar value=16001.5;\nbuf=Buffer.alloc(8);\nbuf.writeDoubleBE(value);\n//buf.writeFloatBE(16001.5);\nvar values=[(buf[0]*256+buf[1]),(buf[2]*256)+buf[3],(buf[4]*256+buf[5]),(buf[6]*256)+buf[7]];\n\nmsg.slave_ip="192.168.1.76";\nmsg.payload={"value":values , ‹ fc ›: fc, ‹ unitid ›: 1, ‹ address ›: sa , ‹ quantity ›: addresses };\nreturn msg; »,
« outputs »: 1,
« noerr »: 0,
« x »: 370,
« y »: 770,
« wires »: [
[
« dc7b17fa.0490d »
]
]
},
{
« id »: « f4fc3e03.1f01a8 »,
« type »: « modbus-flex-write »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« showStatusActivities »: false,
« showErrors »: false,
« server »: « 54dde46e.53267c »,
« x »: 580,
« y »: 730,
« wires »: [
,
[
« cabf85be.1bf138 »
]
]
},
{
« id »: « af670de6.a7f78 »,
« type »: « modbus-flex-write »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« showStatusActivities »: false,
« showErrors »: false,
« server »: « 54dde46e.53267c »,
« x »: 580,
« y »: 670,
« wires »: [
,
[
« cabf85be.1bf138 »
]
]
},
{
« id »: « aaf7e636.b5f6c »,
« type »: « modbus-flex-write »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« showStatusActivities »: false,
« showErrors »: true,
« server »: « 54dde46e.53267c »,
« x »: 580,
« y »: 630,
« wires »: [
,
[
« cabf85be.1bf138 »
]
]
},
{
« id »: « dc7b17fa.0490d »,
« type »: « modbus-flex-write »,
« z »: « 9ac44469.cc7228 »,
« name »: « »,
« showStatusActivities »: false,
« showErrors »: false,
« server »: « 54dde46e.53267c »,
« x »: 580,
« y »: 770,
« wires »: [
,
[
« cabf85be.1bf138 »
]
]
},
{
« id »: « 34dfb4ef.ddcd54 »,
« type »: « modbus-flex-getter »,
« z »: « 9ac44469.cc7228 »,
« name »: « local getter »,
« showStatusActivities »: true,
« showErrors »: true,
« showWarnings »: true,
« logIOActivities »: false,
« server »: « 54dde46e.53267c »,
« useIOFile »: false,
« ioFile »: « »,
« useIOForPayload »: false,
« emptyMsgOnFail »: false,
« keepMsgProperties »: false,
« delayOnStart »: false,
« startDelayTime »: « »,
« x »: 560,
« y »: 80,
« wires »: [
,
[
« c5845d88.636798 »
]
]
},
{
« id »: « 3eed334e.35f204 »,
« type »: « modbus-flex-getter »,
« z »: « 9ac44469.cc7228 »,
« name »: « local getter »,
« showStatusActivities »: true,
« showErrors »: true,
« logIOActivities »: false,
« server »: « 54dde46e.53267c »,
« useIOFile »: false,
« ioFile »: « »,
« useIOForPayload »: false,
« x »: 560,
« y »: 180,
« wires »: [
,
[
« cb59ac65.5600e8 »
]
]
},
{
« id »: « e230adfe.a4fec8 »,
« type »: « modbus-flex-getter »,
« z »: « 9ac44469.cc7228 »,
« name »: « local getter »,
« showStatusActivities »: true,
« showErrors »: true,
« logIOActivities »: false,
« server »: « 54dde46e.53267c »,
« useIOFile »: false,
« ioFile »: « »,
« useIOForPayload »: false,
« x »: 560,
« y »: 380,
« wires »: [
,
[
« 47d293d3.7b1884 »
]
]
},
{
« id »: « c58a5ca.3ac842 »,
« type »: « modbus-flex-getter »,
« z »: « 9ac44469.cc7228 »,
« name »: « local getter »,
« showStatusActivities »: true,
« showErrors »: true,
« logIOActivities »: false,
« server »: « 54dde46e.53267c »,
« useIOFile »: false,
« ioFile »: « »,
« useIOForPayload »: false,
« x »: 560,
« y »: 280,
« wires »: [
,
[
« 436ffd6e.0c775c »
]
]
},
{
« id »: « 9b4d57fa.db2 »,
« type »: « modbus-flex-getter »,
« z »: « 9ac44469.cc7228 »,
« name »: « local getter »,
« showStatusActivities »: true,
« showErrors »: true,
« logIOActivities »: false,
« server »: « 54dde46e.53267c »,
« useIOFile »: false,
« ioFile »: « »,
« useIOForPayload »: false,
« x »: 560,
« y »: 480,
« wires »: [
,
[
« b51b0f10.e12da »
]
]
},
{
« id »: « 54dde46e.53267c »,
« type »: « modbus-client »,
« name »: « local »,
« clienttype »: « tcp »,
« bufferCommands »: true,
« stateLogEnabled »: true,
« tcpHost »: « 192.168.1.31 »,
« tcpPort »: « 502 »,
« tcpType »: « DEFAULT »,
« serialPort »: « /dev/ttyUSB »,
« serialType »: « RTU-BUFFERD »,
« serialBaudrate »: « 9600 »,
« serialDatabits »: « 8 »,
« serialStopbits »: « 1 »,
« serialParity »: « none »,
« serialConnectionDelay »: « 100 »,
« unit_id »: 1,
« commandDelay »: 1,
« clientTimeout »: 1000,
« reconnectTimeout »: 2000
}
]
puis dans la fenêtre « Importer des noeuds » i faut cliquer sur « Exemples » et choisir un exemple de flux à importer…rapide non ! 