Simple example in Nim with wifi on ESP32 on FreeRTOS & LwIP.
Install and configure ESP-IDF. Currently v4.1 is the default supported version for Nesper currently.
Then:
git clone https://github.com/elcritch/nesper
cd esp-idf-examples/simplewifi/
. $ESP_IDF_DIR/export.sh # source esp-idf
Build Nim project:
export WIFI_SSID="[SSID]"
export WIFI_PASSWORD="[PASSWORD]"
make
This compiles the Nim code and updates the ESP-IDF project files. You can then compile the ESP-IDF build by one of:
idf.py build
make
This will build the project. Next use idf.py to flash and monitor:
idf.py -p [port] flash
idf.py -p [port] monitor