Search found 2 matches

by cryptkeeper
Tue Mar 10, 2020 12:27 am
Forum: ESP32 IDF
Topic: c++ class with task and timer
Replies: 2
Views: 508

Re: c++ class with task and timer

Hi, void setup() { ... Zap outlet(DATA_PIN, eventGroup,bit_time, "Task UNO") ;// (DATA_PIN, &eventGroup, bit_time, CHANNEL , 20000); } You're creating the object "outlet" on the stack within the scope of the setup() function. When the function exits, all local ( stack ) created objects will be destr...
by cryptkeeper
Fri Mar 06, 2020 1:27 pm
Forum: ESP32 IDF
Topic: Are there any best practices / decision rules how to structure the code into different tasks?
Replies: 0
Views: 989

Are there any best practices / decision rules how to structure the code into different tasks?

Hi, I'm just porting our ESP32 firmware from arduino-core to ESP-IDF using a C++ OOP approach. The architecture is abstracted as follows: firmware-architecture.png I'm quite new to FreeRTOS and currently I only have defined two tasks (apart from the task that IDF creates internally for websocket, bl...

Go to advanced search