Plugins not being added to devices when compiling with Arduino

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sparkes
Normal user
Posts: 14
Joined: 25 Feb 2018, 20:57

Plugins not being added to devices when compiling with Arduino

#1 Post by sparkes » 10 Sep 2020, 19:40

Long time user of ESP Easy (Love it to bits)

I've done this a million times before but with the latest few releases I can't compile with TESTING or DEVELOPMENT plugins active.

It actually compiles but the plugins are not added to the devices dropdown in the Web UI.

So clearly there not being added.

I've uncommented these lines in the ESPEasy_globals.h file and I thought that was it.

//build all the normal stable plugins (on by default)
#define PLUGIN_BUILD_NORMAL

//build all plugins that are in test stadium
#define PLUGIN_BUILD_TESTING

//build all plugins that still are being developed and are broken or incomplete
#define PLUGIN_BUILD_DEV

I'm using
- ESPEasy_ESP82xx_mega-20200812
- Arduino 1.8.13
- Mac OS X
- NodeMCU

I've not had this much trouble since the early days years ago. :shock:

What am I missing?

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plugins not being added to devices when compiling with Arduino

#2 Post by TD-er » 10 Sep 2020, 22:38

Well normally the defines are done in the PlatformIO environment, but it still can be done using the Arduino IDE.
Of course there are lots of ways to do it, but I guess the simplest way is to rename the Custom-sample.h to Custom.h in the same directory and just uncomment what plugins and tasks you would like to have.

And in ESPEasy.ino, right at the start of the file, you add a single define to make sure the Custom.h is included.

Code: Select all

#define USE_CUSTOM_H

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 49 guests