mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1246] I am getting errors while compiling basic example. #1066
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#1066
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 @bkrajendra on GitHub (May 1, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1246
Basic Infos
Hardware
WiFimanager Branch/Release: Master
Esp32:
Hardware: NodeMCUEsp32
Core Version: using latest master from git arduino-esp32
Description
Problem description"
I am getting errors while compiling basic example.
Settings in IDE
Module: NodeMcuESP32
Sketch
The same example compiles ok with esp8266.
@tablatronix commented on GitHub (May 1, 2021):
What esp32 lib version?
@tablatronix commented on GitHub (May 2, 2021):
The arguments were changed for events in new idf, The S2 branch should have a fix already
@bkrajendra commented on GitHub (May 2, 2021):
Yes. Got it working using S2 branch. But still not showing of AP. Need to test more. will get back once I get enough testing.
@rlhelinski commented on GitHub (Sep 10, 2021):
For me, the fix was to revert to version 1.0.6 of the esp32 board package rather than trying to use 2.0.0.
@tablatronix commented on GitHub (Sep 10, 2021):
Can you test the S2 branch, I am about to merge it when I know its not breaking anything, should work for all sdk versions
@rlhelinski commented on GitHub (Sep 10, 2021):
I can try. Is there a way to get a git clone (with a particular branch checked out) in the Arduino IDE?
@tablatronix commented on GitHub (Sep 10, 2021):
Yes of course, but it can be a pain, dont worry about it then.
@CYR15000 commented on GitHub (Oct 30, 2021):
Hi Gentleman,
i have the same problem
Os : MacOs 12.0.1
Arduino IDE : 1.8.16
ESP Library 2.0.0 (test but niet)
ESP Library : DFRobot (test but niet)
ESP : Firebeetle ESP32-E
Error :
iFiManager.cpp: In member function 'void WiFiManager::WiFiEvent(arduino_event_id_t, system_event_info_t)':
/Users/cgironde/Documents/Arduino/libraries/WiFiManager/WiFiManager.cpp:3505:17: warning: comparison between 'enum arduino_event_id_t' and 'enum system_event_id_t' [-Wenum-compare]
if(event == SYSTEM_EVENT_STA_DISCONNECTED){
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
King Regards
@ccadic commented on GitHub (Nov 9, 2021):
I have the issue when trying to compile mainlessmesh on an ESP32S2 dev boartd . The wifi.h complains
In file included from C:\Users\ccadic\Documents\Arduino\libraries\Painless_Mesh\src/painlessMesh.h:22,
from C:\Users\ccadic\Documents\Arduino\libraries\Painless_Mesh\examples\basic\basic.ino:9:
C:\Users\ccadic\Documents\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp: In member function 'void painlessmesh::wifi::Mesh::eventHandleInit()':
C:\Users\ccadic\Documents\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:251:22: error: 'SYSTEM_EVENT_SCAN_DONE' is not a member of 'arduino_event_id_t'
WiFiEvent_t::SYSTEM_EVENT_SCAN_DONE);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\ccadic\Documents\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:260:22: error: 'SYSTEM_EVENT_STA_START' is not a member of 'arduino_event_id_t'
WiFiEvent_t::SYSTEM_EVENT_STA_START);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\ccadic\Documents\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:271:22: error: 'SYSTEM_EVENT_STA_DISCONNECTED' is not a member of 'arduino_event_id_t'
WiFiEvent_t::SYSTEM_EVENT_STA_DISCONNECTED);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\ccadic\Documents\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:281:22: error: 'SYSTEM_EVENT_STA_GOT_IP' is not a member of 'arduino_event_id_t'
WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);
^~~~~~~~~~~~~~~~~~~~~~~
@tablatronix commented on GitHub (Nov 9, 2021):
are you using latest git?
should be fixed in master, ill push a beta right now
@ccadic commented on GitHub (Nov 9, 2021):
yes. latest Painless_Mesh (yesterday's version) latest arduino IDE (yersterday's stable version). Looks like the issue is in wifi.
shall I load the wifimanager from this git ?
@tablatronix commented on GitHub (Nov 9, 2021):
I just pushed v2.0.5-beta
@star297 commented on GitHub (Dec 7, 2021):
Using WiFi events,
Working on version 1.0.6
Get this on version 2.0.1
no matching function for call to 'WiFiClass::onEvent(void (&)(arduino_event_id_t, arduino_event_info_t), system_event_id_t)'Do I just use 1.0.6 until fixed? or is there a different method to use wifi events?
@zekageri commented on GitHub (Mar 8, 2022):
Same problem with etnernet:
Compiler warnings about
comparison between 'enum arduino_event_id_t' and 'enum system_event_id_t'and crash when got an event interrupt.If i replace the system events ( that i used before without problem ) like
SYSTEM_EVENT_ETH_START,SYSTEM_EVENT_ETH_GOT_IPandSYSTEM_EVENT_ETH_DISCONNECTEDwith the newARDUINO_EVENT_ETH_START,ARDUINO_EVENT_ETH_GOT_IPandARDUINO_EVENT_ETH_DISCONNECTEDi also got a crash but different:@tablatronix commented on GitHub (Mar 8, 2022):
There is a check in there to use the correct events, perhaps it is not working on your enviroment?
What version of IDf are you using, are you using arduino ?
@Chicco7 commented on GitHub (Mar 31, 2022):
Hi, about the problem of "onEvent" in the 2.0x framework I found this:
https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/WiFiClientEvents/WiFiClientEvents.ino
Use "ARDUINO_EVENT_WIFI_STA_DISCONNECTED" for the WiFi disconnection event. (Follow the link for the other event).
For me it work fine
@zekageri commented on GitHub (Mar 31, 2022):
It was my bad. Iam using arduino esp32 but i used some old version and
the spinlock_acquirecrash was about some other part of my program. The new events working fine.@zekageri commented on GitHub (Apr 13, 2022):
So. I updated the package and the the ETH events but my esp do not get a gotip event sometimes. It looks like when i perform a software restart, only the connection event fires, but not the gotip event. The esp is connected and got an ip however
@tablatronix commented on GitHub (Apr 13, 2022):
that sounds like the esp32 double hitter bug