esp8266 section type conflict with factors报错ArduinoJson.h头文件
第三方库自动下载的位置:
D:\Users\xx\Documents\Arduino\libraries\ArduinoJson
不要把库放在其它地方,arduino编译找不到的。
与设置的地方一致
In file included from d:\Arduino_Project\agv_remote_info_display\agv_remote_info_display.ino:40:0:
CN_font2.h:3:16: error: CN_font32_1 causes a section type conflict with factors
const uint8_t CN_font32_1[] PROGMEM = {
^
In file included from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Numbers/FloatTraits.hpp:13:0,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Numbers/convertNumber.hpp:15,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantData.hpp:9,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantFunctions.hpp:9,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/JsonVariantConst.hpp:15,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:9,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/ElementProxy.hpp:7,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/JsonArray.hpp:7,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:29,
from D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from d:\Arduino_Project\agv_remote_info_display\agv_remote_info_display.ino:39:
D:\Program Files (x86)\Arduino\libraries\ArduinoJson\src/ArduinoJson/Numbers/FloatTraits.hpp:50:5: note: 'factors' was declared here
ARDUINOJSON_DEFINE_PROGMEM_ARRAY( //
d:\Users\xx\Documents\Arduino\libraries\TFT_eSPI/Fonts/GFXFF/FreeSerifBold24pt7b.h:754:15: error: FreeSerifBold24pt7b causes a section type conflict with factors
const GFXfont FreeSerifBold24pt7b PROGMEM = {
DynamicJsonDocument json_msg(1024);放在函数内部
DeserializationError error = deserializeJson(json_msg,recv_str_from_client); 编译导致,原因待分析
欢迎讨论,相互学习。
cdtxw@foxmail.com