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

Connect to wifi problem on ESP32 #79

Open
Tim97Egl opened this issue May 26, 2020 · 4 comments
Open

Connect to wifi problem on ESP32 #79

Tim97Egl opened this issue May 26, 2020 · 4 comments

Comments

@Tim97Egl
Copy link

I have a similar problem like some other users mentioned.
Using the library on an ESP32 the programm stops at:
[connect] Connecting to SSID:

I havent found any solutions to this problem in previous issues. Has anyone used the lib on an ESP32?

@simone1999
Copy link
Collaborator

Hi, have you tried out my fork of the Project?

@Tim97Egl
Copy link
Author

Yes, but it didnt work either. Can you explain, what you have done differently?

@eporocrail
Copy link

In ESP822MQTTMesh.h three lines have to be uncommented and one has to be adapted:

#ifdef ESP32
#include <AsyncTCP.h>
//#include <ESP32Ticker.h>
#include <Ticker.h>
#define USE_WIFI_ONEVENT
#include "WiFiCompat.h"
#else
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <Ticker.h>
#endif

In ESP8266.cpp the following changes have to be made:

//os_sprintf(id, "ChipID:%06X FirmwareID:%04X v%s IP:%s %s", _chipID, firmware_id, firmware_ver, WiFi.localIP().toString().c_str(), meshConnect ? "mesh" : "");

sprintf(id, "ChipID:%06X FirmwareID:%04X v%s IP:%s %s", _chipID, firmware_id, firmware_ver, WiFi.localIP().toString().c_str(), meshConnect ? "mesh" : "");

I remember that another error message occurred but I can not find the spot in the source code.
I just commented the lines out and it is working fine.

@alexmogavero
Copy link
Collaborator

Please have a try also of my fork, see also my pull request #84

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

4 participants