Dev.to AI ๐Ÿค– Ai ๐Ÿ‘ 0 ๐Ÿ“– 7 min read

ESP32 Agent Not Showing in iPhone Screen Mirroring? Fixes for No Video, Dead Taps and Missed Taps

You flashed a $7 ESP32-S3 board so an AI agent can see your iPhone's screen and tap it. Now something doesn't work: the board isn't in the Screen Mirroring list, the preview is black, or the agent taps and nothing happen

You flashed a $7 ESP32-S3 board so an AI agent can see your iPhone's screen and tap it. Now something doesn't work: the board isn't in the Screen Mirroring list, the preview is black, or the agent taps and nothing happens.

Almost every one of these comes down to a handful of causes: the wrong board variant, a charge-only cable, a missing antenna, or one iPhone setting. This guide goes symptom by symptom, so you can jump to yours.

It's written for the open-source ESP32 iPhone Agent board used by Manina AI, but most of the checks apply to any setup where an ESP32-S3 acts as an AirPlay receiver plus a USB or Bluetooth mouse for an iPhone.

How the pieces fit (30-second version)

Knowing which link broke makes every fix obvious:

  • Eyes: the board opens its own Wi-Fi hotspot and shows up in the iPhone's Screen Mirroring list as ESP32 Agent. The phone mirrors its screen to the board over that Wi-Fi.
  • Hands: plugged into the iPhone (or paired over Bluetooth), the board is a plain mouse and keyboard. With AssistiveTouch on, a click is a tap and a drag is a swipe.
  • Brain: the iPhone app, or an agent on your computer through the esp32agent CLI.

So: no picture means the Wi-Fi / mirroring link. Picture but no taps means the HID / AssistiveTouch side. Taps in the wrong spot means calibration.

Before anything else: check the hardware

Three things cause most "it's dead" reports:

  1. The board variant. The tested board is the Seeed Studio XIAO ESP32S3, standard version (8 MB flash, 8 MB PSRAM). Sense and Plus are not the tested board. ESP32-S3 boards with a CH340 or CP2102 serial chip are not supported, and neither are ESP32-C3, C6, S2 or the original ESP32.
  2. The cable. It must carry data. A charge-only USB-C cable is the most common reason a board seems dead. Keep it short, about 30 cm.
  3. The antenna. Attach the included Wi-Fi/Bluetooth antenna before pairing. Without it, Bluetooth may not connect at all, or only with the board right beside the phone.

Also confirm the phone: iPhone XS or newer on iOS 18+, or iPhone 8 / X on iOS 16.4+ with TestFlight app 1.0.9+. Lightning iPhones need a Lightning to USB Camera Adapter for a wired setup, or Bluetooth mode with the board on its own power.

Symptom: the installer can't see the board

You open the firmware installer and the board isn't in the USB list, or you get "Failed to connect with the device".

  • Use Chrome or Edge on a computer. The iPhone can't flash the board.
  • Swap the cable for a known-good data cable before trying anything else.
  • Plug in directly, not through a hub, and close other apps that may hold the serial port.
  • If the board already runs the firmware, it may not offer a serial port the installer can use. Unplug it, hold BOOT while plugging it back in, then click Connect board again.

Symptom: "ESP32 Agent" is missing from Screen Mirroring

The receiver only appears when the board is powered and the phone can reach it.

  1. Power. Over USB, the phone powers the board. If nothing happens when you plug in, suspect the cable or, on Lightning phones, the adapter. In Bluetooth mode the board needs its own charger or power bank.
  2. Join the board's hotspot in Settings รขโ€ โ€™ Wi-Fi (it's named ESP32Agent-รขโ‚ฌยฆ). The password is shown in the app; with the CLI and firmware v0.2.3 or later, esp32agent net shows the name and password.
  3. Your phone stays on home Wi-Fi and the hotspot is gone? The board is probably in station mode, where it joins an existing network instead of opening its hotspot. It remembers that mode across restarts and updates, so switch it back in the app.
  4. Using home Wi-Fi on purpose? The board is 2.4 GHz only, and routers with client isolation or blocked mDNS hide it from Screen Mirroring. The hotspot always works, so fall back to it to rule the router out.

Symptom: mirroring says connected, but there's no picture

This one is sneaky. The AirPlay handshake can look healthy while the board never receives video. The board's status can read "ap":"connected" and a screenshot still answers err no video.

  • Mirror from the iPhone, not a Mac. Screen Mirroring from macOS is not supported, and this is exactly what it looks like. Stop mirroring on the Mac and start it from the iPhone the board is plugged into.
  • Keep the iPhone unlocked. Locking stops Screen Mirroring. Raise Auto-Lock for long runs.
  • Switch to another screen and check that the preview follows before you start a task.

If a boot log shows video: no PSRAM for the GOP buffer, the board has no usable PSRAM. That's the wrong variant; use the standard XIAO ESP32S3 with 8 MB PSRAM.

