AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證ConnectMQ MQTT broker examples - free public mqtt broker and managed mqtt broker
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Ready-to-run MQTT examples for 12 languages and platforms: connect, subscribe and publish a JSON sensor reading in a few lines of code.
Every example comes in two versions:
public-broker/ — runs right away on the free public broker broker.connectmq.com, no account needed.private-broker/ — the same code on a secure private broker on ConnectMQ: TLS, a username and password per device and per-topic access control.ConnectMQ is a managed, serverless MQTT broker for IoT devices, apps and digital twins. Start on the Free plan — no credit card. 👉 Create your free broker
| Language / platform | Library | Step-by-step guide |
|---|---|---|
| Python | paho-mqtt 2.x | Guide |
| Node.js | MQTT.js 5 | Guide |
| ESP32 | PubSubClient (Arduino) | Guide |
| Go | Eclipse Paho Go | Guide |
| CLI (mosquitto) | mosquitto_pub / mosquitto_sub | Guide |
| Java | Eclipse Paho Java Client | Guide |
Each folder has its own README with install steps, both code versions and how to run them.
Beyond the basic examples, tutorials/ holds the code of 58 step-by-step tutorials from the ConnectMQ blog: MQTT to databases (SQLite, MongoDB, InfluxDB, TimescaleDB), dashboards (Grafana, Streamlit, React, Vue, Angular), mobile and desktop apps, bots, device simulators, TLS, reconnect strategies and more — each ready to run on the free public broker and on your private ConnectMQ broker.
No sign-up, no setup — point any MQTT client at it:
| Protocol | URL |
|---|---|
| MQTT (TCP) | mqtt://broker.connectmq.com:1883 |
| MQTT over TLS | mqtts://broker.connectmq.com:8883 |
| WebSocket | ws://broker.connectmq.com:8083/mqtt |
| Secure WebSocket | wss://broker.connectmq.com:8084/mqtt |
Supports MQTT 3.1.1 and MQTT 5.
# Terminal 1: subscribe
mosquitto_sub -h broker.connectmq.com -p 1883 -t "your-project/sensors/#" -v
# Terminal 2: publish
mosquitto_pub -h broker.connectmq.com -p 1883 -t "your-project/sensors/temperature" -m '{"temperature":21.5}'
⚠️ The public broker is shared: anyone can subscribe to any topic. Use a unique topic prefix, never send confidential data, and expect no availability guarantee. Learn more
When your devices leave the desk, switch to a private broker — only the host, port and credentials change:
private-broker/ file of your language, replace YOUR_BROKER_HOST, YOUR_USERNAME and YOUR_PASSWORD, and run it.What you get:
${clientid} / ${username} placeholders| Free public broker | Private broker on ConnectMQ | |
|---|---|---|
| Account | Not needed | Free sign-up, no credit card |
| Host | broker.connectmq.com | Your own broker host |
| Who can read your topics | Anyone | Only your devices |
| Encryption | Optional (TLS on 8883) | TLS on every connection |
| Authentication | None | Username and password per device |
| Topic access control (ACL) | No | Yes, per topic and per client |
| Device & connection dashboard | No | Yes |
| Use it for | Learning, demos, quick tests | Real devices and production |
Found a bug or want an example for another language? Open an issue or send a pull request.
MIT — use these examples freely in your own projects, commercial or not.
58 complete projects from the ConnectMQ blog, grouped by stack. Each one runs on the free public broker and on your private ConnectMQ broker.
| Tutorial | Stack | Code | Full guide |
|---|---|---|---|
| Android MQTT Kotlin Client: Connect, Subscribe and Notify | Kotlin (Android) | android-mqtt-kotlin/ | Read on connectmq.com |
| iOS MQTT Swift Client with CocoaMQTT and SwiftUI | Swift (SwiftUI, CocoaMQTT) | ios-mqtt-swift/ | Read on connectmq.com |
| Flutter MQTT Client: Building a Cross-Platform IoT App | Dart (Flutter) | flutter-mqtt/ | Read on connectmq.com |
| React Native MQTT: Real-Time Mobile IoT Apps over WebSocket | React Native (JavaScript) |
| C# (.NET) | MQTTnet 4 | Guide |
| Rust | rumqttc | Guide |
| Dart (Flutter) | mqtt_client | Guide |
| Swift / Kotlin | CocoaMQTT (iOS) · HiveMQ MQTT Client (Android) | Guide |
| Home Assistant | MQTT integration | Guide |
| Node-RED | mqtt in / mqtt out nodes | Guide |
| Python |
python-mqtt-json/ |
| Read on connectmq.com |
| Python MQTT TLS: Connecting Securely on Port 8883 with paho-mqtt | Python | python-mqtt-tls/ | Read on connectmq.com |
| Async MQTT in Python with aiomqtt and asyncio: Tasks, Workers and Reconnects | Python | aiomqtt-asyncio/ | Read on connectmq.com |
| Build an MQTT Device Simulator in Python for Hundreds of Virtual Sensors | Python | mqtt-device-simulator/ | Read on connectmq.com |
| Log MQTT Messages to CSV with Python for Quick Analysis | Python | log-mqtt-messages-to-csv/ | Read on connectmq.com |
| Real-Time MQTT Data Analysis with Python and pandas | Python | mqtt-pandas/ | Read on connectmq.com |
| Exploring MQTT Data in a Jupyter Notebook: Subscribe, Plot and Save Snapshots | Python (Jupyter) | mqtt-jupyter-notebook/ | Read on connectmq.com |
| Streamlit MQTT Dashboard in Pure Python: Live Sensor Charts in 100 Lines | Python (Streamlit) | streamlit-mqtt-dashboard/ | Read on connectmq.com |
| MQTT to REST API Flask Tutorial: Expose Live Device Data over HTTP | Python (Flask) | mqtt-to-rest-api-flask/ | Read on connectmq.com |
| MQTT Email Alerts Python Tutorial: Rate-Limited SMTP Notifications | Python | mqtt-email-alerts-python/ | Read on connectmq.com |
| Build an MQTT Telegram Bot for Device Alerts and Commands | Python | mqtt-telegram-bot/ | Read on connectmq.com |
| MQTT to Google Sheets: Send Sensor Data with Python and the Sheets API | Python | mqtt-to-google-sheets/ | Read on connectmq.com |
| Testing MQTT Clients: Unit, Integration and End-to-End Tests | Python (pytest) | testing-mqtt-clients/ | Read on connectmq.com |
| Node.js |
mqtt-to-mongodb/ |
| Read on connectmq.com |
| Docker / Grafana |
grafana-mqtt-datasource/ |
| Read on connectmq.com |
| Grafana Alerts for IoT Sensor Data: Thresholds, Stale Sensors and Notifications | Grafana / InfluxDB (Flux) | grafana-alerts-iot-sensor-data/ | Read on connectmq.com |
| JavaScript (browser + Node.js) |
mqtt-over-websocket/ |
| Read on connectmq.com |
| Build a Real-Time MQTT Chat App with JavaScript, Presence and No Local | JavaScript (browser, MQTT.js) | mqtt-chat-app/ | Read on connectmq.com |
| React MQTT Tutorial: A Hooks-Based Real-Time Dashboard | React (JavaScript) | react-mqtt/ | Read on connectmq.com |
| Vue MQTT Client: Real-Time Data over WebSocket with Vue 3 | Vue 3 (JavaScript, MQTT.js) | vue-mqtt/ | Read on connectmq.com |
| Angular MQTT Tutorial with RxJS, MQTT.js and ngx-mqtt | TypeScript (Angular) | angular-mqtt/ | Read on connectmq.com |
| Next.js MQTT: Server and Client Integration Patterns That Actually Work | Next.js, JavaScript | next-js-mqtt/ | Read on connectmq.com |
react-native-mqtt/ |
| Read on connectmq.com |
| .NET MAUI MQTT App: Monitor and Control Devices on Android, iOS and Windows | C#, .NET MAUI | net-maui-mqtt/ | Read on connectmq.com |
| Qt MQTT Client in C++: Building Desktop and Embedded HMIs | C++ (Qt 6) | qt-mqtt-client/ | Read on connectmq.com |
| Unity MQTT Client: Drive 3D Scenes with Live Sensor Data | C# (Unity, MQTTnet) | unity-mqtt-client/ | Read on connectmq.com |
spring-boot-mqtt/ |
| Read on connectmq.com |
| Go MQTT Client Tutorial with Eclipse Paho autopaho and MQTT 5 | Go | go-mqtt-client/ | Read on connectmq.com |
| Rust MQTT with rumqttc: Async Publish/Subscribe over TLS with Tokio | Rust | rust-mqtt-rumqttc/ | Read on connectmq.com |
| PHP MQTT Client Tutorial with php-mqtt/client | PHP | php-mqtt-client/ | Read on connectmq.com |
| Ruby MQTT Client Tutorial: Publish, Subscribe and TLS with the mqtt Gem | Ruby | ruby-mqtt-client/ | Read on connectmq.com |
| MQTT Client Libraries: Choosing the Right One for Every Language | Multi-language (Python, Node.js, Go, Java, C#, Rust, C) | mqtt-client-libraries/ | Read on connectmq.com |
| CLI (Mosquitto) / desktop GUI tools |
mqtt-explorer-desktop-app/ |
| Read on connectmq.com |
| VS Code MQTT Extension: Publish and Subscribe Without Leaving Your Editor | VS Code / Mosquitto CLI | vs-code-mqtt-extension/ | Read on connectmq.com |
| MQTT Load Testing Tools: emqtt-bench, MQTTX Bench and Locust Compared | Python / CLI | mqtt-load-testing-tools/ | Read on connectmq.com |