MQTT Debugging on Ai-M61-32S-Kit (EMQX + Remote LED Control) #23
Yaqing-Zheng
started this conversation in
📚Tutorials(教程)
Replies: 1 comment
|
cool! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What you'll learn
In this tutorial you will set up a local EMQX MQTT broker, connect an Ai-M61-32S-Kit to it, and control the on-board LED remotely by publishing MQTT messages — a complete end-to-end MQTT debugging walkthrough.
Prerequisites
Step 1 — Download & Start EMQX
Step 2 — EMQX Default Ports
EMQX 5.x exposes these ports by default:
Step 3 — Log in to the EMQX Dashboard
Open your browser and visit:
(Replace
localhostwith your actual IP if accessing remotely.)Default credentials:
adminpublicStep 4 — Create an MQTT Client Account
The device needs credentials to connect. In the Dashboard, create a client account:
Step 5 — Configure the Device
In the SDK example, edit the configuration to match your environment:
Step 6 — Flash and Run
Flash the firmware to the board. After booting, the board connects to Wi-Fi and then to EMQX. In the EMQX Dashboard you should see the device listed as connected.
Step 7 — Remote LED Test 🎉
From the EMQX Dashboard, publish a message to the LED control topic:
(Note: the LED starts on by default in the example, so the author first sent "off" — otherwise it wouldn't feel like a proper "lighting ceremony" 💡.)
Done! 🎊
You've completed a full MQTT loop: EMQX broker → Ai-M61-32S-Kit → remote LED control.
Questions?
📖 Original (Chinese) tutorial: Ai-M61-32S-Kit 开发板 MQTT 调试
Contributed by wxlinus · Curated by the Ai-Thinker community team
All reactions