esp32_sigrok icon indicating copy to clipboard operation
esp32_sigrok copied to clipboard

Provisioning of wifi to allow prebuilt binary

Open Ebiroll opened this issue 5 years ago • 2 comments

Try to get a simplified input of SSID and password to allow a prebuilt binary

https://github.com/espressif/esp-idf/blob/master/examples/provisioning/legacy/console_prov

Ebiroll avatar Jun 09 '20 09:06 Ebiroll

Can you try this: https://docs.platformio.org/en/latest/projectconf/section_env_build.html

[env:string_defines]
build_flags =
  -DHELLO="World!"
  '-DWIFI_PASS="My password"'
  ; Password with special chars: My pass'word
  -DWIFI_PASS=\"My\ pass\'word\"

And probably in code

#ifndef variable then assign default value

saikek avatar Jun 11 '20 06:06 saikek

Other option is to have USER_CONFIG file that users can update. Anyone who forks repo and edits this file in github would have firmware artifact built by actions.

saikek avatar Jun 11 '20 06:06 saikek