Repository navigation
Incompatible with ESP32 #30
Description
Activity
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)
The code is here:
https://github.com/SciLor/ESP8266_Hyperion_LED-Controller/blob/develop/HyperionRGB/EnhancedThread.hYou 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 - errorKnown 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.
- Try including Thread.h and ThreadController.h in your main file. That shouls work…On Mon, Apr 30, 2018, 3:58 PM SciLor ***@***.***> wrote: 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. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#30 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC9Vr21Ckyd0hB-7vSUTdN4_4bttTB_Yks5tt17dgaJpZM4RVsA1> .
I have added #include <Thread.h> in the other 2 files without success. The error stays the same.
I'm testing this lib with a standard ESP32 and Visual Code. It works fine.
I am using the Arduino Software
This example is not working for you ?
https://github.com/ivanseidel/ArduinoThread/blob/master/examples/SimpleThread/SimpleThread.inoI'm using this library with ESP32 without any problem. For nodemcu and wimos.
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