-->
Page 2 of 2

Re: espnow library not found

PostPosted: Mon Aug 08, 2016 3:22 am
by awinterstale33
Koichi Kurahashi wrote:Hi,


Quit Arduino IDE and edit this file:
~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.1.0/platform.txt

// sorry I don't know about windows...

Search "compiler.c.elf.libs", and append "-lespnow" at the end of the line. Then you can build it by Arduino IDE.


koichi



I was wondering how you knew this? Maybe it could help me learn all this in the future. And also if you posted the code from your youtube video anywhere? I'm trying to directly control things without needing wifi.

Re: espnow library not found

PostPosted: Sat Aug 13, 2016 4:37 am
by roboticboyer

Re: espnow library not found

PostPosted: Tue Mar 06, 2018 7:46 pm
by PuceBaboon
If you're using PlatformIO you'll need to have the latest version installed and then just simply add:-

build_flags = -lespnow

...to your platformio.ini file in the project directory.

For a working example (based on TornTrousers' code and using an ESP8266 as an ethernet gateway), take a look at:- https://esp8266hints.wordpress.com/2018/02/13/adding-an-ethernet-port-to-your-esp-revisited/

-John-