How OTAdrive Works

OTAdrive is a special tool let developers/producers to update and control IoT devices through internet. It lets you to group your devices and choose separate firmware version and configuration for each group. OTAdrive provides an administration panel to you and multiple APIs to your devices. The main API is firmware update API let devices to get newer version of firmware remotely We start out tutorials by describe how to OTA update an ESP32/ESP8266 device through OTAdrive system.

ESP8266 HTTP server

Quick start

Here you can see the most simple program to enable OTA functionality on ESP32/ESP8266. OTAdrive acts as an OTA HTTP server and it is fully compatible with ESP8266 and ESP32. You can Access All ESP32 OTA Examples and All ESP8266 OTA Examples.
Please first follow the instructions to install the OTAdrive Arduino C++ library.

#include <Arduino.h>
#include <otadrive_esp.h>

void setup()
{
  OTADRIVE.setInfo("08ef4e5f-f062-40bb-b21d-fd7f13124609", "1.0.0");
  Serial.begin(115200);
  
  WiFi.begin("YOUR WIFI SSID", "YOUR WIFI PASSWORD");
  pinMode(LED_BUILTIN, OUTPUT);
}

void sync_task()
{
  // a simple timing mechanism to reduce server connectivity
  static int sync_timer = 0;
  sync_timer++;
  if (sync_timer < 10)
    return;
  sync_timer = 0;

  if (WiFi.status() != WL_CONNECTED)
    return;

  // do sync and update operations here
  OTADRIVE.updateFirmware();
}

void loop()
{
  digitalWrite(LED_BUILTIN, HIGH);
  delay(200);
  digitalWrite(LED_BUILTIN, LOW);
  delay(200);
  sync_task();
}

Test it

Please follow this tutorial video to see how you can use OTAdrive minimum features.
This example show you how to use OTAdrive to remote update of ESP32