Rocrail Pro
Wiki Documentation
Support Forum
Mobile
- andRoc Android
- Rocweb Browser
- WIO-Control ESP32
- Rocview Tablet
DIY
User
Wiki writer
Special
Legal
Rocrail Pro
Wiki Documentation
Support Forum
Mobile
DIY
User
Wiki writer
Special
Legal
In this test setup both the MQTT Broker and the Node-Red are running as service on a Raspberry Pi V3 under Raspbian Stretch.
(For both the packages are in the standard Raspbian repository.)
The MQTT node on the top left listens to Rocrail info messages, and shows them with help of a debug node on the right pane.
The two inject nodes on the left send at click a string to the function node in the middle. This function node tries to translate the string into a RCP XML message.
The MQTT node on the right receives the output from the function node and publish it at the MQTT broker.
The blue Inject nodes do write a string in the message payload at click.
The JavaScript in the function node convert those strings into RCP.
The first flow is extended with email and RCP evaluation.
If an email comes in, with body text "power on", this will be converted by the RCP function to a system command for global power on.
The MQTT messages are filtered and send by email.
The evaluation of RCP messages is done in two step:
Choose the Windows Installation Pack from here
(Example: mosquitto-1.4.14-install-win32.exe (~200 kB) (Native build, Windows Vista and up, built with Visual Studio Community 2015) as of 2018/01/08)
The first installation attempt fails, this is normal behaviour because some DLL are missing (see also prerequisites in readme.txt of MQTT)