Arduino IDE添加ESPtouch后编译出错-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2037|回复: 1

Arduino IDE添加ESPtouch后编译出错

[复制链接]
发表于 2020-4-8 17:46 | 显示全部楼层 |阅读模式
那位大神帮忙看下原来的程序在Arduino IDE中编译上传都没问题,加了:#define BLINKER_ESP_SMARTCONFIG

后,编译时    Blinker.begin(auth, ssid, pswd); 报错,去掉这行就没问题。编译报错如下:
正在编译项目...
"C:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" "C:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/signing.py" --mode header --publickey "D:\\IOT\\ESP8266\\mh\\ESP01-relay-20200401/public.key" --out "C:\\Users\\mahon\\AppData\\Local\\Temp\\arduino_build_737543/core/Updater_Signing.h"
"C:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\mahon\\AppData\\Local\\Temp\\arduino_build_737543/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "-IC:\\Users\\mahon\\Documents\\Arduino\\libraries\\blinker-library-master\\src" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\libraries\\ESP8266mDNS\\src" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\libraries\\ESP8266WiFi\\src" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\libraries\\ESP8266HTTPClient\\src" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\libraries\\Ticker\\src" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\libraries\\EEPROM" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\libraries\\ESP8266httpUpdate\\src" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\libraries\\ESP8266WebServer\\src" "-IC:\\Users\\mahon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\libraries\\Hash\\src" "C:\\Users\\mahon\\AppData\\Local\\Temp\\arduino_build_737543\\sketch\\ESP01-relay-20200401.ino.cpp" -o "C:\\Users\\mahon\\AppData\\Local\\Temp\\arduino_build_737543\\sketch\\ESP01-relay-20200401.ino.cpp.o"
D:\IOT\ESP8266\mh\ESP01-relay-20200401\ESP01-relay-20200401.ino: In function 'void setup()':

ESP01-relay-20200401:255:35: error: no matching function for call to 'BlinkerESPMQTT::begin(char [13], char [3], char [13])'

     Blinker.begin(auth, ssid, pswd);

                                   ^

D:\IOT\ESP8266\mh\ESP01-relay-20200401\ESP01-relay-20200401.ino:255:35: note: candidate is:

In file included from C:\Users\mahon\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36:0,

                 from D:\IOT\ESP8266\mh\ESP01-relay-20200401\ESP01-relay-20200401.ino:49:

C:\Users\mahon\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:32:14: note: void BlinkerESPMQTT::begin(const char*)

         void begin(const char* _auth)

              ^

C:\Users\mahon\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:32:14: note:   candidate expects 1 argument, 3 provided

使用 0.3.4  版本的库 blinker-library-master 在文件夹: C:\Users\mahon\Documents\Arduino\libraries\blinker-library-master
使用 1.2  版本的库 ESP8266mDNS 在文件夹: C:\Users\mahon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\ESP8266mDNS
使用 1.0  版本的库 ESP8266WiFi 在文件夹: C:\Users\mahon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\ESP8266WiFi
使用 1.2  版本的库 ESP8266HTTPClient 在文件夹: C:\Users\mahon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\ESP8266HTTPClient
使用 1.0  版本的库 Ticker 在文件夹: C:\Users\mahon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Ticker
使用 1.0  版本的库 EEPROM 在文件夹: C:\Users\mahon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\EEPROM
使用 1.3  版本的库 ESP8266httpUpdate 在文件夹: C:\Users\mahon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\ESP8266httpUpdate
使用 1.0  版本的库 ESP8266WebServer 在文件夹: C:\Users\mahon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\ESP8266WebServer
使用 1.0  版本的库 Hash 在文件夹: C:\Users\mahon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Hash
exit status 1
no matching function for call to 'BlinkerESPMQTT::begin(char [13], char [3], char [13])'


批注 2020-04-08 174443.png
发表于 2020-6-9 17:32 | 显示全部楼层
保留 auth  其他2个删除就可以了!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-12-1 05:35 , Processed in 0.082667 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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