Just playing around with esp-homekit and a breadboard.
Breadboard has a reed switch and a DHT11 temperature sensor.
- Initialize and sync all submodules (recursively):
git submodule update --init --recursive
- Remove 2 files that are not needed:
rm components/homekit/src/mdnsresponder.*
- Copy wifi.h.sample -> wifi.h and edit it with correct WiFi SSID and password.
- Install esp-idf by following instructions on esp-idf project page. At the end you should have xtensa-esp32-elf toolchain in your path and IDF_PATH environment variable pointing to esp-idf directory.
- Configure project:
make menuconfig
There are many settings there, but at least you should configure "Serial flasher config -> Default serial port". Also, check "Components -> HomeKit" menu section.
- Build example:
make all
- To prevent any effects from previous firmware (e.g. firmware crashing right at start), highly recommend to erase flash:
make erase_flash
- Upload firmware to ESP32:
make flash monitor
To exit the monitor, simply press CONTROL + ]