Node-RED: Connecting the button to the world
This documentation is part of the Use case: connect mailboxes guide. View the full guide here: Seamlessly connect hundreds of mailboxes in a post office.
Welcome to the Stackhero documentation
Stackhero provides a fully managed Node-RED cloud environment designed to get you building workflows quickly:
- Built-in MQTT server (Mosquitto) for seamless IoT integration.
- Full access to the Node-RED admin UI for managing flows and settings.
- Node-RED Dashboard included for real-time visualization.
- Dedicated SMTP email server included, with no limits on sending.
- Effortless one-click updates to keep your instance current.
- Custom domain names with automatic HTTPS: for example, https://node-red.your-company.com.
- High performance and strong security with private, dedicated infrastructure.
You can have a secure, production-ready Node-RED cloud hosting instance running in about 5 minutes. Stackhero handles setup, updates, and infrastructure so you can focus on building automations.
Each button is equipped with an ESP8266, a WiFi-capable chipset. This WiFi connection facilitates the device's communication with the Internet.
An ESP8266 on a WEMOS D1 Mini board
The MQTT protocol was chosen for communication between the ESP8266 and the server. It is a lightweight protocol, ideal for IoT applications.
When the button is pressed, after a brief pause of 15 seconds, a message is sent to the server via MQTT. The server then identifies the corresponding email and sends a notification to the customer.
MQTT is perfect for IoT. Unfortunately, authentication is not activated by default, nor is encryption. We have observed many IoT platforms vulnerable to attacks, leading to private data leaks. Fortunately, when you start an MQTT instance on Stackhero, both authentication and encryption are activated, providing a fully secured solution out of the box.