// Firmware updates. The server hands out an OTA pointer in the heartbeat; the device pulls the binary over HTTPS
// into the inactive app partition and reboots into it. Needs a partition scheme with two OTA slots
// (Tools > Partition Scheme > "Default 4MB with spiffs" or any "OTA" scheme).
#pragma once
#include <Arduino.h>

namespace ota {
  void beginLan(const String& hostname);   // optional ArduinoOTA for development
  void loopLan();
  bool pull(const String& url);            // returns only on failure; success reboots
}
