This flow shows the use of a brick Matrix. With node inject inject a msg that will visualiizato of brick Matrix. Note that the message is published in "Retained".
-
-
Save infosmick/083b715667b7d267d92a8db53d7f6196 to your computer and use it in GitHub Desktop.
Smick_Matrix_2351743180
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
[ | |
{ | |
"id": "5e5b6802.f8eaa8", | |
"type": "mqtt in", | |
"z": "602eb775.fd23f8", | |
"name": "Matrix", | |
"topic": "frafin/feeds/O2351743180", | |
"qos": "0", | |
"broker": "5fee3e12.eff6a", | |
"x": 130, | |
"y": 360, | |
"wires": [ | |
[ | |
"17092180.81f15f" | |
] | |
] | |
}, | |
{ | |
"id": "b6560c8e.fd5e2", | |
"type": "mqtt out", | |
"z": "602eb775.fd23f8", | |
"name": "Matrix", | |
"topic": "frafin/feeds/I2351743180", | |
"qos": "0", | |
"retain": "true", | |
"broker": "5fee3e12.eff6a", | |
"x": 910, | |
"y": 140, | |
"wires": [] | |
}, | |
{ | |
"id": "17092180.81f15f", | |
"type": "debug", | |
"z": "602eb775.fd23f8", | |
"name": "", | |
"active": true, | |
"console": "false", | |
"complete": "false", | |
"x": 910, | |
"y": 360, | |
"wires": [] | |
}, | |
{ | |
"id": "df3abd0b.35081", | |
"type": "inject", | |
"z": "602eb775.fd23f8", | |
"name": "", | |
"topic": "", | |
"payload": "MATRIX= Smart Brick for IoT DIY <<<<<<", | |
"payloadType": "str", | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"x": 530, | |
"y": 140, | |
"wires": [ | |
[ | |
"b6560c8e.fd5e2", | |
"93bf4f76.fe568" | |
] | |
] | |
}, | |
{ | |
"id": "93bf4f76.fe568", | |
"type": "debug", | |
"z": "602eb775.fd23f8", | |
"name": "", | |
"active": true, | |
"console": "false", | |
"complete": "false", | |
"x": 920, | |
"y": 260, | |
"wires": [] | |
}, | |
{ | |
"id": "f0303381.abbeb", | |
"type": "comment", | |
"z": "602eb775.fd23f8", | |
"name": "Retained msg", | |
"info": "Normalmente quando un client si sottoscrive su un feed, riceverà il primo msg quando ne arriverà uno nuovo.\nSe si vuole invece che un sottoscrittore riceva subito un msg (l'ultimo pubblicato) occorre pubblicare il msg come trattenuto (retained).\nIn node red per pubblicare msg retained occorre impostare l'attributo \"Retain=true\".\n\n", | |
"x": 920, | |
"y": 100, | |
"wires": [] | |
}, | |
{ | |
"id": "6c2936e.a8996c8", | |
"type": "comment", | |
"z": "602eb775.fd23f8", | |
"name": "Descrizione", | |
"info": "Smick_Matrix_2351743180\n_______________________________________________________________________________\nPackage : Smick v.1\nModule : Matrix brick\nAuthor : Curci\nLicence : (CC) BY-NC-SA\n\nThis work is licensed under a Creative Commons \nAttribution-NonCommercial-ShareAlike 4.0 International License.\n\nHistory\n\nDate Author Description\n2016.12.17 Curci genesis\n_______________________________________________________________________________\n\nDescription\n\nQuesto flusso mostra l'uso di un brick Matrix.\nCol node inject inietto un msg che sarà visualiizato su brick Matrix.\nSi noti che il msg è pubblicato in modo \"Retained\".\n\nThis flow shows the use of a brick Matrix.\nWith node inject inject a msg that will visualiizato of brick Matrix.\nNote that the message is published in \"Retained\".\n_______________________________________________________________________________\n\nBill Of Material\n\nHardware:\n\n 1 Human internet terminal (PC, tablet or smartphone) connected to the internet\n 1 Matrix Brick Wi-Fi connected to the internet\n\nHW Connections:\n\n\tNone\n\t\nFlow Connections:\n\n Smick_001_console\n\nAccount:\n\n Wi-Fi credentials\n MQTT broker\n FRED\n", | |
"x": 140, | |
"y": 60, | |
"wires": [] | |
}, | |
{ | |
"id": "5fee3e12.eff6a", | |
"type": "mqtt-broker", | |
"z": "", | |
"broker": "ffacraspberry.ddns.net", | |
"port": "1883", | |
"clientid": "", | |
"usetls": false, | |
"compatmode": true, | |
"keepalive": "60", | |
"cleansession": true, | |
"willTopic": "", | |
"willQos": "0", | |
"willRetain": "true", | |
"willPayload": "", | |
"birthTopic": "", | |
"birthQos": "0", | |
"birthRetain": "true", | |
"birthPayload": "" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment