ESPEasy compile problem

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JJussi
New user
Posts: 6
Joined: 10 Jun 2016, 09:25
Location: Helsinki, Finland

ESPEasy compile problem

#1 Post by JJussi » 10 Jun 2016, 09:36

Hi!
I use Arduino 1.6.9 and tried to compile ESPEasy for "Adafruit HUZZAH ESP8266" and got next error:

Code: Select all

Arduino: 1.6.9 (Mac OS X), Board: "Adafruit HUZZAH ESP8266, 80 MHz, 921600, 4M (3M SPIFFS)"

/Volumes/Data/Users/jjussi/ownCloud/Documents/Arduino/ESPEasy_R78/Source/ESPEasy/_P020_Ser2Net.ino: In function 'boolean Plugin_020(byte, EventStruct*, String&)':
_P020_Ser2Net:114: error: invalid conversion from 'byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]
           Serial.begin(ExtraTaskSettings.TaskDevicePluginConfigLong[1], serialconfig);
                                                                                     ^
In file included from /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/Arduino.h:246:0,
                 from sketch/ESPEasy.ino.cpp:1:
/Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/HardwareSerial.h:77:10: error:   initializing argument 2 of 'void HardwareSerial::begin(long unsigned int, SerialConfig)' [-fpermissive]
     void begin(unsigned long baud, SerialConfig config)
          ^
exit status 1
invalid conversion from 'byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]

Any idea what is wrong?
JJussi

User avatar
lucaberta
Normal user
Posts: 59
Joined: 09 May 2016, 11:26
Location: Lausanne, Switzerland
Contact:

Re: ESPEasy compile problem

#2 Post by lucaberta » 10 Jun 2016, 10:31

Hi, and welcome to the forum!

Try to see if following the instructions on the wiki works for you. By the looks of it, you are compiling with the 2.2.0 version of the boards definition, while only 2.0.0, and possibly 2.1.0 are supported today.

http://www.esp8266.nu/index.php/Tutoria ... are_Upload

Make sure you also have the same version of the library you will find in the ZIP for R78:

http://www.esp8266.nu/downloads/ESPEasy_R78.zip

Ciao, Luca

JJussi
New user
Posts: 6
Joined: 10 Jun 2016, 09:25
Location: Helsinki, Finland

Re: ESPEasy compile problem

#3 Post by JJussi » 10 Jun 2016, 13:37

OK..
You are absolutely right..
I'm compiling with 2.2.0..
If I change that to 2.0.0, I can compile ESPEasy, but... Cannot upload it to Feather ESP8266...
If I change that to 2.1.0, compile fails, but.. Upload (other software) works again to Feather ESP8266...

So it looks like that, I cannot use this code until it supports at least 2.1.0... :cry:
JJussi

User avatar
lucaberta
Normal user
Posts: 59
Joined: 09 May 2016, 11:26
Location: Lausanne, Switzerland
Contact:

Re: ESPEasy compile problem

#4 Post by lucaberta » 11 Jun 2016, 00:05

Try and see the workaround for the 2.2.0 support in this message:

http://www.esp8266.nu/forum/viewtopic.p ... 1381#p7397

I am using 2.1.0 and have NOT implemented the workaround, still R107 compiles just fine, and I can upload it and run it on different ESP8266 modules without a single issue. Go figure!

Ciao, Luca

JJussi
New user
Posts: 6
Joined: 10 Jun 2016, 09:25
Location: Helsinki, Finland

Re: ESPEasy compile problem

#5 Post by JJussi » 11 Jun 2016, 10:55

Thank you!

I implemented that "static_cast<SerialConfig>(serialconfig)" and now it compile and works wit 2.2.0

Excelent... Now I just need to wait that those sensors + other stuff arrives... ;-)
So I can finnish my project!
JJussi

User avatar
lucaberta
Normal user
Posts: 59
Joined: 09 May 2016, 11:26
Location: Lausanne, Switzerland
Contact:

Re: ESPEasy compile problem

#6 Post by lucaberta » 12 Jun 2016, 00:11

JJussi wrote:Thank you!

I implemented that "static_cast<SerialConfig>(serialconfig)" and now it compile and works wit 2.2.0
that's nice to hear! Let's hope that this small change will be integrated soon so that we can move to 2.2.0 for good.
JJussi wrote:So I can finnish my project!
spoken like a true Finn! :D :D

Ciao, Luca

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests