bw16-kit-v1.0 attachDataStorage 编辑报错-Arduino中文社区 - Powered by Discuz! Archiver

whatda 发表于 2022-7-30 12:02

bw16-kit-v1.0 attachDataStorage 编辑报错

In file included from d:\documents\arduino\libraries\blinker\src\modules\arduinojson\arduinojson\strings\stringadapters.hpp:35:0,
               from d:\documents\arduino\libraries\blinker\src\modules\arduinojson\arduinojson\misc\serializedvalue.hpp:7,
               from d:\documents\arduino\libraries\blinker\src\modules\arduinojson\arduinojson\variant\variantdata.hpp:7,
               from d:\documents\arduino\libraries\blinker\src\modules\arduinojson\ArduinoJson/Array/ArrayRef.hpp:7,
               from d:\documents\arduino\libraries\blinker\src\modules\arduinojson\ArduinoJson.hpp:17,
               from d:\documents\arduino\libraries\blinker\src\modules\arduinojson\arduinojson.h:9,
               from D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:63,
               from D:\Documents\Arduino\libraries\Blinker\src/BlinkerSerialESPMQTT.h:5,
               from D:\Documents\Arduino\libraries\Blinker\src/Blinker.h:54,
               from D:\Repos_my\IoT\shtc3_blinker\shtc3_blinker.ino:13:
d:\documents\arduino\libraries\blinker\src\modules\arduinojson\arduinojson\strings\SizedFlashStringAdapter.hpp: In member function 'int8_t ArduinoJson6111_00000::SizedFlashStringAdapter::compare(const char*) const':
d:\documents\arduino\libraries\blinker\src\modules\arduinojson\arduinojson\strings\SizedFlashStringAdapter.hpp:18:72: error: 'strncmp_P' was not declared in this scope
   return -strncmp_P(other, reinterpret_cast<const char*>(_str), _size);
                                                                        ^
In file included from C:\Users\ijiang\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.3\system/component/soc/realtek/amebad/fwlib/include/ameba_soc.h:15:0,
               from C:\Users\ijiang\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.3\system/component/soc/realtek/amebad/cmsis/cmsis.h:35,
               from C:\Users\ijiang\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.3\system/component/common/mbed/targets/hal/rtl8721d/PinNames.h:5,
               from C:\Users\ijiang\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.3\variants\rtl8720dn_bw16/variant.h:30,
               from C:\Users\ijiang\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.3\cores\ambd/Arduino.h:126,
               from sketch\shtc3_blinker.ino.cpp:1:
d:\documents\arduino\libraries\blinker\src\modules\arduinojson\arduinojson\polyfills\ctype.hpp: At global scope:
d:\documents\arduino\libraries\blinker\src\modules\arduinojson\arduinojson\polyfills\ctype.hpp:9:13: error: expected ')' before 'char'
inline bool isdigit(char c) {
             ^
In file included from D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:96:0,
               from D:\Documents\Arduino\libraries\Blinker\src/BlinkerSerialESPMQTT.h:5,
               from D:\Documents\Arduino\libraries\Blinker\src/Blinker.h:54,
               from D:\Repos_my\IoT\shtc3_blinker\shtc3_blinker.ino:13:
D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h: In member function 'void BlinkerProtocol::autoFormatData(const String&, const String&)':
D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h:418:53: warning: unused parameter 'key' [-Wunused-parameter]
void BlinkerProtocol::autoFormatData(const String & key, const String & jsonValue)
                                                   ^~~
In file included from D:\Documents\Arduino\libraries\Blinker\src/BlinkerSerialESPMQTT.h:5:0,
               from D:\Documents\Arduino\libraries\Blinker\src/Blinker.h:54,
               from D:\Repos_my\IoT\shtc3_blinker\shtc3_blinker.ino:13:
D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'void BlinkerApi::printNumArray(char*, const String&)':
D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:5088:61: warning: unused parameter 'data' [-Wunused-parameter]
void BlinkerApi::printNumArray(char * _name, const String & data)
                                                             ^~~~
D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'void BlinkerApi::initCheck(const String&, uint32_t)':
D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:14734:63: warning: unused parameter 'timeout' [-Wunused-parameter]
   void BlinkerApi::initCheck(const String & _data, uint32_t timeout)
                                                               ^~~~~~~
D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'void BlinkerApi::duerPrint(String&, bool)':
D:\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:15063:52: warning: unused parameter 'report' [-Wunused-parameter]
   void BlinkerApi::duerPrint(String & _msg, bool report)
                                                    ^~~~~~
D:\Repos_my\IoT\shtc3_blinker\shtc3_blinker.ino: In function 'void setup()':
shtc3_blinker:32:11: error: 'class BlinkerSerialESPMQTT' has no member named 'attachDataStorage'; did you mean 'attachData'?
   Blinker.attachDataStorage(dataStorage);//关联回调函数,开启历史数据存储功能
         ^~~~~~~~~~~~~~~~~
D:\Repos_my\IoT\shtc3_blinker\shtc3_blinker.ino: In function 'void loop()':
D:\Repos_my\IoT\shtc3_blinker\shtc3_blinker.ino:39:24: warning: unused variable 'result' [-Wunused-variable]
   SHTC3_Status_TypeDef result = mySHTC3.update();
                        ^~~~~~
D:\Repos_my\IoT\shtc3_blinker\shtc3_blinker.ino: In function 'void dataStorage()':
shtc3_blinker:60:12: error: 'class BlinkerSerialESPMQTT' has no member named 'dataStorage'; did you mean '_dataStorageFunc'?
    Blinker.dataStorage("num-temp", T);//键值可以跟blinker number一样或者不一样
            ^~~~~~~~~~~
shtc3_blinker:61:12: error: 'class BlinkerSerialESPMQTT' has no member named 'dataStorage'; did you mean '_dataStorageFunc'?
    Blinker.dataStorage("num-rh", RH);
            ^~~~~~~~~~~
exit status 1
'class BlinkerSerialESPMQTT' has no member named 'attachDataStorage'; did you mean 'attachData'?






whatda 发表于 2022-7-30 12:06

错误截图

whatda 发表于 2022-8-8 11:33

https://www.amebaiot.com/en/amebad-bw16-arduino-getting-started/

blinker支持这个吗? 有什么解决方法么?

奈何col 发表于 2022-8-8 16:23

whatda 发表于 2022-8-8 11:33
https://www.amebaiot.com/en/amebad-bw16-arduino-getting-started/

blinker支持这个吗? 有什么解决方法 ...

暂不支持该芯片(RTL720DN)的开发板
页: [1]
查看完整版本: bw16-kit-v1.0 attachDataStorage 编辑报错