aboutsummaryrefslogtreecommitdiff

iot-onair-sign

ESP32 firmware project for an on-air sign controlled from a smartphone over BLE.

Dependencies

Required tools: - esp-idf (v5.x+) - direnv

Note: ESP-IDF provides the required build toolchain (including CMake, Ninja, and compiler tools), so these do not need separate system installation.

This repo includes a .envrc file that loads ESP-IDF for this project only.

  1. Install and enable direnv in your shell.
  2. From the project root, allow the environment once:
direnv allow

After that, entering this directory will automatically load ESP-IDF variables.

Build

  1. Enter the project directory (direnv will auto-load the environment).
  2. Set the target (first time only):
idf.py set-target esp32
  1. Build:
idf.py build

Flash and monitor

idf.py -p /dev/ttyUSB0 flash monitor

(Adjust serial port as needed.)

Run unit tests (host)

cmake -S host_tests -B build_host_tests
cmake --build build_host_tests
ctest --test-dir build_host_tests --output-on-failure