mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-22 14:48:04 +08:00
511c9a6d4a
PUBLISHED_FROM=0e407a2fb328107540d753123fe027f43860d0ef |
||
---|---|---|
.. | ||
main | ||
Makefile | ||
Makefile.build | ||
README.md | ||
sdk.version |
This is a Mongoose "Hello, world" that can be compiled under Espressif IoT Development Framework for ESP32
It connects to WiFi network and serves a "hello world" page.
Most of the the boilerplate comes from project_template with minimal changes.
For building the example, you need to have Docker and use our pre-built SDK container. To build just run in the example directory
$ make
Note: before building, change WIFI_SSID
and WIFI_PASS
macros in main/main.c file
Once built, use esptool for flashing
$ python esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -u --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 build/bootloader/bootloader.bin 0x10000 build/esp32_idf.bin 0x8000 build/partitions_singleapp.bin