How to add a device to IoT Hub
A device is a representation of a device or program that is connected to the cloud. Through a Hub, it exchanges messages with other devices and cloud services.
Devices use the MQTT protocol to send and receive messages. MQTT over WebSocket is also supported through a dedicated network.
If you have activated IAM, you may need certain IAM permissions to carry out some actions described on this page. This means:
- you are the Owner of the Scaleway Organization in which the actions will be carried out, or
- you are an IAM user of the Organization, with a policy granting you the necessary permission sets
- You have an account and are logged into the Scaleway console
- You have created an IoT Hub
-
Click IoT Hub in the Managed Services section of the side menu. The list of your IoT Hubs displays.
-
Click the name of the IoT Hub on which you want to add a device. The hub’s overview page displays.
-
Click Add devices in the devices tab of your Hub.
-
Enter a name for your device. It must be unique among the devices in this hub, and cannot be changed once created. Optionally, set a device description (only for display purposes).
-
Choose a security setting for your device. You can either deny or allow insecure connections.
-
Click Add a device to your Hub.
-
Download the credentials of the device and keep them safe.
Important:Make sure to download or copy the Device certificate and the Device private key. These files are required to establish a connection from the device to your Hub. For security reasons the private key is not stored on our side, and you will not be able to access it later.
-
Click Close to leave the wizard or Add a new device to add another device.
Once the device is added, you may continue to configure IoT Hub Routes to export your data to other Scaleway services.