Page 1 of 1

Problem with Blynk controller building

Posted: 19 Mar 2020, 20:08
by SawwaOff
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!

Re: Problem with Blynk controller building

Posted: 19 Mar 2020, 21:51
by TD-er
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.

Re: Problem with Blynk controller building

Posted: 19 Mar 2020, 23:52
by ThomasB
@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

Re: Problem with Blynk controller building

Posted: 20 Mar 2020, 00:14
by TD-er
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... ? ;)

Re: Problem with Blynk controller building

Posted: 20 Mar 2020, 00:28
by TD-er
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 ;)

Re: Problem with Blynk controller building

Posted: 20 Mar 2020, 00:59
by ThomasB
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

Re: Problem with Blynk controller building

Posted: 20 Mar 2020, 01:15
by TD-er
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.

Re: Problem with Blynk controller building

Posted: 20 Mar 2020, 06:44
by jessepinkman
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.

Re: Problem with Blynk controller building

Posted: 20 Mar 2020, 16:06
by SawwaOff
@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...

Re: Problem with Blynk controller building

Posted: 20 Mar 2020, 16:14
by ThomasB
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