Closed cryptIOT closed 4 months ago
Hi @cryptIOT,
error: 'const void*' is not a pointer-to-object type
This error is not due to ArduinoJson but to the Core library. See arduino/ArduinoCore-API#118, #1442, #1519, #1536, #1591, #1676, #1790, and #1874.
You can work around this bug by defining ARDUINOJSON_ENABLE_PROGMEM to 0. The ArduinoJson Troubleshooter would have told you that if you had looked a the error list more carefully.
Best regards, Benoit
Description Console Output : /usr/local/bin/arduino-cli compile --fqbn esp8266:esp8266:nodemcu:baud=115200,xtal=80,eesz=4M,dbg=Disabled,lvl=None____,ip=lm2f,vt=flash,exception=disabled,wipe=none --build-cache-path /tmp --output-dir /tmp/1555963679/build --build-path /tmp/arduino-build-67B333C02B32F6F77E3AD68F8F18323C /tmp/1555963679/JsonParserExample_copy-1
In file included from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Numbers/FloatTraits.hpp:13:0, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Numbers/convertNumber.hpp:15, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Variant/VariantData.hpp:9, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Variant/VariantAttorney.hpp:9, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Variant/JsonVariantConst.hpp:14, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Variant/VariantRefBase.hpp:9, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Array/ElementProxy.hpp:7, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Array/JsonArray.hpp:7, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson.hpp:29, from /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson.h:9, from /tmp/1555963679/JsonParserExample_copy-1/JsonParserExample_copy-1.ino:9: /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Polyfills/pgmspace_generic.hpp: In instantiation of 'const T ArduinoJson::V704PB2::detail::pgm_read(const T const) [with T = char]': /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Deserialization/DeserializationError.hpp:85:42: required from here /home/builder/Arduino/libraries/arduinojson_7_0_4/src/ArduinoJson/Polyfills/pgmspace_generic.hpp:25:52: error: 'const void' is not a pointer-to-object type return reinterpret_cast<const T*>(pgm_read_ptr(p)); ^ Multiple libraries were found for "ArduinoJson.h" Used: /home/builder/opt/libraries/arduinojson_7_0_4 Not used: /home/builder/opt/libraries/thingesp_1_3_0 Not used: /home/builder/opt/libraries/iotkme_3_0_1 Not used: /home/builder/opt/libraries/coogleiot_1_3_1 Not used: /home/builder/opt/libraries/allthingstalk_lte_m_sdk_2_0_4 Not used: /home/builder/opt/libraries/balemessengerbot_arduino_0_1_0 Not used: /home/builder/opt/libraries/thingsiot_1_2_0 Not used: /home/builder/opt/libraries/antares_esp8266_mqtt_0_9_2 Not used: /home/builder/opt/libraries/cmmc_mqtt_connector_1_3_3 Not used: /home/builder/opt/libraries/antares_esp8266_http_1_3_3 Error during build: exit status 1
Troubleshooter's report
Environment
Reproduction code
Remarks Any solution?