Problem with Blynk controller building

Moderators: grovkillen, TD-er, Stuntteam

Post Reply
Message
Author
SawwaOff
Normal user
Posts: 5
Joined: 19 Mar 2020, 19:12

Problem with Blynk controller building

#1 Post by SawwaOff » 19 Mar 2020, 20:08

Hi, friends! I have a problems with Blink plugin (C015). custom_ESP8266_1M (platform: espressif8266@2.3.2; board: esp01_1m; framework: arduino)

Error of building: D:/Arduino projekts/ESPEasy1/ESPEasy/src/_C015.ino:344:49: error: too many arguments to function 'String parseString(const String&, byte)'

Please, help, whats a probem is it?

Thank's a lot!

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

Re: Problem with Blynk controller building

#2 Post by TD-er » 19 Mar 2020, 21:51

Sounds like you don't have all sources of the current mega branch.
Please try building using PlatformIO.
If you use ArduinoIDE, don't forget to use the files from the /lib dir in the mega branch and don't try to mimic the installed libraries using the ArduinoIDE library manager.
Some of the libs we use have patched code, so they differ from what ArduinoIDE library manager tries to install.

User avatar
ThomasB
Normal user
Posts: 614
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Problem with Blynk controller building

#3 Post by ThomasB » 19 Mar 2020, 23:52

@TD-er:
It seems that during the migration to the new parser (late Oct 2019) the function parameters were changed. Now declared as parseString(const string, byte), but originally was parseString(const string, byte, bool, bool).
See these github changes:
https://github.com/letscontrolit/ESPEas ... 5f4516L143
https://github.com/letscontrolit/ESPEas ... 5fa268L379

@SawwaOff:
I suggest editing _C015.ini, find this line:

Code: Select all

String data = parseString(Line, 3, true, false);
and change to:

Code: Select all

String data = parseString(Line, 3);
This parsing should return the lower case string, which is the same as the original function call. It compiles (PlatformIO), but if it doesn't work correctly then please don't shoot me.

Thomas

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

Re: Problem with Blynk controller building

#4 Post by TD-er » 20 Mar 2020, 00:14

ThomasB wrote:
19 Mar 2020, 23:52
@TD-er:
It seems that during the migration to the new parser (late Oct 2019) the function parameters were changed. Now declared as parseString(const string, byte), but originally was parseString(const string, byte, bool, bool).
See these github changes:
https://github.com/letscontrolit/ESPEas ... 5f4516L143
https://github.com/letscontrolit/ESPEas ... 5fa268L379

@SawwaOff:
I suggest editing _C015.ini, find this line:

Code: Select all

String data = parseString(Line, 3, true, false);
and change to:

Code: Select all

String data = parseString(Line, 3);
This parsing should return the lower case string, which is the same as the original function call.
Hmm that's the 2nd time this change apparently resulted in a bug I see in this hour.
See: https://github.com/letscontrolit/ESPEas ... bf0d2c41f8
It compiles (PlatformIO), but if it doesn't work correctly then please don't shoot me.
You're on a different continent, so you have to ask yourself one question.... "Do I feel lucky?"
Well, do ya... ? ;)

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

Re: Problem with Blynk controller building

#5 Post by TD-er » 20 Mar 2020, 00:28

I don't understand how it could be compiled anyway.
I don't see the function for the 4-parameter function signature.

Edit:
Ah that was the whole idea about this topic ;)

User avatar
ThomasB
Normal user
Posts: 614
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Problem with Blynk controller building

#6 Post by ThomasB » 20 Mar 2020, 00:59

Hmm that's the 2nd time this change apparently resulted in a bug I see in this hour.
That's exactly how a pandemic begins.

Keep at least two meters from other keyboards. Wash your typing fingers as often as practical.

- Thomas

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

Re: Problem with Blynk controller building

#7 Post by TD-er » 20 Mar 2020, 01:15

Hmm I do work on a separated laptop right now and I think I can move it to a separate VLAN just to be sure.

jessepinkman
Normal user
Posts: 1
Joined: 20 Mar 2020, 06:39

Re: Problem with Blynk controller building

#8 Post by jessepinkman » 20 Mar 2020, 06:44

SawwaOff wrote:
19 Mar 2020, 20:08
Hi, friends! I have a problems with Blink plugin (C015). custom_ESP8266_1M (platform: espressif8266@2.3.2; board: esp01_1m; framework: arduino)

Error of building: D:/Arduino projekts/ESPEasy1/ESPEasy/src/_C015.ino:344:49: error: too many arguments to function 'String parseString(const String&, byte)'

Please, help, whats a probem is it?

Thank's a lot!
Hey Sawwa, sounds like the issue is from using the wrong version of Blynk - the parseString function should take only 3 arguments and you've probably put in 4. See if you can edit _C015.ini like ThomasB wrote.

SawwaOff
Normal user
Posts: 5
Joined: 19 Mar 2020, 19:12

Re: Problem with Blynk controller building

#9 Post by SawwaOff » 20 Mar 2020, 16:06

@SawwaOff:
I suggest editing _C015.ini, find this line:

Code: Select all

String data = parseString(Line, 3, true, false);
and change to:

Code: Select all

String data = parseString(Line, 3);
This parsing should return the lower case string, which is the same as the original function call. It compiles (PlatformIO), but if it doesn't work correctly then please don't shoot me.

Thomas
[/quote]

Hi! These actions helped me!
Thank's.
Firmaware was build, but Blynk does'nt work propertly

I don 't know where to enter data about the virtual pins, and data from sensors not uploaded to Blynk...

User avatar
ThomasB
Normal user
Posts: 614
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Problem with Blynk controller building

#10 Post by ThomasB » 20 Mar 2020, 16:14

Firmaware was build, but Blynk does'nt work propertly
I don 't know where to enter data about the virtual pins, and data from sensors not uploaded to Blynk...
Good to hear it compiles. Sorry, but I don't use Blynk so I can't help with the configuration.

- Thomas

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests