-
Notifications
You must be signed in to change notification settings - Fork 60
Getting started
MQTT is a lightweight messaging protocol. It is based on the principle of publishing messages and subscribing to topics. Multiple clients connect to a broker and subscribe to topics that they are interested in. Clients also connect to the broker and publish messages to topics. Many clients may subscribe to the same topics and do with the information whatever they need to.
To use MQTT in your Unreal Engine project consider completing the following steps:
- Choose one of compatible MQTT brokers and configure it to fit your project needs
- Setup MQTT Utilities plugin for your Unreal Engine project
- Implement MQTT-related logic in blueprints/C++
This list can be extended in the future. Also, even if some MQTT brokers are not listed here it doesn't necessarily mean that they are incompatible with MQTT Utilities plugin for Unreal Engine unless this is mentioned explicitly.
MQTT Utilities plugin provides function allowing to create MQTT client object that handles all communication between application and MQTT broker. Detailed description of all its capabilities can be found in an API section.
Check out demo level in the plugin Contents folder.
It presents simple application that allows you connecting to MQTT broker and communicate with other clients by publishing messages.
For running this demo simultaneously on multiple devices make sure that each of them has unique ClientID value.
In Content -> UserInterface folder there is AppMenu_BP blueprint that contains all the logic related to MQTT Client, so check this out as well.