YFROBOT创客社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9874|回复: 8
打印 上一主题 下一主题

ESP8266 core for Arduino应用:远程遥控LED 基于yeelink云平台(无需连接其他控制板)

[复制链接]

该用户从未签到

楼主
发表于 2016-5-19 20:11:17 | 显示全部楼层
Arduino:1.6.9 (Windows 7), 开发板:"Arduino Nano, ATmega328"

C:\Users\Administrator\AppData\Local\Temp\HZ$D.283.2145\HZ$D.283.2146\remoteSwitch\remoteSwitch.ino:14:16: warning: overflow in implicit constant conversion [-Woverflow]

int deviceId = 347973;

                ^

C:\Users\Administrator\AppData\Local\Temp\HZ$D.283.2145\HZ$D.283.2146\remoteSwitch\remoteSwitch.ino:15:16: warning: overflow in implicit constant conversion [-Woverflow]

int sensorId = 389020;

                ^

remoteSwitch:17: error: 'WiFiClient' does not name a type

WiFiClient client;

^

C:\Users\Administrator\AppData\Local\Temp\HZ$D.283.2145\HZ$D.283.2146\remoteSwitch\remoteSwitch.ino: In function 'void setup()':

remoteSwitch:24: error: 'WiFi' was not declared in this scope

   WiFi.mode(WIFI_AP_STA);                 //set work mode:  WIFI_AP /WIFI_STA /WIFI_AP_STA

   ^

remoteSwitch:24: error: 'WIFI_AP_STA' was not declared in this scope

   WiFi.mode(WIFI_AP_STA);                 //set work mode:  WIFI_AP /WIFI_STA /WIFI_AP_STA

             ^

remoteSwitch:36: error: 'WL_CONNECTED' was not declared in this scope

   while (WiFi.status() != WL_CONNECTED) {

                           ^

C:\Users\Administrator\AppData\Local\Temp\HZ$D.283.2145\HZ$D.283.2146\remoteSwitch\remoteSwitch.ino: In function 'void loop()':

remoteSwitch:50: error: 'client' was not declared in this scope

   if (!client.connect(host, tcpPort)) {

        ^

remoteSwitch:63: error: 'client' was not declared in this scope

   client.print(String("GET ") + url + " HTTP/1.1\r\n" +

   ^

exit status 1
'WiFiClient' does not name a type

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
回复 支持 反对

使用道具 举报

该用户从未签到

沙发
发表于 2016-5-19 20:12:47 | 显示全部楼层
上面错误是什么意思啊,求解答!
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋|联系我们|YFROBOT ( 苏ICP备20009901号-2  

GMT+8, 2024-5-2 16:37 , Processed in 0.045499 second(s), 23 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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