Symptom: the picture freezes, or every step is very slow

A frozen preview, a task that starts with err no video, or runs that repeat the same action were known issues that app 1.0 and board firmware 0.2.2 fix: video now resumes on its own after a reconnect.

  1. Check versions: app in Settings รขโ€ โ€™ About, board firmware in Settings รขโ€ โ€™ Board (update it there if offered).
  2. Stop the task, turn Screen Mirroring off, then pick ESP32 Agent again.
  3. Change screens and confirm the preview follows, then retry.

Video that moves but is very slow often means the app has no Local Network permission, so the picture falls back to Bluetooth. Bluetooth LE carries only about 300รขโ‚ฌโ€œ500 kbps, which caps the mirrored screen at 480รƒโ€”1040 and at most 5 fps. Grant Local Network access and the picture goes back over Wi-Fi.

Symptom: the picture works, but taps do nothing

AssistiveTouch is almost certainly off. Without it, iOS doesn't turn mouse clicks into taps.

Turn on Settings รขโ€ โ€™ Accessibility รขโ€ โ€™ Touch รขโ€ โ€™ AssistiveTouch, keep the pointer visible, and keep the phone in portrait (landscape apps aren't supported yet).

In Bluetooth mode, also pair the board as the iPhone's mouse under AssistiveTouch รขโ€ โ€™ Devices รขโ€ โ€™ Bluetooth Devices. If it was paired before, forget it in Settings รขโ€ โ€™ Bluetooth and pair again.

Symptom: taps land in the wrong place

The mouse pointer is relative, so small misses are normal. Before precise taps, the agent wiggles the pointer, finds it on screen and corrects the miss. If misses are big or consistent:

  1. Calibrate. In the app, complete Let Me Use the Pointer. With the CLI, run esp32agent calibrate (no app needed).
  2. Set Tracking Speed to the middle (Settings รขโ€ โ€™ Accessibility รขโ€ โ€™ Touch รขโ€ โ€™ AssistiveTouch รขโ€ โ€™ Tracking Speed). Near the slow end, iOS speeds up fast pointer moves much more than slow ones, so measurements stop fitting together.
  3. Turn off Pointer Animations in Settings รขโ€ โ€™ Accessibility รขโ€ โ€™ Pointer Control.
  4. Calibrate again after changing these, with the phone in portrait and mirroring on, and don't touch the screen until it finishes.

The app's Settings รขโ€ โ€™ Calibration shows how far the last check tap landed from its target. Under ร‚ยฑ2% of the screen is normal. If it stays at ร‚ยฑ5% or more, it's usually one of the AssistiveTouch settings above.

With the CLI, esp32agent io tap X,Y --aim finds the pointer first and then taps, which helps on small targets.

Symptom: the agent can't reach the model

While the iPhone is on the board's hotspot, it has no Wi-Fi internet. That's by design: mirroring stays local and model requests go over cellular. Make sure cellular data is on and allowed for the app. If you'd rather not use cellular, move the board onto your home Wi-Fi (2.4 GHz) so the phone and board share the router.

Symptom: some screens are black, or text won't type

  • Black screens: iOS doesn't mirror passcode entry, Apple Pay, or DRM-protected video. That's an iOS rule, not a fault.
  • Accents or emoji won't type: keyboard input is ASCII only, one key per character.
  • Can't press volume or power: HOME is the only hardware button the board can press.

Symptom: a run stopped partway

If the board, hotspot or mirroring link drops, the run pauses and resumes from the same step once the link is back. If the phone locked, mirroring stopped: unlock it and resume.

To dig into a bad run, every run is saved on the phone and can be replayed step by step. Open Runs รขโ€ โ€™ the run รขโ€ โ€™ รขโ€นยฏ รขโ€ โ€™ Export trace to get the screenshots and actions as a file you can attach to a bug report.

Quick checklist

Check Fixes
Standard XIAO ESP32S3, 8 MB PSRAM No video, "no PSRAM" boot line
Data cable, short, known-good Board seems dead, installer can't see it
Antenna attached Bluetooth won't pair or only works up close
Phone on the board's hotspot Receiver missing from Screen Mirroring
Mirroring started from the iPhone "Connected" but err no video
AssistiveTouch on, portrait, unlocked Taps do nothing, mirroring stops
Tracking Speed middle, Pointer Animations off, recalibrate Taps land off target
Cellular data on Model can't be reached
Local Network permission Video works but is very slow

Wrap-up

Work from the bottom up: power and cable, then the hotspot and mirroring, then AssistiveTouch, then calibration. Each layer depends on the one before it, so fixing them in order saves a lot of guessing.

The full setup walkthrough with pictures is in the setup guide, and more fixes are on the troubleshooting page. Source is on GitHub under MIT (the AirPlay receiver in the firmware is GPL-3.0).

๐Ÿ“ฐ Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.