#define BLINKER_ESP_SMARTCONFIG 编译报错
Arduino IDE 1.8.12
ESP 8266 lib 2.5.2 或 2.6.3
最新的blinker arduino支持库
原来的程序在Arduino IDE中编译上传都没问题,加了:#define BLINKER_ESP_SMARTCONFIG
后,编译时 Blinker.begin(auth, ssid, pswd); 报错,去掉这行#define BLINKER_ESP_SMARTCONFIG就没问题。编译报错如下:
正在编译项目...
"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 , char , char )'
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 , char , char )'
批注 2020-04-08 174443.png (60.73 KB, 下载次数: 0)
https://www.arduino.cn/data/attachment/forum/202004/08/174456xmsll1mcltg1qq3a.png
使用BLINKER_ESP_SMARTCONFIG时不用设置ssid和password
请按照我们的文档和例程操作 本帖最后由 q1127957008 于 2020-9-18 21:44 编辑
奈何col 发表于 2020-4-8 19:09
使用BLINKER_ESP_SMARTCONFIG时不用设置ssid和password
请按照我们的文档和例程操作
点灯科技的开发文档里面没有关于#define BLINKER_ESP_SMARTCONFIG的说明啊! q1127957008 发表于 2020-9-18 21:43
点灯科技的开发文档里面没有关于#define BLINKER_ESP_SMARTCONFIG的说明啊!
搜esptouch
页:
[1]