esp32-c3开发板使用blinker编译失败
很早就花13.9买了个esp32-c3开发板,没有串口的好像只要9.9,可谓十分划算,先看下报错
这是用旧版也就是我一直用的arduino ide的报错
后来升级成2.0后是这个报错
In file included from d:\Arduino\libraries\Blinker\src\modules\painlessMesh\painlessMesh.h:29,
from d:\Arduino\libraries\Blinker\src\modules\painlessMesh\painlessMeshConnection.cpp:10:
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:
In member function ‘void painlessmesh::wifi::Mesh::eventHandleInit()’:
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:262:22:
error: ‘SYSTEM_EVENT_SCAN_DONE’ is not a member of ‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_SCAN_DONE);
^~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:271:22:
error: ‘SYSTEM_EVENT_STA_START’ is not a member of ‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_START);
^~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:285:22:
error: ‘SYSTEM_EVENT_STA_DISCONNECTED’ is not a member of
‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_DISCONNECTED);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:296:22:
error: ‘SYSTEM_EVENT_STA_GOT_IP’ is not a member of
‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\Arduino\libraries\Blinker\src\modules\painlessMesh\painlessMeshSTA.cpp:13:
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:
In member function ‘void painlessmesh::wifi::Mesh::eventHandleInit()’:
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:262:22:
error: ‘SYSTEM_EVENT_SCAN_DONE’ is not a member of ‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_SCAN_DONE);
^~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:271:22:
error: ‘SYSTEM_EVENT_STA_START’ is not a member of ‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_START);
^~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:285:22:
error: ‘SYSTEM_EVENT_STA_DISCONNECTED’ is not a member of
‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_DISCONNECTED);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:296:22:
error: ‘SYSTEM_EVENT_STA_GOT_IP’ is not a member of
‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\Arduino\libraries\Blinker\src\modules\painlessMesh\wifi.cpp:2:
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:
In member function ‘void painlessmesh::wifi::Mesh::eventHandleInit()’:
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:262:22:
error: ‘SYSTEM_EVENT_SCAN_DONE’ is not a member of ‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_SCAN_DONE);
^~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:271:22:
error: ‘SYSTEM_EVENT_STA_START’ is not a member of ‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_START);
^~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:285:22:
error: ‘SYSTEM_EVENT_STA_DISCONNECTED’ is not a member of
‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_DISCONNECTED);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:296:22: error: ‘SYSTEM_EVENT_STA_GOT_IP’ is not a member of ‘arduino_event_id_t’
WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);
^~~~~~~~~~~~~~~~~~~~~~~
解决
本来以为是blinker的问题,还提了issue,最后告诉我没有问题,我就搜索这个“arduino_event_id_t”然后升级了一下自带的库,竟然就可以了,建议时刻保持库最新,主要是这个arduino库全是github的非常难熬,挂梯子也不行