Example WebSocket temperature humidity esp8266 compiling error

Home Forums esp8266 Example WebSocket temperature humidity esp8266 compiling error

Viewing 2 reply threads
  • Author
    Posts
    • #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,
         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 1
        Fehler 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
      • #9578
        Renzo Mischianti
        Keymaster

          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

        • #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

            • #9587
              Renzo Mischianti
              Keymaster

                Hi VeloTobi,

                I also update the github project, now there is the simple version and the more complex.

                Bye Renzo

          Viewing 2 reply threads
          • You must be logged in to reply to this topic.
          Exit mobile version