SmoothMQTT is a no-code solution that allows you to integrate IoT or other MQTT-enabled devices into your Unity app or game. It provides a simple and intuitive way to connect external hardware, such as LEDs, sensors, and motors, to your Unity app or game. With SmoothMQTT, you can easily access Unity functions in response to messages from other apps or hardware appliances.
MQTT is a message protocol that enables you to publish values to a topic that any client can subscribe to and react to. Imagine a sensor in your living room publishing its current temperature measurement to MQTT, and your game changing the light intensity or color in your scene.
This asset provides components that make it easy to run and use MQTT infrastructure within your game or app. Subscribing to a topic is as easy as adding a component, configuring the topic, and selecting an action to be triggered.
SmoothMQTT supports a wide range of features, including:
- MQTT protocol (mqtt:// and mqtts://)
- Unity MQTT clients
- Unity MQTT broker
- Configurable IP, port, and user credentials
- Message publishing
- Message subscription
- Primitive data types in messages (int, float, bool, string)
- Unity types in messages (Vector3, Quaternion, Color)
- Conditional subscriptions
- Publishing messages from a TMP_InputField
- Publishing trigger and collision events
- Setting up user/password if Unity app is the broker
- Conditional subscribers for float messages
- JSON payload handling
- Automatic Reconnect if connection is lost
This package is compatible with Windows Standalone, OS X Standalone, and Linux Standalone, and is also experimental on Android. However, it does not support WebGL, UWP, or other platforms.
SmoothMQTT supports the following features:
- mqtt:// and mqtts:// protocols
- Unity MQTT clients
- Unity MQTT broker
- Configurable IP, port, and user credentials
- Message publishing
- Message subscription
- Primitive data types in messages (int, float, bool, string)
- Unity types in messages (Vector3, Quaternion, Color)
- Conditional subscriptions
- Publishing messages from a TMP_InputField
- Publishing trigger and collision events
- Setting up user/password if Unity app is the broker
- Conditional subscribers (>, >=, <, <=, !=, ==, in interval, outside interval) for float messages
- JSON payload handling
- Handles color payloads and allows for checking whether they are within a certain gradient
- Automatic Reconnect if connection is lost
Note: This package does not support Websockets.





