Structure of messages in MQTT topics
INFO
Messages sent via MQTT topics are transferred in text form.
DANGER
Unit Developers can always apply additional encryption on top of the textual data if needed. For example, the aes-gcm-256 algorithm based on PU_ENCRYPT_KEY is built into the client libraries.
WARNING
The size of any message a Unit sends through EMQX is limited by the PU_MQTT_MAX_PAYLOAD_SIZE environment variable in the Backend ENV.
DataPipe
For simple text or numeric messages, you can process data through DataPipe.