Skip to content

Development

Dennis Boldt edited this page May 23, 2020 · 9 revisions

Development

Create a new configuration

  • config.h
    • Add config variable to Config-Struct
  • config.ino
    • Add new variable to loadConfiguration
    • Add new variable to saveConfiguration
    • Add new variable to printConfiguration
  • configServer.h
    • Add new variable to HTML template
  • configServer.ino
    • Add new variable to the corresponding handler function, to save it
  • Use the new config variable in the code

Flash with esptool (Ubuntu)

  • Install esptool:
    git clone [email protected]:espressif/esptool.git
    cd esptool/
  • Download the newest release.
  • Connect a microUSB cable directly to the ESP32 (the USB-C port at the case is only for charging the battery)
  • Detect the correct port:
    ls /dev/ttyUSB*
  • Run the flash command:
    ./esptool.py \
      --chip esp32 \
      --port /dev/ttyUSB0 \
      --baud 921600 \
      --before default_reset \
      --after hard_reset write_flash \
      0x10000 ~/Download/OpenBikeSensorFirmware.ino.esp32.bin
Clone this wiki locally