How to use the MQTT WebClient
An MQTT WebClient is embedded in the Scaleway Console.
You can use it to connect to your Hub as a Device and publish and subscribe to topics on the Hub without having to set up a command line tool on your computer.
Open the WebClient by either:
Clicking MQTT Webclient on the top right corner of the Device overview tab.
Clicking the open-in-a-new-window button next to Default WebSocket Network on the Hub’s Networks list.Note:
If you opened the WebClient from the Device overview tab, you will be automatically connected to the Hub with this Device. If you opened the Webclient from the Networks tab, you must set the
Usernamefield to a valid Device ID and click the connect button.
Once you connect to the Webclient, you can perfom different operations. In this how to, we indicate how to subscribe to a topic, publish a message, and verify the message was received.
Click Add a new subscription in the Subscriptions panel.
my/topicas the topic and click Subscribe.
my/topicunder the Topic field, and
Hello Worldin the Message field in the Publish panel. Then, click Publish.
The message should appears in the Messages.
To learn more about MQTT, refer to An Introduction to the MQTT protocol blogpost.