Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provisioning of wifi to allow prebuilt binary #10

Open
Ebiroll opened this issue Jun 9, 2020 · 2 comments
Open

Provisioning of wifi to allow prebuilt binary #10

Ebiroll opened this issue Jun 9, 2020 · 2 comments

Comments

@Ebiroll
Copy link
Owner

Ebiroll commented Jun 9, 2020

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 Ebiroll mentioned this issue Jun 9, 2020
@saikek
Copy link
Contributor

saikek commented Jun 11, 2020

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
Copy link
Contributor

saikek commented Jun 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants