How to use/test ESPEasyPluginPlayground?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
fazambuja
Normal user
Posts: 13
Joined: 17 Apr 2018, 19:05

How to use/test ESPEasyPluginPlayground?

#1 Post by fazambuja » 17 Apr 2018, 21:38

Hi, noob here.

I'm trying to test and build a few plugins that are available at the ESPEasyPluginPlayground repository (CCS811 and BME680). And I couldn't get them to work (build).
I'm able to build and upload unless I try to include the plug-ins.

What I'm doing:
- Opening the last mega via GitHub app on to atom.
- Copy the desired plugin from ESPEasyPluginPlayground to the /src. (_P118_CCS811.ino and _P119_BME680.ino)
- Copy the required libraries for the BME680.ino into /src (Adafruit_BME680.h and bme680.h)
- Uncommented or added at the start

Code: Select all

#ifdef PLUGIN_BUILD_DEV
and

Code: Select all

#endif
at the last line.
- Run Build for my board (PIO Build (dev_ESP8266_4096))

Error:

Code: Select all

/Users/user_name/Documents/GitHub/ESPEasy/src/WebServer.ino:2787:6: note: void addFormNumericBox(const String&, const String&, int, int, int)

void addFormNumericBox(const String& label, const String& id, int value, int min, int max)
^
/Users/user_name/Documents/GitHub/ESPEasy/src/WebServer.ino:2787:6: note:   candidate expects 5 arguments, 4 provided
/Users/user_name/Documents/GitHub/ESPEasy/src/WebServer.ino:2793:6: note: void addFormNumericBox(const String&, const String&, int)
void addFormNumericBox(const String& label, const String& id, int value)
^
/Users/user_name/Documents/GitHub/ESPEasy/src/WebServer.ino:2793:6: note:   candidate expects 3 arguments, 4 provided
/Users/user_name/Documents/GitHub/ESPEasy/src/_P119_BME680.ino:101:31: error: too many arguments to function 'void addUnit(const String&)'
addUnit(string, F("m"));
^
/Users/user_name/Documents/GitHub/ESPEasy/src/WebServer.ino:2643:6: note: declared here
void addUnit(const String& unit)
^
/Users/user_name/Documents/GitHub/ESPEasy/src/_P118_CCS811.ino: In member function 'String CCS811::getSensorError()':
/Users/user_name/Documents/GitHub/ESPEasy/src/_P118_CCS811.ino:1011:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
*** [.pioenvs/dev_ESP8266_4096/src/ESPEasy.ino.cpp.o] Error 1
What I'm doing wrong? Or are these plug-ins just too old?

Thanks

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

Re: How to use/test ESPEasyPluginPlayground?

#2 Post by TD-er » 17 Apr 2018, 22:51

These webserver functions were changed in the last week.
In short, they no longer append to the string provided as function parameter.
In short, like I discussed here: https://github.com/letscontrolit/ESPEas ... r182032286

fazambuja
Normal user
Posts: 13
Joined: 17 Apr 2018, 19:05

Re: How to use/test ESPEasyPluginPlayground?

#3 Post by fazambuja » 24 Apr 2018, 23:10

Thanks! I've removed the string values for the BME680 and it works!

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests