Update an ESP32 app over Wi-Fi

Send a new LED pattern to an ESP32-C6 over the air and check which build boots.

Guided walkthrough·Intermediate·3 min read
Requirements and learning goals

Before you start

  • ESP32-C6-DevKitC-1 running the first firmware lesson's native NeoPixel app
  • The same project and Wendy CLI on your computer
  • A shared Wi-Fi network and a USB data cable

You will be able to

  • Deploy a native app to the board's Wi-Fi address
  • Identify the running build from its LED pattern and logs

Your board already cycles through red, green, blue, and off. You'll send it a build that adds a yellow flash, with the board powered from a wall adapter. receives the app over Wi-Fi and writes it into the inactive app slot. Once the board validates the image, it selects that slot for the next boot. The bootloader and partition table stay in place.

1. Find your board on Wi-Fi

Start with the board and project from your first ESP32 firmware. If the board still needs Wi-Fi, connect its native USB port to your computer and run wendy device wifi connect. Select the board, choose the network your computer uses, and enter the Wi-Fi password when prompted.

Power the board from a wall adapter so the USB data cable is disconnected from your computer. Check that the old LED pattern returns, then run:

wendy discover

Find the board by name in Nearby. Wait until its Type includes LAN, then press q to leave discovery.

wendy device info

Select the same board with the arrow keys and press Enter. Look for Native Apps: yes. If this is a fresh board, complete the Wendy Lite installation and the first firmware lesson before continuing.

2. Add a yellow flash

In the NeoPixel project's main/main.c, insert this entry immediately before the "off" entry in COLOR_STEPS. Red and green together produce yellow. The example prints each entry's name when it shows the color.

{"yellow-ota-v2", CONFIG_NEOPIXEL_BRIGHTNESS, CONFIG_NEOPIXEL_BRIGHTNESS, 0},

From the project directory, run:

wendy run

Choose your board in the device picker. The CLI builds the native app, sends it over Wi-Fi and waits for the board to restart.

Expected result

Watch one full cycle. A yellow flash now follows blue, and the terminal prints Color: yellow-ota-v2 at that step. Disconnect power after you see the new sequence. Reconnect it to the wall adapter and check that yellow returns. These checks identify the app that booted, even if the Wendy Lite version shown by device info stayed the same.

Troubleshooting

If the transfer or reconnect fails, watch the LED for a full cycle first. A yellow flash means the new build started even if the computer lost contact. Run wendy discover again. If the board never shows LAN, check that both devices use the same local network and that it allows Wi-Fi devices to reach one another.

To inspect the board over USB, reconnect its native USB port to your computer. Run wendy device info and select your board when its row shows USB. Then run wendy device logs, choose the same board, and watch the color names to see which pattern is running.

To restore the old pattern, press Ctrl+C to exit the logs, remove the yellow entry, and run wendy run from the project directory. Select the same board and check that blue goes straight to off again.

Can you do each of these?

  • Deploy a native app to the board's Wi-Fi address
  • Identify the running build from its LED pattern and logs
Previous: Install Wendy Lite on your ESP32
All lessons in this topic
  1. 1. Install Wendy Lite on your ESP32
  2. 2. Update an ESP32 app over Wi-Fi
  3. 3. Find your ESP32 on Wendy Net
  4. 4. Use ESP32 sensors from Linux and ROS 2
  5. 5. Run your first ESP32 app
  6. 6. Read a button, sample voltage, and drive PWM
  7. 7. Connect ESP32 sensors with I²C, SPI, and UART
  8. 8. Handle ESP32 interrupts and detect stalled work
  9. 9. Build an ESP32 alarm that tolerates noisy readings

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.