Skip to content

Incompatible with ESP32 #30

Description

@SciLor

The library seems not to work on the ESP32.
Boards: https://github.com/espressif/arduino-esp32

I always get "error: 'Thread' has not been declared"
Using the ESP8266 boards it works fine

Activity

  1. SciLor commented on Apr 29, 2018

    @SciLor
    Author
  2. ivanseidel commented on Apr 30, 2018

    @ivanseidel
    Owner

    Can you please check #include <Thread.h> is the first included file from the library, and that it is indeed included?

    Also, please post the code here so we can understand better.

    (Luckily, yesterday I was using a ESP32... but did not use it with ArduinoThread)

  3. SciLor commented on Apr 30, 2018

    @SciLor
    Author

    The code is here:
    https://github.com/SciLor/ESP8266_Hyperion_LED-Controller/blob/develop/HyperionRGB/EnhancedThread.h

    You can reproduce the problem easily:
    Create a new Arduino Sketch.
    Create an EnhancedThread.cpp with:

    #include "EnhancedThread.h"
    void EnhancedThread::run() {
      Thread::run();
    }
    

    and EnhancedThread.h

    #include <Thread.h>
    class EnhancedThread : public Thread {
      public:
        void
          run(void);
    };
    

    Select the Wemos LOLIN32 or ESP32 Devboard as device.
    Compile - error

    Known workarounds: Copy the ArduinoThread lib into the projects folder or combine the h+cpp file into one file.

    Use Arduino / ESP8266 and it works fine.

  4. ivanseidel commented on Apr 30, 2018

    @ivanseidel
    Owner
  5. SciLor commented on Apr 30, 2018

    @SciLor
    Author

    I have added #include <Thread.h> in the other 2 files without success. The error stays the same.

  6. phoax commented on Jul 26, 2018

    @phoax

    I'm testing this lib with a standard ESP32 and Visual Code. It works fine.

  7. SciLor commented on Jul 26, 2018

    @SciLor
    Author

    I am using the Arduino Software

  8. phoax commented on Jul 31, 2018

    @phoax
  9. patrickelectric commented on Jul 31, 2018

    @patrickelectric

    I'm using this library with ESP32 without any problem. For nodemcu and wimos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions