Quick Start Guide
Get your first OTA update running in 5 minutes.
Prerequisites
- A Zelta account (sign up at dashboard)
- An embedded device with network connectivity
- Basic familiarity with C programming
Step 1: Create a Product
- Log in to the Zelta Dashboard
- Go to Products and click Add Product
- Enter a name (e.g., "Smart Sensor v2")
- Optionally add a Hardware ID for automatic device matching
Step 2: Generate Signing Keys
Firmware must be signed to prevent unauthorized updates.
- Go to Firmware page
- In the Signing Key section, click Generate Keypair
- Download the private key and store it securely (you'll need this to sign firmware)
- Click Save Public Key to Org to enable signature verification
Step 3: Upload Firmware
- Select your product from the dropdown
- Enter the version number (e.g., "1.0.0")
- Select your firmware binary file (.bin)
- Click Upload & Sign
The firmware will be signed with your private key and uploaded to secure storage.
Step 4: Create an API Key
Devices need an API key to communicate with Zelta.
- Go to API Keys page
- Click Create API Key
- Give it a name (e.g., "Production Devices")
- Copy the key immediately - it won't be shown again!
Step 5: Integrate the SDK
Add the Zelta SDK to your embedded project:
#include "zelta.h"
// Initialize
zelta_config_t config = {
.server_url = "https://your-project.supabase.co/functions/v1",
.api_key = "your-api-key",
.device_id = "device-001",
.current_version = "0.9.0",
.product_id = "your-product-uuid",
};
zelta_init(&config);
// Check for updates
zelta_update_info_t update;
if (zelta_check_update(&update) == ZELTA_UPDATE_AVAILABLE) {
printf("Update available: %s\\n", update.version);
// Download and apply
if (zelta_download_and_apply(&update) == ZELTA_OK) {
// Reboot to new firmware
sys_reboot(SYS_REBOOT_COLD);
}
}
Step 6: Test the Update
- Flash your device with v0.9.0 (or any version lower than uploaded)
- Power on the device and connect to network
- The device will check for updates and find v1.0.0
- Watch the update download and apply
- Check the Dashboard to see the device status update
Next Steps
- Configure the SDK - Customize update behavior
- Firmware Signing - Understand the security model
- Device Management - Monitor your fleet