MQTT Function
This document describes how to use the MQTT capabilities of the HT-M7603.
To summarize, you need three things to make this work:
Enable Gateway MQTT mode
Power on, find the WiFi named “HT_M7603_xxxx”, connect to this WiFi, the password is “heltec.org”.
Visit “192.168.8.1” via the browser, the user name “HT-M7603” and password “heltec.org”.
In Switch Region option, select the appropriate band and channel, which should correspond to the transmit frequency of your node.
In Gateway Mode option, select “Custom MQTT”.
In the pop-up window, fill in the server address port and other information. Click the
Set Gateway
button when you’re done.Connect to network
Via Ethernet: Insert the cable directly into the interface, after a successful connection, the device LED will change from blue to green.
Via WiFi: Click the “Status “option at the top left, click “WiFi”. Select the WiFi you want to connect to in “WIFI list”, enter password of this WiFi, click “connect”. It usually takes 10~30 seconds for the HT-M7603 to connect to the WiFi, and the device LED will change from blue to green.
Node enables private MQTT protocol
When your gateway is running MQTT mode, you can see this option on its configuration page:
Click “node exmple.ino” to download this file.
This file contains a demo code based on Heltec Cubecell, and the comments in the code explain the data format in detail.