'BlinkerAliGenie' was not declared in this scope怎么解决-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1567|回复: 1

[已解答] 'BlinkerAliGenie' was not declared in this scope怎么解决

[复制链接]
发表于 2021-6-5 19:04 | 显示全部楼层 |阅读模式

未命名1622890642.png
Arduino:1.8.9 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

D:\程序\sketch_jun05a\sketch_jun05a.ino: In function 'void miotPowerState(const String&)':

sketch_jun05a:36:7: error: 'BlinkerAliGenie' was not declared in this scope

sketch_jun05a:37:7: error: expected ';' before 'BlinkerAliGenie'

sketch_jun05a:47:7: error: 'BlinkerAliGenie' was not declared in this scope

D:\程序\sketch_jun05a\sketch_jun05a.ino: In function 'void miotQuery(int32_t)':

sketch_jun05a:23:12: error: 'D5' was not declared in this scope

D:\程序\sketch_jun05a\sketch_jun05a.ino:59:19: note: in expansion of macro 'PM'

sketch_jun05a:60:5: error: 'BlinkerAliGenie' was not declared in this scope

sketch_jun05a:64:5: error: 'BlinkerAliGenie' was not declared in this scope

sketch_jun05a:67:3: error: 'BlinkerAliGenie' was not declared in this scope

D:\程序\sketch_jun05a\sketch_jun05a.ino: In function 'void heartbeat()':

sketch_jun05a:23:12: error: 'D5' was not declared in this scope

D:\程序\sketch_jun05a\sketch_jun05a.ino:92:19: note: in expansion of macro 'PM'

D:\程序\sketch_jun05a\sketch_jun05a.ino: In function 'void setup()':

sketch_jun05a:23:12: error: 'D5' was not declared in this scope

D:\程序\sketch_jun05a\sketch_jun05a.ino:105:11: note: in expansion of macro 'PM'

D:\程序\sketch_jun05a\sketch_jun05a.ino: In function 'void loop()':

sketch_jun05a:23:12: error: 'D5' was not declared in this scope

D:\程序\sketch_jun05a\sketch_jun05a.ino:127:23: note: in expansion of macro 'PM'

exit status 1
'BlinkerAliGenie' was not declared in this scope

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

怎么办大神
发表于 2021-6-6 00:32 | 显示全部楼层
先看懂社区教程,并测试理解例程
https://www.arduino.cn/thread-104162-1-1.html
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-28 12:48 , Processed in 0.076174 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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