Skip to content

ESP-NOW strategy support for esp8266 #277

Open
@dominikborkowski

Description

Hi,
I was wondering if PJON's support for ESP-NOW could be extended to the esp8266 platform. On the surface it appears it may be currently available for the esp32.

Quick test using platformIO and sample code from https://github.com/gioblu/PJON/blob/master/examples/ESP32/ESPNOW/PingPongArduinoIDE/Device1/Device1.ino I get errors such as:

.piolibdeps/PJON_ID245/src/strategies/ESPNOW/../../interfaces/ARDUINO/ESPNOWHelper.h:4:4: error: #error "ESP32 constant is not defined."

I can define said constant, but I'm not sure what the repercussions would be. Then we have another error regarding support for freertos library. Not sure which FreeRTOS library it expects:

.piolibdeps/PJON_ID245/src/strategies/ESPNOW/../../interfaces/ARDUINO/ESPNOWHelper.h:12:31: fatal error: freertos/FreeRTOS.h: No such file or directory

Using the sample code above on esp8266 one has to change

#include <WiFi.h> to
#include <ESP8266WiFi.h>

Thanks!

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions