Learn what to do if your device has the offline status in Arduino Cloud.
Before you begin:
- If you experience an issue when adding a device to Arduino Cloud, see If your device can’t be added to Arduino Cloud.
- Understand that device status is not supported by LoRa devices and that these devices will always appear as offline. See About device status in Arduino Cloud.
In this article:
- Check power and restart
- Verify network credentials and reupload the Thing sketch
- Check your network settings
- Check the serial output
- Delete the device
Check power and restart
- Disconnect and reconnect the device power.
- Verify that the device is powered by checking the power LED.
- Exception: The Arduino Opta has no power LED, so it may be powered even if no LEDs are lit.
- If device is connecting via Wi-Fi, ensure that your Wi-Fi router or access point is turned on and accessible.
Verify network credentials and reupload the Thing sketch
The sketch the device is running needs to be configured for Arduino Cloud. This happens automatically when you add and use your device with Arduino Cloud. If a different sketch is uploaded to the device, it will not connect to Arduino Cloud.
You can ensure that your device is running the right sketch by reuploading the Cloud sketch from the Thing:
-
Find the Network section on the device page:
-
If a network has been configured, it will display the network name.
-
If a network has not been configured, it will display the network type.
-
-
Select the network name or type to configure the credentials.
-
If prompted, create or associate an Thing to your device.
-
If prompted, select an update method and connect your board.
-
Configure your network credentials:
- Wi-Fi: Enter your Wi-Fi name (SSID) and password (encryption key).
- ESP32/ESP8266: Use the secret key that was provided when adding the device. If you don’t know your secret key, delete your device and add it again to get a new key.
- Arduino device with LoRa®: The credentials are added automatically when you configure your device. To reset the credentials, delete your device and add it again.
-
One of the following will happen:
-
The network credentials will immediately be updated and you’ll return to the device page.
-
A manual sketch upload will be required to update the credentials.
If prompted, upload the sketch to update the network credentials on your device.
-
Note
Make sure the name (also called SSID) and password (also called encryption key or just key) are correct. The password can be revealed by clicking the eye symbol. If you don’t know your network name or password, contact your network administrator or the manufacturer of your Wi-Fi access point. If your device has a secret key, make sure it’s entered correctly (if you’re unsure, remove and re-add the device to generate a new key).
Check your network settings
A home network with a default configuration will usually not prevent any Arduino Cloud connections.
Learn how to configure your network for Arduino Cloud
Check the serial output
Connect to your device via USB and read the serial output for additional information:
- Open Arduino IDE or Arduino Cloud Editor.
- Connect your device to your computer.
- Select your device in the editor.
- Open the Serial Monitor.
- Read the output to better understand what happens as your device tries to connect to Arduino Cloud.
- If your device is not sending any serial output, try pressing the reset button on your device to restart the sketch. If you still don’t see any output, the device may not be running the Cloud sketch. In that case, verify your network credentials and reupload the Thing sketch.
Delete the device
Fully delete the device, then add it as a new device.
- Delete the device from Arduino Cloud.
- Add the device to Arduino Cloud again.
- Optionally, associate the Thing that was linked to the device.