# MQTT Broker in WAGO PLC

**URL:** <https://www.wago.community/t/mqtt-broker-in-wago-plc/2147>\
**Category:** Hardware and Linux\
**Tags:** linux\
**Created:** [July 31, 2025, 9:45am UTC](https://www.wago.community/t/mqtt-broker-in-wago-plc/2147 "2025-07-31T09:45:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeaElSee](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@PeaElSee](https://www.wago.community/u/PeaElSee)\
**Post date:** [July 31, 2025, 9:45am UTC](https://www.wago.community/t/mqtt-broker-in-wago-plc/2147/1 "2025-07-31T09:45:15Z")

</div>

Is it suitable to run a MQTT Broker for small amounts of data on a WAGO PLC?

- Which HW size is the minimum recommendation?
- Which broker would you recommend?
- Are their any guides or test-result available?

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [July 31, 2025, 11:54am UTC](https://www.wago.community/t/mqtt-broker-in-wago-plc/2147/2 "2025-07-31T11:54:37Z")

</div>

Depending on the number of msg/s you could use a WAGO PLC like PFC200/PFC300 or Edge Controller.  
You can install [Mosquitto](https://hub.docker.com/_/eclipse-mosquitto), which would be my first choice for an embedded system.  
Take a look to [EMQX](https://www.emqx.com/en) also.  
You can use a MQTT client software like [MQTTX](https://mqttx.app/) which has a script mode, you can then generate a bigger load and see how CPU is handling it (with command line tool htop for instance).

---

<div class="post-metadata">

**Author:** ![WagoDamRud](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagodamrud/32/258_2.png) [@WagoDamRud](https://www.wago.community/u/WagoDamRud)\
**Post date:** [August 7, 2025, 11:20am UTC](https://www.wago.community/t/mqtt-broker-in-wago-plc/2147/3 "2025-08-07T11:20:22Z")

</div>

I often use: [eclipse-mosquitto - Official Image | Docker Hub](https://hub.docker.com/_/eclipse-mosquitto)  
Its only about 8MB, so you dont need to use docker with SD card

Quick run:

1. Connect to console using PuTTY and paste:

```auto
mkdir mosquitto mosquitto/data mosquitto/log mosquitto/config
nano mosquitto/config/mosquitto.conf

```

1. To mosquitto.conf paste:

```auto
listener 1883
listener 9001
protocol websockets
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log

allow_anonymous true

```

1. Run container:

`docker run --restart always --name mosquitto -p 1883:1883 -p 9001:9001 -v ./mosquitto/config:/mosquitto/config -v ./mosquitto/data:/mosquitto/data -v ./mosquitto/log:/mosquitto/log -d eclipse-mosquitto`
