NavigationContentFooter
Suggest an edit

How to connect to the default MQTT network

Reviewed on 27 December 2023Published on 01 September 2019

The default network, which is automatically created with a hub, is a MQTT network. The default network, cannot be deleted.

Before you start

To complete the actions presented on this page, you must have:

Requirements
  • You have an account and are logged into the Scaleway console
  • You have created an IoT Hub
  1. Add a Hub device if you haven’t already done so.

    To keep this tutorial simple, choose to Allow Insercure connections. Insecure connections allow connections to the hub without encryption layer.

  2. Configure the physical device (or client) to connect through the network, using the following parameters:

    • Host: The network endpoint.
    • Port: Use 1883 for plaintext or 8883 for TLS.
    • MQTT Username: The device ID from the device you created earlier.
    • If your client asks for a password, just pass in an empty string.
    Note

    If you have configured your device to force mTLS (Deny Insecure connections), you will also need to provide the device certificate and private key, so that during the TLS handshake, the hub will be able to verify the device identity.

  3. Connect and exchange messages.

    Some networks support topic prefixes, but the default networks do not. The whole “topic space” is available to MQTT clients.

Read our introduction blog post to understand more about MQTT topics.

See also
How to renew the certificate of a deviceHow to connect to the default WebSocket 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
Follow us
FacebookTwitterSlackInstagramLinkedin
ContractsLegal NoticePrivacy PolicyCookie PolicyDocumentation license
© 1999-2024 – Scaleway SAS