QuickESPNow icon indicating copy to clipboard operation
QuickESPNow copied to clipboard

esp_yield() not found for esp8266 build

Open gpbenton opened this issue 9 months ago • 1 comments

I am trying to compile this on platformio, but I get this error for a wemos_d1_mini board

Compiling .pio/build/base/FrameworkArduino/base64.cpp.o
.pio/libdeps/base/QuickEspNow/src/QuickEspNow_esp8266.cpp: In member function 'virtual comms_send_error_t QuickEspNow::send(const uint8_t*, const uint8_t*, size_t)':
.pio/libdeps/base/QuickEspNow/src/QuickEspNow_esp8266.cpp:150:17: error: 'esp_yield' was not declared in this scope
  150 |                 esp_yield ();
      |                 ^~~~~~~~~

I found some discussion on line about esp_yield(), yield() and delay(0), so I replaced esp_yield() with yield() in my copy of the library, and it has been working so far, but I am not sure if that is really the correct solution.

gpbenton avatar Apr 29 '24 10:04 gpbenton

I am having the same experience, using yield instead of esp_yield is working, but I am uncertain as to best practices. The code for esp32 uses taskYIELD and only further confuses the situation for me.

ChuckMash avatar Jul 19 '24 23:07 ChuckMash