In modern industrial automation and Industrial IoT environments, remote monitoring and control of devices have become increasingly important. Engineers often need an efficient way to collect device data, monitor system status, and control equipment through network-based platforms.
In this start guide, we demonstrate how to use the QEC-M-02 together with the QEC-R11MP3S-N to communicate with an MQTT broker and visualize device data through a Node-RED dashboard.
Instructions for installing the required tools, including the 86Duino IDE, MQTT broker, and Node-RED.
Sample code demonstrating MQTT communication, motor control, digital I/O control, and device monitoring.
A ready-to-use Node-RED UI dashboard for visualizing device data through a web interface.
Common issues and solutions to help users quickly resolve development problems.
Before using the example programs and dashboard flow, please make sure Mosquitto and Node-RED have been installed correctly. If the environment is not ready yet, you can continue reading the following sections of this page for the setup instructions.
Click the links below to explore the available guides:
This section describes the steps required to install the Mosquitto MQTT broker on Windows 11.
The broker provides the messaging service required for MQTT communication between devices, Node-RED, and other MQTT clients.
If MQTT broker is already installed and running in your environment, this section may be skipped.
Download Mosquitto from https://mosquitto.org/download/
Run the installer and follow the installation wizard.
The default installation path is usually: C:\Program Files\mosquitto
Open Command Prompt as an administrator and run: cd "C:\Program Files\mosquitto"
When the terminal is in the Mosquitto directory, run: mosquitto -v
If you see the following output in the terminal, Mosquitto has started successfully.
When you have successfully installed and started the Mosquitto broker, you need to modify the mosquitto.conf file to allow external network connections to access the broker.
First, open Command Prompt as an administrator, then enter: notepad "C:\Program Files\mosquitto\mosquitto.conf"
After entering the command, the mosquitto.conf file will open in Notepad. Scroll to the bottom and add the following:
listener 1883 & allow_anonymous true
After completing the edits, close the file and restart Mosquitto Broker.
This section explains how to install Node-RED on Windows 11 and how to install the required node packages.
If Node-RED is already installed in your environment, you may skip this section.
Download Node.js from https://nodejs.org/en/download.
Select the installer that matches your system configuration.
Run the installer and follow the installation wizard.
Open Command Prompt and run: npm install -g --unsafe-perm node-red
After the installation is complete, you will see a page similar to the one below.
Open Command Prompt and run: node-red
When Node-RED starts successfully, you will see a page like the one below.
You should see: Server now running at http://127.0.0.1:1880/
Open your browser and go to: http://127.0.0.1:1880/ The Node-RED editor interface will appear.
After successfully opening the Node-RED Editor in your browser, you need to install the MQTT and Dashboard packages.
1.Click the Menu (☰) in the top-right corner of the Node-RED Editor, and select Manage palette.
2.Go to the Install tab, and Search for: mqtt
3.Find the package node-red-iot-mqtt-api and click Install.
4.After installing the MQTT package, if you want to use the Node-RED UI, you need to install the Dashboard and UI packages.
When you have a Node-RED UI flow JSON file (such as a sample flow generated by AI), you can import it into Node-RED by following the steps below.
1.Open the Node-RED editor in your browser.
2.Click the menu button (☰) in the top-right corner and Select Import from the menu.
3.Paste the JSON flow content into the import window or upload the JSON file.
4.Click Import to add the flow to your workspace.
5.Click Deploy to apply the changes.
6.Once deployed, the dashboard will be available at http://127.0.0.1:1880/ui.
For more information or to request a sample, please email us at info@icop.com.tw, contact your nearest ICOP Branches, or get in touch with our Worldwide Official Distributor.