本帖最后由 invent 于 2019-12-9 15:35 编辑
基本信息- [x] 这个问题满足提问指南
- [x] 我阅读了开发文档
- [x] 我使用了最新的库及APP进行测试,但是问题仍然存在
- [x] 我搜索过类似问题的解决方法但是仍然无法解决
- [] 有设备端的LOG信息
- [x] 有编译报错信息
- [x] 我已填写基本信息
设备信息- 硬件: [Arduino UNO+ESP8266-AT]
- 接入方式: [WIFI]
- package版本: [esp8266-arduino-2.6.2]
- blinker库版本: [arduino 0.3.3]
- 开发环境: [Arduino]
- 操作系统: [Windows]
IDE 中的设置
ESP8266
- Module: [Nodemcu]
- Flash Mode: [dio]
- Flash Size: [4MB]
- lwip Variant: [v1.4]
- Reset Method: [nodemcu]
- Flash Frequency: [40Mhz]
- CPU Frequency: [80Mhz]
- Upload Using: [SERIAL]
- Upload Speed: [115200] (serial upload only)手机信息及APP信息
Arduino UNO- Module: [Arduino UNO]
- Flash Mode: [qio|dio|other]
- Upload Using: [SERIAL]
问题描述:
使用UNO+ESP8266-AT模式测试开发,
ESP8266_AT_Firmware_WIFI固件编译正常,固件下载正常,串口发送AT指令测试8266模块正常;
UNO程序无论使用Arduino IDE 1.8.10或PlatformIO均编译失败,错误提示信息如下:
代码
#define BLINKER_WIFI
#include <Arduino.h>
#include <Blinker.h>
const char auth[] = "xxx";
const char ssid[] = "xxx";
const char pswd[] = "xxx";
BlinkerButton Light("btn_abc");
void Light_callback(const String & state)
{
}
void setup() {
Serial.begin(9600);
BLINKER_DEBUG.stream(Serial);
Blinker.begin(auth, ssid, pswd, 2, 3);
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
Light.attach(Light_callback);
}
void loop() {
Blinker.run();
}
编译信息
C:\users\invent\.platformio\lib\blinker-library-master\src/BlinkerSerialESPMQTT.h: At global scope:
C:\users\invent\.platformio\lib\blinker-library-master\src/BlinkerSerialESPMQTT.h:154:27: error: cannot declare field 'BlinkerSerialESPMQTT::Transp' to be of abstract type 'BlinkerSerialMQTT'
BlinkerSerialMQTT Transp;
^
In file included from C:\users\invent\.platformio\lib\blinker-library-master\src/BlinkerSerialESPMQTT.h:4:0,
from C:\users\invent\.platformio\lib\blinker-library-master\src/Blinker.h:46,
from src\main.cpp:6:
C:\users\invent\.platformio\lib\blinker-library-master\src/Adapters/BlinkerSerialMQTT.h:26:7: note: because the following virtual functions are pure within 'BlinkerSerialMQTT':
class BlinkerSerialMQTT : public BlinkerStream
|