Sidebar navigationMain contentFooter
Suggest an edit

How to use the MQTT WebClient

Reviewed on 27 December 2023Published on 01 September 2021

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.

Security & Identity (IAM)

To perform certain actions described below, you must either be the Owner of the Organization in which the actions will be performed, or an IAM user with the necessary permissions.

Requirements
  • You have created an IoT Hub
  • You have added a device that allows insecure connections to your hub.
  1. 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.
    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 Username field to a valid Device ID and click the connect button.

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.

Note

To learn more about MQTT, refer to An Introduction to the MQTT protocol blogpost.

See also
How to connect to the default WebSocket networkHow to set up and use a REST network
Cloud Products & Resources
  • Scaleway Console
  • Compute
  • Storage
  • Network
  • IoT
  • AI
Dedicated Products & Resources
  • Dedibox Console
  • Dedibox Servers
  • Network
  • Web Hosting
Scaleway
  • Scaleway.com
  • Blog
  • Careers
  • Scaleway Learning
Scaleway Docs
Follow us
FacebookTwitterSlackInstagramLinkedin
ContractsLegal NoticePrivacy PolicyCookie PolicyDocumentation license
© 1999-2024 – Scaleway SAS