aruduino编译时出现这个,怎么解决呀求救大佬,M5stack-timer-cam-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 482|回复: 0

[未解决] aruduino编译时出现这个,怎么解决呀求救大佬,M5stack-timer-cam

[复制链接]
发表于 2022-1-18 20:10 | 显示全部楼层 |阅读模式

In file included from E:\SWC\arduino-exercise\ESP32_WiFi_cam_upload_0513\ESP32_WiFi_cam_upload_0513.ino:50:0:
F:\arduino\arduino\arduino-1.8.13\libraries\blynk-library-master\src/BlynkSimpleEsp32.h: In member function 'void BlynkWifi::connectWiFi(const char*, const char*)':
F:\arduino\arduino\arduino-1.8.13\libraries\blynk-library-master\src/BlynkSimpleEsp32.h:47:14: error: 'class WiFiClass' has no member named 'mode'
         WiFi.mode(WIFI_STA);
              ^
F:\arduino\arduino\arduino-1.8.13\libraries\blynk-library-master\src/BlynkSimpleEsp32.h:47:19: error: 'WIFI_STA' was not declared in this scope
         WiFi.mode(WIFI_STA);
                   ^
F:\arduino\arduino\arduino-1.8.13\libraries\blynk-library-master\src/BlynkSimpleEsp32.h:49:34: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
             WiFi.begin(ssid, pass);
                                  ^
In file included from E:\SWC\arduino-exercise\ESP32_WiFi_cam_upload_0513\ESP32_WiFi_cam_upload_0513.ino:48:0:
F:\arduino\arduino\arduino-1.8.13\libraries\WiFi\src/WiFi.h:79:9: note:   initializing argument 1 of 'int WiFiClass::begin(char*, const char*)'
     int begin(char* ssid, const char *passphrase);
         ^
In file included from E:\SWC\arduino-exercise\ESP32_WiFi_cam_upload_0513\ESP32_WiFi_cam_upload_0513.ino:50:0:
F:\arduino\arduino\arduino-1.8.13\libraries\blynk-library-master\src/BlynkSimpleEsp32.h:51:28: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
             WiFi.begin(ssid);
                            ^
In file included from E:\SWC\arduino-exercise\ESP32_WiFi_cam_upload_0513\ESP32_WiFi_cam_upload_0513.ino:48:0:
F:\arduino\arduino\arduino-1.8.13\libraries\WiFi\src/WiFi.h:60:9: note:   initializing argument 1 of 'int WiFiClass::begin(char*)'
     int begin(char* ssid);
         ^
E:\SWC\arduino-exercise\ESP32_WiFi_cam_upload_0513\ESP32_WiFi_cam_upload_0513.ino: In function 'void setup()':
ESP32_WiFi_cam_upload_0513:132:25: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
    WiFi.begin(ssid, pass);
                         ^
In file included from E:\SWC\arduino-exercise\ESP32_WiFi_cam_upload_0513\ESP32_WiFi_cam_upload_0513.ino:48:0:
F:\arduino\arduino\arduino-1.8.13\libraries\WiFi\src/WiFi.h:79:9: note:   initializing argument 1 of 'int WiFiClass::begin(char*, const char*)'
     int begin(char* ssid, const char *passphrase);
         ^
exit status 1
invalid conversion from 'const char*' to 'char*' [-fpermissive]


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 15:46 , Processed in 0.071012 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表