A dedicated library for RaioTerm IoT that enables seamless Group Communication (The Matrix).
This library is fully tested and compliant with:
- ESP32 (All variants: S2, S3, C3, WROOM)
- ESP8266 (NodeMCU, D1 Mini)
- Raspberry Pi Pico W & Pico 2 W (using the official Arduino Pico core)
- Broadcast: Send a message to everyone in the group.
- Direct Message: Whisper a message to a specific Device ID.
- Multicast: Send to a specific sub-list of devices.
- Self-Loopback: Receive your own messages for verification.
You must install the PubSubClient library in Arduino IDE before using this.
- Include the library:
#include <RaioGroupMatrix.h> - Initialize:
RaioGroupMatrix matrix(mqttClient, "YOUR_DEVICE_ID"); - Setup:
matrix.begin("YOUR_GROUP_ID"); - Connect: Inside your MQTT connect loop, call
matrix.join();