주요 콘텐츠

Message Queuing Telemetry Transport

Subscribe and publish to MQTT topics

Publish and subscribe messages from Message Queuing Telemetry Transport (MQTT) to client(s) without the device needing to continuously poll the server.

Blocks

MQTT PublishPublish messages to MQTT broker on specified topic
MQTT SubscribeReceive messages from MQTT broker for specified topic

Model Settings

expand all

Encryption typeConnection type between MQTT client and MQTT broker (Since R2023b)
BrokerMQTT broker service provider (Since R2023b)
Broker AddressMQTT broker address to which MQTT client is connected
PortConfigure MQTT client to communicate with MQTT broker (Since R2023b)
CA Server certificate pathSpecify location of server root certificate (Since R2023b)
UsernameUser name for the MQTT broker
PasswordPassword for MQTT broker
Client IDIdentifier (ID) for MQTT client
Configuration file path on targetLocation of configuration file on the Raspberry Pi (Since R2026a)
Print diagnostic messagesEnable logging of diagnostic message (Since R2025a)

Topics

Related Information

Featured Examples