Device Registration
Add new devices to your aREST account.
Adding a New Device
To register a new device from the dashboard:
- Go to Devices in the sidebar
- Click the Add Device button
- Fill in the device details (see below)
- Click Register
- Copy your credentials
Device Details
Device Name
A friendly name for your device. Use something descriptive like "Living Room Thermostat" or "Garden Sensors".
Device ID
A unique identifier for your device. Use lowercase letters, numbers, and underscores. Example: "living_room_01".
Hardware Type
Select your board: ESP32, ESP8266, Arduino (with WiFi/Ethernet shield), or Raspberry Pi.
Description (Optional)
Add notes about the device's purpose, location, or connected sensors.
Your Credentials
After registration, you'll receive credentials to configure your device:
Device ID
The unique ID you entered. Used to identify your device in the cloud.
API Key
A secret key that authenticates your device. Keep this secure!
MQTT Broker
The server address your device connects to: mqtt.arest.io on port 1883.
Important: The API Key is only shown once! Copy it immediately and store it securely. If you lose it, you'll need to regenerate a new one.
Configuring Your Device
After getting your credentials, update your device's firmware:
- Open the aREST cloud example sketch in Arduino IDE
- Enter your WiFi network name and password
- Enter your Device ID from the dashboard
- Enter your API Key from the dashboard
- Upload the sketch to your device
- Check Serial Monitor for "Connected to MQTT" message
Once connected, your device will appear as "Online" in the dashboard within a few seconds.
Managing API Keys
If you need to regenerate an API key:
- Go to the device's settings page
- Click Regenerate API Key
- Confirm the action
- Copy the new key and update your device firmware
Warning: Regenerating the API key will immediately disconnect your device. You'll need to re-flash it with the new key.
Troubleshooting
Device won't connect
- Double-check WiFi credentials
- Verify Device ID matches exactly (case-sensitive)
- Make sure the API Key has no extra spaces
- Check that port 1883 isn't blocked by your network
Device shows offline after working
- Check if the device lost power
- Verify WiFi network is still available
- Try resetting the device