Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 822 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 822 Bytes

Nim ESP32 - Simple Wifi

Simple example in Nim with wifi on ESP32 on FreeRTOS & LwIP.

Building Example

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