Skip to content

WiFi_portal.ino content of Preferences.h #3

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

Closed
mikekgr opened this issue Aug 16, 2017 · 5 comments
Closed

WiFi_portal.ino content of Preferences.h #3

mikekgr opened this issue Aug 16, 2017 · 5 comments

Comments

@mikekgr
Copy link

mikekgr commented Aug 16, 2017

Dear Sir,
I am looking at your fine WiFi_portal.ino example, but I am not sure what should the content for Preferences.h
Can you give me an example?

Thanks and Best Regards,
Mike Kranidis

@copercini
Copy link
Owner

Preferences.h is a default library from Arduino ESP32 core. You can have it updating your core version to the last: https://github.com/espressif/arduino-esp32/blob/master/doc/windows.md#how-to-update-to-the-latest-code

The contend inside it will be your ssid and password after you open the portal and insert it into

@mikekgr
Copy link
Author

mikekgr commented Aug 16, 2017

Dear frient,
I am not very experienced with the ESP32 Core but I have updated.
When I am trying to compile your example, I am gettig the following errors:
E:\ARDUINO_ESP_DEV\arduino-1.8.3\portable\sketchbook\WiFi_portal.ino\WiFi_portal.ino.ino: In function 'void wifiOnDisconnect()':

WiFi_portal.ino:122: error: 'wifiSSID' was not declared in this scope

WiFi.begin(wifiSSID.c_str(), wifiPassword.c_str());

          ^

WiFi_portal.ino:122: error: 'wifiPassword' was not declared in this scope

WiFi.begin(wifiSSID.c_str(), wifiPassword.c_str());

                            ^

Multiple libraries were found for "WiFi.h"
Used: E:\ARDUINO_ESP_DEV\arduino-1.8.3\hardware\espressif\esp32\libraries\WiFi
Not used: E:\ARDUINO_ESP_DEV\arduino-1.8.3\libraries\WiFi
exit status 1
'wifiSSID' was not declared in this scope

Does make any sense to you?
Again thanks!

copercini added a commit that referenced this issue Aug 16, 2017
@copercini
Copy link
Owner

@mikekgr
Copy link
Author

mikekgr commented Aug 16, 2017

Yes, the above version can be complied without any problem.
Thanks a lot for your fine support!

@copercini
Copy link
Owner

Fixed!

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