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

Wifi inop #10

Closed
helo-head opened this issue Dec 28, 2020 · 1 comment
Closed

Wifi inop #10

helo-head opened this issue Dec 28, 2020 · 1 comment

Comments

@helo-head
Copy link

Using the Arduino IDE with the latest ESP32 Package (versions 1.0.4 thru 1.0.5 rc4) and the current version of M5StickC-Plus library (0.1) I have been struggling to determine why the wifi does not work on M5StickC-Plus devices. In each case WiFi.status() returns WL_NO_SHIELD. I tested the code on two different devices and I have noted others reporting the same issue.

The code in questions works fine on a M5StickC device so it would appear to be something specific to the Plus devices.

If you have any ideas on how to isolate this issue we would be appreciative.

@helo-head
Copy link
Author

Just thought I would pass along a strange solution to an even stranger problem with M5Stickc Plus devices.

Issue Resolved -

There appears to be a bug in the Arduino IDE related to ESP32. I determined that the IDE was using the wrong WiFi.h which was preventing me from using wifi on my M5Stickc Plus. After several hours of troubleshooting I solved the problem by changing the reference from <Wifi.h> to "Wifi.h" which caused the compiler to search for the header. The compiler warned me there were two Wifi.h files and stated it was going to use the ESP32 version which is what I wanted to begin with. The newly compiled code worked and as such I I changed "Wifi.h" back to <Wifi.h> and its continued to work ever since.

I cannot for the life explain why the compiler was was using the wrong Wifi.h but as rule 25 says never argue with success. YAll my nework code now seems to work with no changes. Im currently using ESP32 V1.0.5 rc4 and M5Stickc Plus library version 0.1

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

1 participant