• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP NOW on ESP8266

Q&A Forum › Category: ESP8266 › ESP NOW on ESP8266
0 Vote Up Vote Down
ytram99 asked 3 years ago

Supposedly, ESP NOW will run on ESP8266 as well as ESP32 with ESP-NOW.

However, esp_now.h is not included under the ESP8266 library (Arduino15/Packages/ESP8266/etc).  Therefore #include <esp_now.h> fails to compile since it can’t find the file.

It is available for ESP32.  A #include to the ESP32 file, giving it the entire path, now fails to compile saying: Error compiling for board NodeMCU 1.0 (ESP-12E Module).  Obviously, the ESP32 version will not work for ESP8266.

Any ideas, Thanks

Question Tags: Esp-now
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
I’ve recently finish a tutorial about ESP-NOW with the ESP8266. It will be published next week.
You don’t need to install anything. Just make sure you import the wifi library before espnow, as follows:

#include <ESP8266WiFi.h>
#include <espnow.h>

Then, you need to make a few modifications to make it work with the ESP8266, but I think you may be able to find out.
I’ll share a link to the tutorial, as soon as it is published.
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Here’s the tutorial about ESP-NOW on the ESP8266: ESP-NOW with ESP8266 – Getting Started
I hope this is useful.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.