Tagged: Compiler problem, esp8266, Example, WebSocket
- This topic has 3 replies, 1 voice, and was last updated 4 years, 3 months ago by
Renzo Mischianti.
Viewing 2 reply threads
-
AuthorPosts
-
-
26 January 2021 at 16:38 #9574
VeloTobi
Dear all,I would like to try out the simple web server for D1 mini esp8266 (unfortunately, also other boards didn’t work…).If I compile the code,WebSocket-Esp8266-ESP32-Tutorial/03-Secure WebSocket with autentication on DHT temp hum/esp8266_TempHumidityWebServerWithWebSocket/esp8266_TempHumidityWebServerWithWebSocket.ino
 the following message appears:In file included from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Polyfills/static_array.hpp:11:0,         from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Numbers/FloatTraits.hpp:14,         from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Numbers/convertNumber.hpp:18,         from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:9,         from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Variant/SlotFunctions.hpp:8,         from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Array/ArrayIterator.hpp:7,         from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Array/ArrayRef.hpp:8,         from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.hpp:17,         from /Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.h:9,         from /Users/user2/Documents/Arduino/ESP8266_WebS_Server03/ESP8266_WebS_Server03.ino:32:/Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Polyfills/pgmspace_generic.hpp: In instantiation of ‘typename ArduinoJson6172_91::enable_if<ArduinoJson6172_91::is_pointer::value, T>::type ArduinoJson6172_91::pgm_read(const void*) [with T = const __FlashStringHelper*; typename ArduinoJson6172_91::enable_if<ArduinoJson6172_91::is_pointer::value, T>::type = const __FlashStringHelper*]’:/Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Deserialization/DeserializationError.hpp:103:12:  required from here/Users/user2/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Polyfills/pgmspace_generic.hpp:14:45: error: ‘const void*’ is not a pointer-to-object type  return reinterpret_cast(pgm_read_ptr(p));                       ^exit status 1Fehler beim Kompilieren für das Board LOLIN(WEMOS) D1 mini Lite.Can you help me? What do I have to change?Thanks in advance,regards,T -
26 January 2021 at 17:01 #9578
Hi VeloTobi,
please check the core and library version, I test the sketch width these and It’s work
- Using board d1_mini
- Using core esp8266 2.7.4
- [ESP8266WiFi@1.0]
- [ESP8266WebServer@1.0]
- [WebSockets@2.1.4]
- [WebSockets@2.1.4]
- [Hash@1.0]
- [DHT12_sensor_library@0.9.0]
- [Wire@1.0]
- [ArduinoJson@6.13.0]
Bye Renzo
-
27 January 2021 at 00:15 #9584
VeloTobi
OK, thanks, I had another ArduinoJSON version and DHT12 instead of DHT12_sensor_library 0.9.0. I had to uninstall dht12 and replace with your library. BTW, also DHT12_sensor_library 1.0.1 seems to compile.
regards
T
-
27 January 2021 at 07:12 #9587
Hi VeloTobi,
I also update the github project, now there is the simple version and the more complex.
Bye Renzo
-
-
-
AuthorPosts
Viewing 2 reply threads
- You must be logged in to reply to this topic.