Let an AI model use a real iPhone with a $7 ESP32: AirPlay eyes, USB HID hands, any OpenAI-compatible vision model. No Mac, no developer account, no jailbreak.
// Board settings in NVS and the Wi-Fi link: SoftAP by default (random credentials made once),
// optional station mode written over BLE. A build with -DSTA_FROM_SECRETS=1 boots in station
// mode with WIFI_SSID / WIFI_PASS from the git-ignored secrets.h (for testing from a Mac).
#pragma once
#include <Arduino.h>
void net_begin();
void net_poll(); // call from loop(): applies a pending `net` write
String net_json(); // value of the `net` characteristic
void net_request(const String &json); // `net` write; applied by net_poll()
const char *net_mode(); // "ap" | "sta" | "none" (station not connected)
String net_ip();
int net_peers(); // stations on our SoftAP, or 1 when connected as a station
bool net_up(); // has an IP address
bool net_coex(const String &pref); // Wi-Fi/BLE radio share: "bt" | "balance" (boot default) | "wifi"
const char *net_coex_mode();
// AirPlay settings (take effect on the next boot of the receiver)
uint16_t cfg_width();
uint16_t cfg_height();
uint8_t cfg_fps();
void cfg_set_res(uint16_t w, uint16_t h);
void cfg_set_fps(uint8_t fps);
void cfg_ed25519_seed(uint8_t seed[32]); // created once, stable across boots
String board_suffix(); // "1A2B": last two BT MAC bytes