Title: MQTT-Plug
Author: POTAR
Published: <strong>2026 年 2 月 5 日</strong>
Last modified: 2026 年 2 月 5 日

---

搜尋外掛

![](https://ps.w.org/mqtt-plug/assets/banner-772x250.png?rev=3454196)

![](https://ps.w.org/mqtt-plug/assets/icon-256x256.png?rev=3454196)

# MQTT-Plug

 由 [POTAR](https://profiles.wordpress.org/potar/) 開發

[下載](https://downloads.wordpress.org/plugin/mqtt-plug.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/mqtt-plug/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/mqtt-plug/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/mqtt-plug/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/mqtt-plug/#developers)

 [技術支援](https://wordpress.org/support/plugin/mqtt-plug/)

## 外掛說明

MQTT-Plug brings live MQTT data directly into WordPress using secure WebSocket connections.

It is designed for developers, IoT experimenters, and small production deployments
that want real-time visibility without building a custom frontend.

Unlike traditional MQTT tools, MQTT-Plug focuses on **embedding live data into WordPress
pages, posts, and dashboards**, while keeping credentials safe and configuration
simple.

### Key Features

 * Connect to MQTT brokers over WS/WSS
 * Live message stream and event log
 * Topic-based subscriptions
 * Shortcode-driven embeds
 * Works with public or authenticated dashboards
 * Designed for modern MQTT backends (Mosquitto, EMQX, HiveMQ, The-Link-Builders,
   managed brokers)
 * No external Node services required
 * Lightweight; no tracking, no telemetry, no lock-in

MQTT-Plug is infrastructure-agnostic. You control your broker, topics, and data 
flow.

### Configuration

In **Settings  MQTT-Plug**, configure:

 * Broker host
 * WebSocket port
 * TLS / secure connection (WSS)
 * Username and password (if required)
 * Base topic or subscription filter
 * Debug logging (optional)

All credentials are stored using WordPress options and are never exposed to public
users unless explicitly enabled.

### Usage

Basic shortcode:

[mqtt_plug]

Optional attributes:

 * `height="520px"` – set container height
 * `class="custom-class"` – add a CSS hook
 * `mode="observer"` – server-fed or read-only views (if enabled)

Example:

[mqtt_plug height=”600px” class=”iot-dashboard” mode=”observer”]

### Security Notes

 * Public pages should **not** use live credentials.
 * Use observer or server-fed modes for public dashboards.
 * Always prefer WSS when exposing MQTT over the internet.
 * Rotate credentials regularly for production systems.

MQTT-Plug does not open inbound ports on WordPress and does not proxy MQTT traffic
through the server unless explicitly configured.

### License

GPLv2 or later.

### Credits

Developed by **Michael Winchester**
 For documentation and updates, visit [https://meshplug.michaelwinchester.com/](https://meshplug.michaelwinchester.com/)

## 螢幕擷圖

 * [[
 * Live MQTT dashboard
 * [[
 * Log Tab
 * [[
 * History Tab
 * [[
 * Settings

## 安裝方式

 1. Upload the `mqtt-plug` folder to `/wp-content/plugins/`, or install via the WordPress
    plugin installer.
 2. Activate the plugin through the _Plugins_ menu.
 3. Go to **Settings  MQTT-Plug** to configure your broker connection.
 4. Add the shortcode to any page or post.

## 常見問題集

### Does this replace my MQTT broker?

No. MQTT-Plug is a viewer and frontend. You still need an MQTT broker.

### Which brokers are supported?

Any MQTT broker that supports WebSockets, including Mosquitto, EMQX, HiveMQ, and
managed services.

### Can I use this for production systems?

Yes, provided you follow standard MQTT security practices. For large-scale or multi-
tenant systems, a managed broker is recommended.

### Is JavaScript required?

Yes. MQTT-Plug uses browser-based WebSocket connections for live data.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈MQTT-Plug〉的開發相關工作。

參與者

 *   [ POTAR ](https://profiles.wordpress.org/potar/)

[將〈MQTT-Plug〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/mqtt-plug)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/mqtt-plug/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/mqtt-plug/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/mqtt-plug/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/mqtt-plug/)。

## 變更記錄

#### 1.0

 * Initial stable release
 * Hardened settings validation
 * Improved connection lifecycle handling
 * Observer-safe rendering
 * Clean shortcode API
 * Production-ready defaults

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **4 個月前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/mqtt-plug/)
 * 標籤:
 * [dashboards](https://tw.wordpress.org/plugins/tags/dashboards/)[iot](https://tw.wordpress.org/plugins/tags/iot/)
   [MQTT](https://tw.wordpress.org/plugins/tags/mqtt/)[realtime](https://tw.wordpress.org/plugins/tags/realtime/)
   [Websocket](https://tw.wordpress.org/plugins/tags/websocket/)
 *  [進階檢視](https://tw.wordpress.org/plugins/mqtt-plug/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/mqtt-plug/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/mqtt-plug/reviews/)

## 參與者

 *   [ POTAR ](https://profiles.wordpress.org/potar/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/mqtt-plug/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/ncp/payment/4RV65EGN96SLS)