Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By awinterstale33
#52456
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.
User avatar
By PuceBaboon
#74427 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-