-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ESP32 Compatability #241
Comments
I'm wondering how much pointing is required. The code is all here, just go for it. I'm fond of this derivation for the reasons given there but you may not like it or prefer to roll your own. |
as far as i can see webserver is not working yet on esp32 so this won't work either i'm afraid good luck and let us know if you get anywhere with it |
@kentaylor nice fork! Some of these are features I have been hoping for. @tzapu thanks for the heads up about webserver, I'll poke around and see what there is to see. |
@tzapu webserver is working on current master. There are not all libs in yet - but I just try to use the webserver yesterday - it worked good. |
Does this work without the DNSServer.h? Where can I find DNSServer.h for esp32? |
it would work without dns server, code would need to be remove in the lib
cheers
… On 3 Feb 2017, at 03:53, Seop Yoon ***@***.***> wrote:
Does this work without the DNSServer.h? Where can I find DNSServer.h for esp32?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#241 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC2FkG6voCJl753kDpzr9znFmLc-ehhYks5rYoiqgaJpZM4Kn5yB>.
|
The WiFiServer.h provided by the arduino-esp32 repo, does not support |
=( |
So if I understand correctly we would need an arduino-esp32 equivalent of "ESP8266WebServer" https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer since "WiFiServer" ist not a full blown HTTP/Webserver. |
It looks like the issue I've referenced above has been resolved. So from what I understand it should now be possible to port (just copy it into the arduino esp32 libs folder) the webserver lib and cosequently the WiFiManager should work. |
has anyone tried this? |
After patching some of the includes to the ESP32 includes i was not able to get the ESP8266Webserver to be happy to much compile errors for me.
|
Has anyone got this working with the esp32? |
@tzapu There is discussion at espressif/arduino-esp32 on how best to merge WebServer and DNSServer libraries. Once that happens, it should be easier to port other libraries such as WiFiManager. |
Libraries for the adventurous. They are good enough for me to port my personal projects to ESP32 but there are TODOs, a patch, and an issue. Be sure to use the esp32 branch. Patch required but not merged. Patch your local fork. UPDATE: Patch merged so git pull. Still a problem but the issue is currently closed. My personal projects are working on ESP32 with these libraries but your mileage may vary. The following are NOT supported by Espressif. |
Hi I'm getting an error message when I'm trying to compile the example : Multiple libraries were found for "WiFi.h" Please advise... |
This is expected and not a problem. When there are include files with the same name in different directories the IDE reports which include it used to build the program. The correct one in this case is the ESP32 version. |
but sketch will not compile because of this conflict.... Interesting, but I don't have this issue compiling ESP32 sample Web server sketch... |
The compile is probably failing for some other reason. The following a successful compile which includes the multiple libraries warning but goes on to build the bin file.
|
WARNING: library DNSServer claims to run on [esp8266] architecture(s) and may be incompatible with your current board which runs on [esp32] architecture(s).
/home/yo/Arduino/hardware/espressif/esp32/tools/sdk/include/lwip/apps/dhcpserver.h:58:5: note: in expansion of macro 'HOST_NAME'
/home/yo/Arduino/hardware/espressif/esp32/tools/sdk/include/lwip/apps/dhcpserver.h:58:5: note: in expansion of macro 'HOST_NAME'
/home/yo/Arduino/hardware/espressif/esp32/tools/sdk/include/lwip/apps/dhcpserver.h:58:5: note: in expansion of macro 'HOST_NAME' |
Looks like you manually installed libraries in the wrong directory. The libraries may not be designed for ESP32. In arduino-1.8.1-linux64.tar.xz, I do not see a webserver library yet your log shows such a library. |
@bbx10 You are amazing! Been waiting for this for months and you've done it all! A BIG shout out to everyone, @bbx10's solution {https://github.com/bbx10/WiFiManager/tree/esp32} works pretty much out of the box! All that is needed is to download and install his custom WebServer {https://github.com/bbx10/WebServer_tng} and DNSServer {https://github.com/bbx10/DNSServer_tng} libs. Pretty much identical functionality (as far as I have tested) with the original ESP8266 WiFiManager, but on the ESP32!! Personally I think this should be shared as much as possible. I am sure there are loads of people interested. @bbx10 Why not turn the esp32 branch into a separate repo? Give it the attention it deserves :) It's certainly worth it and would be great to also have some more details on the work you did to make it compatible. |
@sglvladi Thanks, for the kind words! Ideally, my ESP32 code would be merged into this repo via PR so I am keeping it on a separate branch for now. There is activity to create official Espressif repos for WebServer and, I hope, DNSServer and Hash libraries. This should make it easier for ESP8266 library maintainers to add support for ESP32. |
@bbx10, I have some strange issue with WiFiManager on ESP32. Many times it doesn't save configuration - it takes 3-4 times entering the password.. also, wifiManager.resetSettings(); doesn't work as expected. After reboot device still "remember" old settings... Please advise... Thanks |
I have not had problems saving SSID/password. wifiManager.resetSettings() does not work because of problem with WiFi.disconnect(true) not working. Still waiting for a fix for this. I found if WiFi.disconnect(true) is called after successfully connecting, it does erase the saved SSID/password. |
@bbx10 Michael |
@miknuc SPIFFS is not available on ESP32. For configuration information, I use the ESP32 Preferences library. Similary, if an app uses the ESP8266 EEPROM library, it can be converted to use Preferences. |
i've removed FS related functions from library and esp8266webserver works fine with esp32. will update wifimanager library to see if it works. |
esp32 merged into development! |
DNS Server fixed in ESP32 core! |
@tablatronix what's a stable combination of libraries? I tried a bunch and I'm getting the same errors as @eirikso reported Jan 3 (ESP32 doesn't connect although saved wifi is close-by; only if I hit reset a few times in close succession and get lucky), which you said might be ESP32 lib errors. I get |
There seems to be some instability in esp32, I had issues until I reinit NVS flash. Are you setting a config ? What are you setting? do you have issues with dhcp instead of static ( the config code was recently updated, could be a bug ) eirikso issue is related to dns server, which has since been updated in esp32 core, and is no longer an issue afaik. Create a new issue and provide the issue information requested |
ok that error was a bug, I fixed it, just the debug error itself, also see known issues in #513 |
This issue is about the official development branch with es32 support. |
When this will be available in master branch ? thx |
No idea, when I feel development is done and tested enough |
espressif/arduino-esp32#1393 introduces bugs to esp32 functionality. The symptom is SAVES DO NOT WORK EVER! I have removed persistent disabling for now, which will possibly cause problems with softap staying on after reboots, you might want to make sure you set mode in your user code to prevent this. At this time there is no way to toggle persistent during runtime unless I find a workaround or PR a fix to esp32 if I have time. |
@tablatronix it seams there was a big update today, with regards to WiFi, ESP-IDF and I think they added also WebServer functionality, so that should be a big step forward for general ESP32 support on WiFiManager. |
@Curclamas @tablatronix in this case please instruct me/us what to do, I mean now we are using a webserver unofficial library... |
I will take a look thanks! |
@tablatronix love to hear that! |
Good news the webserver seems to work fine. |
Fixed saving and erasing again |
hi... is there another github address for tzapu_ESP32 or we can use this one? |
when compiling ESP32 is looking for esp8266.h lib and is not finding it so probably it doesn't work |
Develoment branch |
Is this issue still valid? I'm looking into using this for my ESP32. |
I am using the version from the development branch. Works for me.
Niklas Mollenhauer <notifications@github.com> schrieb am Mo., 17. Aug.
2020, 18:23:
… Is this issue still valid? I'm looking into using this for my ESP32.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPEUCLZEA6KCWNJ7H77433SBFKOPANCNFSM4CU7TSAQ>
.
|
Thinking of porting this wonderful library over to the new ESP32 module?
I'd be willing to contribute if you can point me in the right direction.
The text was updated successfully, but these errors were encountered: