# Setting up MQTT broker on PFC200

**URL:** <https://www.wago.community/t/setting-up-mqtt-broker-on-pfc200/1952>\
**Category:** Hardware and Linux\
**Tags:** pfc200, mqtt\
**Created:** [June 11, 2025, 2:09pm UTC](https://www.wago.community/t/setting-up-mqtt-broker-on-pfc200/1952 "2025-06-11T14:09:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boettcher](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/boettcher/32/1822_2.png) [@Boettcher](https://www.wago.community/u/Boettcher)\
**Post date:** [June 11, 2025, 2:09pm UTC](https://www.wago.community/t/setting-up-mqtt-broker-on-pfc200/1952/1 "2025-06-11T14:09:18Z")

</div>

Please let me start by saying I am new to the MQTT / NodeRed world. I like it a lot but, I am still building my knowledge and experience with it.

Is it still advisable to set up a MQTT broker (mosquitto) in a container on the PFC200?

I watched the full Webinar from 2020 about setting up NodeRed on a PFC200 (Webinar: Using Node-RED for IIoT Applications with WAGO Controllers and Docker).  
In their example, they were able to download a Docker Container image with the Mosquitto broker and install it on the PFC200.  
Looking for that same container to download now, all I can find is information about building it locally. - [pfc-howtos/HowTo\_AddMosquittoBroker at master · WAGO/pfc-howtos · GitHub](https://github.com/WAGO/pfc-howtos/tree/master/HowTo_AddMosquittoBroker)

Should I not be trying to have my PFC200 act like a MQTT broker?

---

<div class="post-metadata">

**Author:** ![Boettcher](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/boettcher/32/1822_2.png) [@Boettcher](https://www.wago.community/u/Boettcher)\
**Post date:** [June 12, 2025, 11:04am UTC](https://www.wago.community/t/setting-up-mqtt-broker-on-pfc200/1952/2 "2025-06-12T11:04:30Z")

</div>

A little more information about what I am trying to do:

I have a Windows PC I need to get DDE data from. I have set up NodeRed on my PFC200 (750-8212) and am able start a DDE conversation and get the data / send the commands that I need.  
Now that my data is in NodeRed, how can I get it to my CODESYS application? MQTT seemed like the right tool for this, but truthfully I do not know.

So my question about setting up a MQTT broker still stands, but additionally I am wondering if what I am doing makes sense? Is there a more logical or simple way to pass this data into my CODESYS application?

---

<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:** [June 12, 2025, 11:27am UTC](https://www.wago.community/t/setting-up-mqtt-broker-on-pfc200/1952/3 "2025-06-12T11:27:36Z")

</div>

the easiest one are Network Variables ( [node-red-contrib-nvl (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-nvl)) or modbus in NodeRED. MQTT is okey, but needs some effort in Codesys side.

Network Variables are easy to setup in codesys (just add list of variables) and in NodeRED.  
Modbus - you have to setup modbus server/client and parse data.  
MQTT - you need to setup broker and communication, parsers in both sides.

I prefer to run everything in Docker cointainers, because its easier to maintain. New version? no problem, just pull and restart. Lately I’ve been using portainer on the server and portainer-clients on the controllers in my projects. This allows me to manage and monitor containers from one place. Alse you can use easy-to-setup templates and built-in docker-composer.
