My biggest issue when I tried to compile Otso’s code was wrong esp-idf version. The code compiles with v3.1, but not with v4.x version, which gets installed if you clone the code from github. In addition, if you use
--recursive switch when cloning, all those submodules will be in wrong version and checking out esp-idf v3.1 after initialising them won’t downgrade them.
I’m not an expert in this topic, but here is how I finally got esp-idf environment working:
git clone https://github.com/espressif/esp-idf.git cd esp-idf git checkout release/v3.1 git submodule init git submodule update pip install -U -r docs/requirements.txt git describe --tags --dirty -> v3.1.4-55-ge83bdf62c
There was also issues when esp32-ble2mqtt was compiling, but I’ll get back in them later.