mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #756] Init SSID & password #633
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#633
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dontsovcmc on GitHub (Oct 18, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/756
Sorry if this question for ESP8266Wifi library, but maybe smbd can helps me:
I need to initialise SSID and password when first turn on firmware. I try to read configuration from EEPROM and see nothing - I want to fill SSID & password that time.
As I see this is 'wifi_station_set_config' function in user_interface.h arduinoespressif8266 framework..
It helps to test devices faster. Thanks a lot!
@tablatronix commented on GitHub (Oct 18, 2018):
Initialize for real, or to a var, or input?
Begin(ssid,pass) is all you gotta do. There might be a build flag, but I do not recall seeing one.
If you want to write directly to flash , I guess thats an option too but not easy.
@dontsovcmc commented on GitHub (Oct 19, 2018):
Yes, write to flash.
first turn on:
ESP read ssid & password and connect to wifi.
I don"t want to turn on ConfigPortal for write default settings.
@tablatronix commented on GitHub (Oct 19, 2018):
That is what begin(ssid,pass) does by default
@dontsovcmc commented on GitHub (Nov 9, 2018):
In my task, I initialise settings and run. So I think that call:
WiFi.begin(VALUE(SSID_NAME), VALUE(SSID_PASS), 0, NULL, false);before
WiFi.begin();is better thanWiFi.begin(VALUE(SSID_NAME), VALUE(SSID_PASS));VALUE macro to convert compile definition variable value to string:
platfomio.ini piece: