[Solved] Plugin P109_RESOL_DeltaSol_Pro.ino

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
javalin
Normal user
Posts: 5
Joined: 06 Nov 2019, 17:00

[Solved] Plugin P109_RESOL_DeltaSol_Pro.ino

#1 Post by javalin » 06 Nov 2019, 17:23

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
Last edited by javalin on 11 Nov 2019, 10:23, edited 1 time in total.

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

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

#2 Post by TD-er » 07 Nov 2019, 12:47

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.

javalin
Normal user
Posts: 5
Joined: 06 Nov 2019, 17:00

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

#3 Post by javalin » 09 Nov 2019, 16:49

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?

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

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

#4 Post by TD-er » 09 Nov 2019, 16:53

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.

javalin
Normal user
Posts: 5
Joined: 06 Nov 2019, 17:00

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

#5 Post by javalin » 09 Nov 2019, 17:30

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?

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

Re: Plugin P109_RESOL_DeltaSol_Pro.ino

#6 Post by TD-er » 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.

javalin
Normal user
Posts: 5
Joined: 06 Nov 2019, 17:00

[Soved] Plugin P109_RESOL_DeltaSol_Pro.ino

#7 Post by javalin » 11 Nov 2019, 10:22

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

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests