Ldufan / ESP8266_Heweather

Arduino开发平台使用ESP8266获取和风天气的第三方库。
GNU General Public License v3.0
34 stars 16 forks source link

运行example程序报错 #3

Open laningya opened 1 year ago

laningya commented 1 year ago

报错结果如下

C:\Users\61052\Documents\Arduino\libraries\ESP8266_Heweather-master\src\WeatherNow.cpp: In member function 'bool WeatherNow::get()':
C:\Users\61052\Documents\Arduino\libraries\ESP8266_Heweather-master\src\WeatherNow.cpp:21:14: error: control reaches end of non-void function [-Werror=return-type]
   21 |   HTTPClient https;
      |              ^~~~~
C:\Users\61052\Documents\Arduino\libraries\ESP8266_Heweather-master\src\WeatherForecast.cpp: In member function 'bool WeatherForecast::get()':
C:\Users\61052\Documents\Arduino\libraries\ESP8266_Heweather-master\src\WeatherForecast.cpp:15:81: error: control reaches end of non-void function [-Werror=return-type]
   15 |   std::unique_ptr<BearSSL::WiFiClientSecure>client(new BearSSL::WiFiClientSecure);
      |                                                                                 ^
C:\Users\61052\Documents\Arduino\libraries\ESP8266_Heweather-master\src\AirQuality.cpp: In member function 'bool AirQuality::get()':
C:\Users\61052\Documents\Arduino\libraries\ESP8266_Heweather-master\src\AirQuality.cpp:17:81: error: control reaches end of non-void function [-Werror=return-type]
   17 |   std::unique_ptr<BearSSL::WiFiClientSecure>client(new BearSSL::WiFiClientSecure);
laningya commented 1 year ago

运行环境: OS:windows 10 IDE: Arduino1.8.19

bh3dkn commented 1 year ago

解决了吗?我也是