Page 1 of 1

[Solved] Plugin P109_RESOL_DeltaSol_Pro.ino

Posted: 06 Nov 2019, 17:23
by javalin
Hello, I would like to compile a custom firmware with P109_RESOL_DeltaSol_Pro.ino from the playground.

I set up Arduino IDE 1.8.1, imported all libs and P109_RESOL_DeltaSol_Pro.ino plugin on ESPeasy folder. My flash settings need to be "Generic ESP 8266 Module"

I got one compile warning: "WARNING: library LiquidCrystal_I2C claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s)", and after that a variable errror void, I will send the error when arrive home.

I tried to compile with Release mega-20191104 till Release mega-20190926 should I try an older version to get the compile?

Kind regards

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

Posted: 07 Nov 2019, 12:47
by TD-er
It looks like the LiquidCrystal_I2C library we include, may need to be updated.
But as long as it is a warning and the binary compiles just fine, I would not worry too much.
I've not seen an issue about that library in a while.

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

Posted: 09 Nov 2019, 16:49
by javalin
Thank you TD-er,

I added "#define PLUGIN_BUILD_DEV" in ESPEasy.ino to compile with P109 plugin.

The first error a get compiling is: 'preinitWiFiOff' is not a member of 'ESP8266WiFiClass'. If I add "//" to ESP8266WiFiClass::preinitWiFiOff(); the compiling continues but I get another error: 'class EspClass' has no member named 'deepSleepMax' in this code line:


if ((deepSleep_usec > ESP.deepSleepMax()) || (dsdelay < 0)) {
deepSleep_usec = ESP.deepSleepMax();

It´s easy to avoid the error? Or there is any place to download de firmware with the plugin compiled?

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

Posted: 09 Nov 2019, 16:53
by TD-er
What core library version do you use?

It looks like you have a lot of issues caused by not using the correct libraries.
Please try to use PlatformIO, with VScode or Atom, since that will setup all the libraries for you.

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

Posted: 09 Nov 2019, 17:30
by javalin
With Plataform IO in Atom I have success. Thank you :D

To add the custom plugin I should edit "define_plugin_sets.h" file, isn´t?
And to define the Building type there is an option?

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

Posted: 09 Nov 2019, 18:00
by TD-er
javalin wrote: 09 Nov 2019, 17:30 To add the custom plugin I should edit "define_plugin_sets.h" file, isn´t?
Yep
javalin wrote: 09 Nov 2019, 17:30 And to define the Building type there is an option?
Not sure if I understand your question.
You did see there are a lot of build environments defined in platformio.ini?
In Atom, you can select which one to build when clicking in the lower left corner and then select it in the menu it pops up.

[Soved] Plugin P109_RESOL_DeltaSol_Pro.ino

Posted: 11 Nov 2019, 10:22
by javalin
TD-er wrote: 09 Nov 2019, 18:00
javalin wrote: 09 Nov 2019, 17:30 To add the custom plugin I should edit "define_plugin_sets.h" file, isn´t?
Yep
javalin wrote: 09 Nov 2019, 17:30 And to define the Building type there is an option?
Not sure if I understand your question.
You did see there are a lot of build environments defined in platformio.ini?
In Atom, you can select which one to build when clicking in the lower left corner and then select it in the menu it pops up.

Thanks for your advice, I have already been able to compile the firmware with the included plugin :D :D