This is an Eclipse Paho C library based Sync MQTT client (subscriber and publisher) plugin for Unreal Engine 5.
- Paho C Library: https://github.com/eclipse/paho.mqtt.c
- OpenSSL 3 Binaries : You can build them by yourself or install pre-built binaries from here. We used v3.6.0. Don't use any other version !. or you have to build Paho C library with that version, again.
https://slproweb.com/download/Win64OpenSSL-3_6_0.exe
- If you go with pre-built openssl from the web site that we provide you, make sure that you set binaries location to
/binfolder. Install wizard will ask you about this. - Open
FF_MQTT_Sync.upluginand removeFF_OpenSSLplugin. (We have centralized and closed source OpenSSL UE5 wrapper that satisfy all of our openssl dependent plugins. To run this plugin, you don't need that. So, just remove it to prevent issues.) - Copy
libcrypto-3-x64.dllandlibssl-3-x64.dllfiles from OpenSSL v3 installation's/binfolder to plugin'sSource/paho_c_sync/Win64/binfolder. - Make sure that you don't have any other plugin that use different
OpenSSL v3thanv3.6.0. If you have, you either have to build other libraries withOpenSSL 3.6.0; orPahowith your preferredOpenSSL v3version. Unreal's own OpenSSL module that useOpenSSL 1.1.tis not important. You can use it in other plugins if you want. (unfortunately, UE5 already uses it.)
- I assume that you already know how to connect an MQTT broker.
- You can see a sample blueprint in
Content/BPsfolder. Just change connection informations based on your broker. - You need to put on of these protocols before URL
mqtt://,mqtts://,ws://,wss://,ssl:// - You need to put port after the URL
https://blueprintue.com/blueprint/tyjl3y62/
https://github.com/FF-Plugins-Active/FF_MQTT_Async
- Android Platform support
Our custom license allow you to use this plugin in your commercial projects freely, but you can't sell this plugin as a plugin with or without any modification on any marketplace.