I am trying to test ESP NOW with two 8266 boards by following this website. The sample code starts with
#include <esp_now.h> #include <WiFi.h>
but it seems that my PlatformIO does not find such files. Using IntelliSense, I chose the closest ones
<ESP8266WiFi.h>, and I added
<Esp.h> just in case, but as I expected, the code below did not compile. Is there an “ESP NOW” example that works with the default libraries that come with the PlatformIO?
If that is not possible, how can I get the “esp_now.h” and “WiFi.h” that the example of that website uses? The page only says this and does not explain how to get those.