Skip to content

Qeps/stm32mp157_python_mqtt_base_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MQTT Studio

Lightweight web tool for testing MQTT brokers - Flask backend with a single-page UI for publishing, subscribing, and live message monitoring.

Highlights

  • One-click connect to a broker via URL/IP with live online/offline status.
  • Single and periodic publish (adjustable interval) to any topic.
  • Multiple subscriptions with a live list of active topics.
  • Sent/received logs with UTC timestamps and direction tags.
  • Static UI served by Flask - runs in any browser, nothing to install on the client.

Screenshots

mainUIpart1 mainUIpart2 593435688_1184599920450024_5034510601861845838_n 593991935_1269462811875348_983846594040829029_n

Project layout

  • main.py - entry point starting the Flask app.
  • app/server.py - API (connect, publish, subscribe, logs) and static file serving.
  • app/mqtt_client.py - paho-mqtt wrapper for connect/publish/subscribe and bounded logs.
  • static/ - frontend assets: index.html, style.css, app.js.

Using the app (after it is running)

  • Open http://localhost:5000/ in your browser.
  • Enter the broker address (e.g., mqtt://broker.hivemq.com:1883) and click Connect.
  • Publish messages (single/periodic) and subscribe to topics; sent/received logs update live.

Accessing on STM32MP157

  • If you use paho higher version over 2.0 uncomment lines in mqtt_client.py.
  • Determine the board IP (e.g., ip addr show -> look for inet 192.168.x.y).
  • From a device on the same network, open http://<board-ip>:5000/ in a browser.
  • If using USB RNDIS/ECM, the host typically sees the board at a link-local IP (e.g., 192.168.7.x); use that address with port 5000. linux

Requirements

  • Python 3.9+.
  • An MQTT broker reachable from the device for testing.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors