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?
Is it suitable to run a MQTT Broker for small amounts of data on a WAGO PLC?
Depending on the number of msg/s you could use a WAGO PLC like PFC200/PFC300 or Edge Controller.
You can install Mosquitto, which would be my first choice for an embedded system.
Take a look to EMQX also.
You can use a MQTT client software like MQTTX 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).
I often use: eclipse-mosquitto - Official Image | Docker Hub
Its only about 8MB, so you dont need to use docker with SD card
Quick run:
mkdir mosquitto mosquitto/data mosquitto/log mosquitto/config
nano mosquitto/config/mosquitto.conf
listener 1883
listener 9001
protocol websockets
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
allow_anonymous true
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