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.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Created an IoT Hub
- Added a device that allows insecure connections to your hub
-
Open the WebClient by either:
- Clicking MQTT Webclient in 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.
Once you connect to the WebClient, you can perform different operations. In this how to, we indicate how to subscribe to a topic, publish a message, and verify the message was received.
2. Click Add new subscription in the Subscriptions panel.
3. Choose my/topic
as the topic and click Subscribe.
4. Write my/topic
under the Topic field, and Hello World
in the Message field in the Publish panel. Then, click Publish.
The message should appear in the Messages.
