Problems with sending Get command (get stuck sometimes) on ESP8266 with Blynk

I have a project which is using blynk with buttons for counters. These counter figures and other info is send with an HTTP get towards my webserver to be added to my database.
For this I am using ESP8266WiFi.h and BlynkSimpleEsp8266.h libraries and it is all working ok. Except for 2 things

  • Login timeouts with blynk (too often)
  • Get command set gets sometimes Stuck in the sending mode

I think it has to do with buffers . Especially since it is working 3 out of the 6 times.
The string I am sending as Get is very long. I am suspecting this to be the problem. Therefore I would like to know if the sendbuffer in the BlynkConfig.h has some influence on this or maybe braking it in chunks
Or this is only for the blynk communication?

I have used the bits of code from the samples to combine client.println() command with the blynk sketch. Maybe there is more flexibility with the local server which I am setting up right now on Ubuntu
Any ideas ?

Hello.

It may have some influence. However it is hard to say. It could be signal strength problem, it could be esp firmware problem. How big is that string?

How long is a piece of string?

The string length is 485
And I have included the log here
The number 485 is Serial.println(HTReq.length()); in the code to publish the length of the string to send in client.print(HTReq);
Of course also the closing HTTP statements have to be included , so in total it is over the 500 char
With the sending Get request it hangs. Do you need also the full debug log ?

Waiting for Wifi to connect. …
WiFi connected.
[27583] Blynk v0.3.8 on NodeMCU
Applicatie start
[27587] Connecting to blynk-cloud.com:8442
[27886] Ready (ping: 1ms).
[33656] Login timeout
[33656] Connecting to blynk-cloud.com:8442
[33696] Ready (ping: 2ms).
[87626] Time sync: OK
Connecting to score-board.nl:80… HTTPWEDSTRIJDOK
Sending GET request
Done.
[166713] Heartbeat timeout
[166716] Connecting to blynk-cloud.com:8442
[166820] Ready (ping: 1ms).
Connecting to score-board.nl:80… OK
Sending GET request
484
Done.
[176376] Login timeout
[176376] Connecting to blynk-cloud.com:8442
[176550] Ready (ping: 1ms).
Connecting to score-board.nl:80… OK
Sending GET request
484
Done.
[184371] Login timeout
[184371] Connecting to blynk-cloud.com:8442
[184553] Ready (ping: 1ms).
[207683] Time sync: OK
[216585] Connecting to blynk-cloud.com:8442
[216644] Ready (ping: 2ms).
[267666] Time sync: OK
[327623] Time sync: OK
[387626] Time sync: OK
[422585] Connecting to blynk-cloud.com:8442
[422707] Ready (ping: 1ms).
[447644] Time sync: OK
[488587] Connecting to blynk-cloud.com:8442
[488654] Ready (ping: 1ms).
[507636] Time sync: OK
[567647] Time sync: OK

LOGFILE WITH DEBUG.
Waiting for Wifi to connect. ...... WiFi connected. [23040] Blynk v0.3.8 on NodeMCU Applicatie start [23040] Cmd skipped:16 [23040] Cmd skipped:20 [23040] Cmd skipped:20 [23056] Cmd skipped:16 [23081] Cmd skipped:20 [23106] Cmd skipped:20 [23131] Cmd skipped:20 [23156] Cmd skipped:20 [23181] Cmd skipped:20 [23206] Cmd skipped:20 [23231] Cmd skipped:20 [23256] Cmd skipped:20 [23281] Cmd skipped:20 [23306] Cmd skipped:20 [23331] Cmd skipped:20 [23356] Cmd skipped:20 [23381] Cmd skipped:20 [23406] Cmd skipped:20 [23431] Cmd skipped:20 [23456] Cmd skipped:20 [23481] Cmd skipped:20 [23506] Cmd skipped:20 [23531] Cmd skipped:20 [23556] Cmd skipped:20 [23581] Cmd skipped:20 [23606] Cmd skipped:20 [23631] Cmd skipped:20 [23656] Cmd skipped:20 [23681] Cmd skipped:20 [23706] Cmd skipped:20 [23731] Cmd skipped:20 [23756] Cmd skipped:20 [23781] Cmd skipped:20 [23806] Cmd skipped:20 [23831] Cmd skipped:20 [23856] Cmd skipped:20 [23881] Cmd skipped:20 [23906] Cmd skipped:20 [23931] Cmd skipped:20 [23956] Cmd skipped:20 [23981] Cmd skipped:20 [24006] Cmd skipped:20 [24031] Cmd skipped:20 [24056] Cmd skipped:20 [24081] Connecting to blynk-cloud.com:8442 [24160] <[02|00|01|00] c6c0ced0c6284f679e4a5967beb6e049 [24206] Cmd skipped:20 [24211] >[00|00|01|00]È [24237] Ready (ping: 31ms). [24268] <[11|00].[00]Gver[00]0.3.8[00]h-beat[00]10[00]buff-in[00]256[00]dev[00]NodeMCU[00]build[00]Aug 6 2016 18:45:07[00] [24416] <[10|00]/[00|05]vr[00]43 [24450] <[14|00]0[00]%vw[00]0[00]Speler 1 start opslag 1e [24561] <[14|00]1[00|0B]vw[00]0[00]game[0D|0A] [24581] <[14|00]2[00|07]vw[00]31[00]0 [24615] <[14|00]3[00|07]vw[00]30[00]0 [24662] <[14|00]4[00|07]vw[00]15[00]0 [24707] <[14|00]5[00|07]vw[00]14[00]0 [24740] <[14|00]6[00|15]vw[00]17[00]Speler 2 [24797] <[14|00]7[00|15]vw[00]16[00]Speler 1 [24849] <[14|00]8[00|12]vw[00]33[00]Wedstrijd: 1 [24899] <[14|00]9[00|09]vw[00]25[00]255 [24939] <[14|00]:[00|07]vw[00]26[00]0 [24979] <[14|00];[00|07]vw[00]38[00]0 [25023] <[14|00]<[00|07]vw[00]39[00]0 [25060] <[14|00]=[00|12]vw[00]33[00]Wedstrijd: 1 [25113] <[14|00]>[00|06]vw[00]2[00]2 [25166] <[14|00]?[00|06]vw[00]3[00]1 [25191] <[14|00]@[00|07]vw[00]41[00]1 [25236] <[14|00]A[00|07]vw[00]10[00]1 [25273] <[14|00]B[00|07]vw[00]22[00]1 [25316] <[14|00]C[00|07]vw[00]13[00]0 [25355] <[14|00]D[00|14]vw[00]7[00]Speler 1 [25409] <[14|00]E[00|14]vw[00]8[00]Speler 2 [25466] <[14|00]F[00|0B]vw[00]4[00]123456 [25515] <[14|00]G[00|0C]vw[00]19[00]654321 [25557] <[14|00]H[00|13]vw[00]11[00]Club 1 [25609] <[14|00]I[00|13]vw[00]12[00]Club 2 [25660] <[14|00]J[00|18]vw[00]9[00]0-0 0-0 0-0 0-0 0-0 [25720] <[14|00]K[00|07]vw[00]23[00]0 [25763] <[14|00]L[00|07]vw[00]45[00]0 [25799] <[10|00]M[00|05]vr[00]30 [25842] <[10|00]N[00|05]vr[00]31 [25873] <[10|00]O[00|05]vr[00]16 [25905] <[10|00]P[00|05]vr[00]17 [30922] Cmd error [30924] Cmd skipped:16 [30925] Cmd skipped:16 [30925] Cmd skipped:16 [30925] Cmd skipped:16 [30925] Cmd skipped:16 [30934] Cmd skipped:16 [30960] Cmd skipped:16 [30984] Cmd skipped:16 [31009] Cmd skipped:16 [31034] Cmd skipped:16 [31059] Login timeout [31083] Cmd skipped:20 [31108] Connecting to blynk-cloud.com:8442 [31180] <[02|00|01|00] c6c0ced0c6284f679e4a5967beb6e049 [31235] Cmd skipped:20 [31239] >[00|00|01|00]È [31265] Ready (ping: 30ms). [31295] <[11|00]][00]Gver[00]0.3.8[00]h-beat[00]10[00]buff-in[00]256[00]dev[00]NodeMCU[00]build[00]Aug 6 2016 18:45:07[00] [31444] <[14|00]^[00|16]vw[00]44[00]1 1 1970 0:00:31 [31542] >[00|00]][00]È [31542] <[14|00]_[00|16]vw[00]44[00]1 1 1970 0:00:31 [31581] <[14|00][00|16]vw[00]44[00]1 1 1970 0:00:31
[31639] <[14|00]a[00|16]vw[00]44[00]1 1 1970 0:00:31
[31697] <[14|00]b[00|16]vw[00]44[00]1 1 1970 0:00:31
[32040] <[14|00]c[00|16]vw[00]44[00]1 1 1970 0:00:32
[33040] <[14|00]d[00|16]vw[00]44[00]1 1 1970 0:00:33
[34040] <[14|00]e[00|16]vw[00]44[00]1 1 1970 0:00:34
[35040] <[14|00]f[00|16]vw[00]44[00]1 1 1970 0:00:35
[36040] <[14|00]g[00|16]vw[00]44[00]1 1 1970 0:00:36
[37040] <[14|00]h[00|16]vw[00]44[00]1 1 1970 0:00:37
[38040] <[14|00]i[00|16]vw[00]44[00]1 1 1970 0:00:38
[39040] <[14|00]j[00|16]vw[00]44[00]1 1 1970 0:00:39
[40040] <[14|00]k[00|16]vw[00]44[00]1 1 1970 0:00:40
[41040] <[14|00]l[00|16]vw[00]44[00]1 1 1970 0:00:41
[41543] <[06|00]m[00|00]
[41563] >[00|00]m[00]È
[42040] <[14|00]n[00|16]vw[00]44[00]1 1 1970 0:00:42
[43040] <[14|00]o[00|16]vw[00]44[00]1 1 1970 0:00:43
[44040] <[14|00]p[00|16]vw[00]44[00]1 1 1970 0:00:44
[45040] <[14|00]q[00|16]vw[00]44[00]1 1 1970 0:00:45
[46040] <[14|00]r[00|16]vw[00]44[00]1 1 1970 0:00:46

[83061] <[10|00]œ[00|05]vr[00]43
[83084] >[14|00]œ[00|10]
[83085] >vw[00]43[00]1470509182
[83085] Time sync: OK
[84040] <[14|00]�[00|17]vw[00]44[00]6 8 2016 18:46:22
[85040] <[14|00]ž[00|17]vw[00]44[00]6 8 2016 18:46:23
[86040] <[14|00]Ÿ[00|17]vw[00]44[00]6 8 2016 18:46:24
[87040] <[14|00] [00|17]vw[00]44[00]6 8 2016 18:46:25
.
.(some log idle statements removed)
.
.
[215040] <[14|01],[00|17]vw[00]44[00]6 8 2016 18:48:33
[215171] >[14]t[10|00|04]
[215171] >vr[00]7
[215172] >[14]Z[1B|00|05]
[215172] >vr[00]33
[215201] >[14]Ug[00|04]
[215201] >vr[00]8
[215898] >[14]"æ[00|07]
[215899] >vw[00]21[00]1
[215900] <[14]"æ[00|07]vw[00]31[00]0
[215919] <[14]"æ[00|07]vw[00]30[00]0
[215939] <[14]"æ[00|07]vw[00]15[00]1
[215958] <[14]"æ[00|07]vw[00]14[00]0
[216038] <[14]“æ[00|15]vw[00]17[00]Speler 2
[216084] <[14]“æ[00|15]vw[00]16[00]Speler 1
[216134] <[14]“æ[00|12]vw[00]33[00]Wedstrijd: 1
[221135] Cmd error
[221138] Cmd skipped:20
[221138] Cmd skipped:20
[221138] Cmd skipped:20
[221138] Cmd skipped:20
[221138] Cmd skipped:20
[221154] Cmd skipped:20
[221180] Login timeout
[221205] Cmd skipped:20
[221231] Connecting to blynk-cloud.com:8442
[221304] <[02|00|01|00] c6c0ced0c6284f679e4a5967beb6e049
[221359] Cmd skipped:20
[221364] >[00|00|01|00]È
[221391] Ready (ping: 31ms).
[221423] <[11|01]/[00]Gver[00]0.3.8[00]h-beat[00]10[00]buff-in[00]256[00]dev[00]NodeMCU[00]build[00]Aug 6 2016 18:45:07[00]
[221573] <[14|01]0[00|17]vw[00]44[00]6 8 2016 18:48:40
[221669] >[00|01]/[00]È
[221670] <[14|01]1[00|17]vw[00]44[00]6 8 2016 18:48:40
[221716] <[14|01]2[00|17]vw[00]44[00]6 8 2016 18:48:40
[221774] <[14|01]3[00|17]vw[00]44[00]6 8 2016 18:48:40
[222040] <[14|01]4[00|17]vw[00]44[00]6 8 2016 18:48:40
[222059] >[14]J[01|00|05]
[222059] >vr[00]30
[222082] >[14]~u[00|05]
[222082] >vr[00]44
[222146] >[14]!”[00|04]
[222146] >vr[00]7
[222147] >[14|19]±[00|05]
[222148] >vr[00]33
[222191] >[14|02]¶[00|04]
[222192] >vr[00]8
[223040] <[14|01]5[00|17]vw[00]44[00]6 8 2016 18:48:41
[223097] >[14]@[17|00|05]
[223097] >vr[00]31
[223104] >[14|07]¸[00|05]
[223104] >vr[00]12
[223173] >[14|16]ä[00|05]
[223173] >vr[00]30
[223177] >[14]d0[00|05]
[223177] >vr[00]19
[223202] >[14]I¿[00|04]
[223202] >vr[00]6
[223206] >[14]B[7F|00|05]
[223234] >vr[00]44
[223255] >[14]|f[00|05]
[223281] >vr[00]11
[223301] >[14]f[1F|00|04]
[223330] >vr[00]7
[223349] >[14]/v[00|05]
[223375] >vr[00]33
[223396] >[14]l1[00|04]
[223422] >vr[00]8
[224040] <[14|01]6[00|17]vw[00]44[00]6 8 2016 18:48:42
[224064] >[14]wÒ[00|05]
[224064] >vr[00]31
[224167] >[14|7F]Y[00|04]
[224167] >vr[00]7
[224167] >[14]mp[00|05]
[224168] >vr[00]33
[224193] >[14]M^[00|04]
[224193] >vr[00]8
[225012] >[14|09]º[00|05]
[225012] >vr[00]31
[225040] <[14|01]7[00|17]vw[00]44[00]6 8 2016 18:48:43
[225061] >[14]m[00|05]
[225061] >vr[00]30
[225093] >[14]u7[00|05]
[225093] >vr[00]44
[225161] >[14]\7[00|04]
[225161] >vr[00]7
[225162] >[14]K“[00|05]
[225162] >vr[00]33
[225191] >[14]]y[00|04]
[225199] >vr[00]8
[226040] <[14|01]8[00|17]vw[00]44[00]6 8 2016 18:48:44
[226098] >[14]SÜ[00|04]
[226099] >vr[00]4
[226105] >[14|1D]m[00|05]
[226105] >vr[00]12
[226172] >[14](Ô[00|05]
[226173] >vr[00]30
[226202] >[14|08]Í[00|05]
[226202] >vr[00]44
[226229] >[14]li[00|05]
[226229] >vr[00]11
[226230] >[14]i­[00|04]
[226230] >vr[00]7
[226261] >[14]b][00|05]
[226276] >vr[00]33
[226302] >[14]”![00|04]
[226322] >vr[00]8
[227040] <[14|01]9[00|17]vw[00]44[00]6 8 2016 18:48:45
[227060] >[14]~’[00|05]
[227060] >vr[00]31
[227176] >[14]nš[00|04]
[227176] >vr[00]7
[227176] >[14]pd[00|05]
[227177] >vr[00]33
[227207] >[14]Zv[00|04]
[227207] >vr[00]8
[228040] <[14|01]:[00|17]vw[00]44[00]6 8 2016 18:48:46
[228059] >[14]![06|00|05]
[228059] >vr[00]31
[228059] >[14]%é[00|05]
[228060] >vr[00]30
[228153] >[14|08]½[00|05]
[228154] >vr[00]44
[228154] >[14]”‹[00|04]
[228154] >vr[00]7
[228157] >[14|1A|02|00|05]
[228186] >vr[00]33
[228207] >[14]-�[00|04]
[228233] >vr[00]8
[228252] >[14|14]E[00|04]
[228281] >vr[00]5
[229040] <[14|01];[00|17]vw[00]44[00]6 8 2016 18:48:47
[229059] >[14]EH[00|04]
[229059] >vr[00]4
[229110] >[14]@Í[00|05]
[229110] >vr[00]12
[229188] >[14]o~[00|05]
[229188] >vr[00]30
[229188] >[14|0D|0E|00|05]
[229188] >vr[00]19
[229221] >[14]O•[00|05]
[229222] >vr[00]44
[229254] >[14]$[1B|00|04]
[229254] >vr[00]7
[229287] >[14] —[00|05]
[229287] >vr[00]33
[229315] >[14]/u[00|04]
[229323] >vr[00]8
[230029] >[14]5i[00|05]
[230030] >vr[00]31
[230040] <[14|01]<[00|17]vw[00]44[00]6 8 2016 18:48:48
[230171] >[14]z»[00|04]
[230172] >vr[00]7
[230172] >[14]qæ[00|05]
[230172] >vr[00]33
[230198] >[14|19]»[00|04]
[230198] >vr[00]8
[231040] <[14|01]=[00|17]vw[00]44[00]6 8 2016 18:48:49
[231060] >[14]bÁ[00|05]
[231061] >vr[00]31
[231071] >[14]/f[00|05]
[231071] >vr[00]30
[231135] >[14]Yá[00|05]
[231136] >vr[00]44
[231136] >[14]Ih[00|04]
[231136] >vr[00]7
[231161] >[14]8Ð[00|05]
[231179] >vr[00]33
[231203] >[14]wƒ[00|04]
[231225] >vr[00]8
[232040] <[14|01]>[00|17]vw[00]44[00]6 8 2016 18:48:50
[232167] >[14]B[0C|00|05]
[232167] >vr[00]30
[232193] >[14]i[04|00|05]
[232193] >vr[00]44
[232222] >[14][0E|00|05]
[232222] >vr[00]11
[232223] >[14]Gý[00|04]
[232223] >vr[00]7
[232250] >[14]zÿ[00|05]
[232253] >vr[00]33
[232283] >[14]Eè[00|04]
[232300] >vr[00]8
[232323] >[14|0E]Ž[00|07]
[232348] >vw[00]13[00]1
[232374] <[14|0E]Ž[00|14]vw[00]7[00]Speler 1
[232448] <[14|0E]Ž[00|14]vw[00]8[00]Speler 2
[232525] <[14|0E]Ž[00|0B]vw[00]4[00]123456
[232549] <[14|0E]Ž[00|0C]vw[00]19[00]654321
[232595] <[14|0E]Ž[00|13]vw[00]11[00]Club 1
[232649] <[14|0E]Ž[00|13]vw[00]12[00]Club 2
[232705] <[14|0E]Ž[00|18]vw[00]9[00]0-0 0-0 0-0 0-0 0-0
[232768] <[14|0E]Ž[00|07]vw[00]23[00]0
[232804] <[14|0E]Ž[00|07]vw[00]45[00]0
[232846] <[0E|0E]Ž[00|10]Webscore actief! (HERE IS THE SEND GET ACTIVATED)
Connecting to score-board.nl:80… HTTPWEDSTRIJDOK
Sending GET request Here is where it sometimes timesout/freezes
Done.
[288220] Heartbeat timeout: 288220, 232373, 221390
[288223] Cmd skipped:20
[288223] Cmd skipped:16
[288223] Connecting to blynk-cloud.com:8442
[288422] <[02|00|01|00] c6c0ced0c6284f679e4a5967beb6e049
[288443] Cmd skipped:20
[288443] >[00|00|01|00]È
[288443] Ready (ping: 1ms).
[288443] <[11|01]B[00]Gver[00]0.3.8[00]h-beat[00]10[00]buff-in[00]256[00]dev[00]NodeMCU[00]build[00]Aug 6 2016 18:45:07[00]
[288586] <[14|01]C[00|17]vw[00]44[00]6 8 2016 18:49:47
[288680] >[00|01]B[00]È
[288681] <[14|01]D[00|17]vw[00]44[00]6 8 2016 18:49:47
[288727] <[14|01]E[00|17]vw[00]44[00]6 8 2016 18:49:47
[288784] <[14|01]F[00|17]vw[00]44[00]6 8 2016 18:49:47
[288844] <[14|01]G[00|17]vw[00]44[00]6 8 2016 18:49:47
[288901] <[14|01]H[00|17]vw[00]44[00]6 8 2016 18:49:47
[288959] <[14|01]I[00|17]vw[00]44[00]6 8 2016 18:49:47
[289018] <[14|01]J[00|17]vw[00]44[00]6 8 2016 18:49:47
[289077] <[14|01]K[00|17]vw[00]44[00]6 8 2016 18:49:47
[289164] >[14]!A[00|05]
[289164] >vr[00]12
[289165] <[14|01]L[00|17]vw[00]44[00]6 8 2016 18:49:48
[294221] Cmd error
[294223] Connecting to blynk-cloud.com:8442
[294252] <[02|00|01|00] c6c0ced0c6284f679e4a5967beb6e049
[294274] Cmd skipped:20
[294274] >[00|00|01|00]È
[294274] Ready (ping: 1ms).
[294300] <[11|01]N[00]Gver[00]0.3.8[00]h-beat[00]10[00]buff-in[00]256[00]dev[00]NodeMCU[00]build[00]Aug 6 2016 18:45:07[00]
[294452] <[14|01]O[00|17]vw[00]44[00]6 8 2016 18:49:53
[294545] >[00|01]N[00]È
[294545] <[14|01]P[00|17]vw[00]44[00]6 8 2016 18:49:53
[294594] <[14|01]Q[00|17]vw[00]44[00]6 8 2016 18:49:53
[294651] <[14|01]R[00|17]vw[00]44[00]6 8 2016 18:49:53
[294710] <[14|01]S[00|17]vw[00]44[00]6 8 2016 18:49:53
[294768] <[14|01]T[00|17]vw[00]44[00]6 8 2016 18:49:53
[294826] <[14|01]U[00|17]vw[00]44[00]6 8 2016 18:49:53
[294886] <[14|01]V[00|17]vw[00]44[00]6 8 2016 18:49:53
[294943] <[14|01]W[00|17]vw[00]44[00]6 8 2016 18:49:53
[295001] <[14|01]X[00|17]vw[00]44[00]6 8 2016 18:49:53
[295058] >[14]K [00|04]
[295067] >vr[00]4
[295086] <[14|01]Y[00|17]vw[00]44[00]6 8 2016 18:49:54
[295183] >[14]2q[00|05]
[295184] >vr[00]12
[295192] <[14|01]Z[00|17]vw[00]44[00]6 8 2016 18:49:54
[300249] Cmd error
[300252] Connecting to blynk-cloud.com:8442
[300279] <[02|00|01|00] c6c0ced0c6284f679e4a5967beb6e049
[300302] Cmd skipped:20
[300302] >[00|00|01|00]È
[300302] Ready (ping: 1ms).
[300329] <[11|01][00]Gver[00]0.3.8[00]h-beat[00]10[00]buff-in[00]256[00]dev[00]NodeMCU[00]build[00]Aug 6 2016 18:45:07[00]
[300482] <[14|01]][00|17]vw[00]44[00]6 8 2016 18:49:59
[300576] >[00|01][00]È
[300577] <[14|01]^[00|17]vw[00]44[00]6 8 2016 18:49:59
[300622] <[14|01]
[00|17]vw[00]44[00]6 8 2016 18:49:59
[300681] <[14|01][00|17]vw[00]44[00]6 8 2016 18:49:59 [300738] <[14|01]a[00|17]vw[00]44[00]6 8 2016 18:49:59 [300796] <[14|01]b[00|17]vw[00]44[00]6 8 2016 18:49:59 [300855] <[14|01]c[00|17]vw[00]44[00]6 8 2016 18:49:59 [300915] <[14|01]d[00|17]vw[00]44[00]6 8 2016 18:49:59 [300971] <[14|01]e[00|17]vw[00]44[00]6 8 2016 18:49:59 [301032] <[14|01]f[00|17]vw[00]44[00]6 8 2016 18:49:59 [301128] >[14]u#[00|04] [301128] >vr[00]4 [301129] <[14|01]g[00|17]vw[00]44[00]6 8 2016 18:50:00 [301192] >[14]sì[00|05] [301199] >vr[00]30 [301220] <[14|01]h[00|17]vw[00]44[00]6 8 2016 18:50:00 [301315] >[14]Al[00|05] [301315] >vr[00]44 [301325] <[14|01]i[00|17]vw[00]44[00]6 8 2016 18:50:00 [301444] >[14]}Š[00|05] [301445] >vr[00]11 [301445] <[14|01]j[00|17]vw[00]44[00]6 8 2016 18:50:00 [301508] >[14]SŒ[00|04] [301515] >vr[00]7 [301535] <[14|01]k[00|17]vw[00]44[00]6 8 2016 18:50:00 [301612] >[14][ù[00|05] [301619] >vr[00]33 [301640] <[14|01]l[00|17]vw[00]44[00]6 8 2016 18:50:00 [301717] >[14]X[03|00|04] [301726] >vr[00]8 [301746] <[14|01]m[00|17]vw[00]44[00]6 8 2016 18:50:00 [301824] <[14|01]n[00|17]vw[00]44[00]6 8 2016 18:50:00 [301882] <[14|01]o[00|17]vw[00]44[00]6 8 2016 18:50:00 [301943] <[14|01]p[00|17]vw[00]44[00]6 8 2016 18:50:00 [302006] >[14]gb[00|05] [302006] >vr[00]31 [302026] <[14|01]q[00|17]vw[00]44[00]6 8 2016 18:50:00 [302104] <[14|01]r[00|17]vw[00]44[00]6 8 2016 18:50:01 [302164] >[14]xC[00|04] [302169] >vr[00]7 [302189] <[14|01]s[00|17]vw[00]44[00]6 8 2016 18:50:01 [302308] >[14]uE[00|05] [302308] >vr[00]33 [302309] <[14|01]t[00|17]vw[00]44[00]6 8 2016 18:50:01 [302378] >[14])°[00|04] [302378] >vr[00]8 [302398] <[14|01]u[00|17]vw[00]44[00]6 8 2016 18:50:01 [302476] <[14|01]v[00|17]vw[00]44[00]6 8 2016 18:50:01 [302534] <[14|01]w[00|17]vw[00]44[00]6 8 2016 18:50:01 [302593] <[14|01]x[00|17]vw[00]44[00]6 8 2016 18:50:01 [302652] <[14|01]y[00|17]vw[00]44[00]6 8 2016 18:50:01 [302717] <[14|01]z[00|17]vw[00]44[00]6 8 2016 18:50:01 [302770] <[14|01]{[00|17]vw[00]44[00]6 8 2016 18:50:01 [302837] <[14|01]|[00|17]vw[00]44[00]6 8 2016 18:50:01 [302885] <[14|01]}[00|17]vw[00]44[00]6 8 2016 18:50:01 [302942] <[14|01]~[00|17]vw[00]44[00]6 8 2016 18:50:01 [303002] <[14|01|7F|00|17]vw[00]44[00]6 8 2016 18:50:01 [303061] >[14]AR[00|05] [303067] >vr[00]30 [303088] <[14|01]€[00|17]vw[00]44[00]6 8 2016 18:50:02 [303167] >[14]Sæ[00|05] [303172] >vr[00]44 [303193] <[14|01]�[00|17]vw[00]44[00]6 8 2016 18:50:02 [303323] >[14]]ä[00|04] [303323] >vr[00]7 [303323] <[14|01]‚[00|17]vw[00]44[00]6 8 2016 18:50:02 [303375] >[14|10]A[00|05] [303384] >vr[00]33 [303404] <[14|01]ƒ[00|17]vw[00]44[00]6 8 2016 18:50:02 [303485] >[14|1A]P[00|04] [303491] >vr[00]8 [303511] <[14|01]„[00|17]vw[00]44[00]6 8 2016 18:50:02 [303605] >[14]Bö[00|04] [303605] >vr[00]5 [303615] <[14|01]…[00|17]vw[00]44[00]6 8 2016 18:50:02 [303701] <[14|01]†[00|17]vw[00]44[00]6 8 2016 18:50:02 [303750] <[14|01]‡[00|17]vw[00]44[00]6 8 2016 18:50:02 [303809] <[14|01]ˆ[00|17]vw[00]44[00]6 8 2016 18:50:02 [303868] <[14|01]‰[00|17]vw[00]44[00]6 8 2016 18:50:02 [303982] >[14]7ü[00|05] [303983] >vr[00]31 [304040] <[14|01]Š[00|17]vw[00]44[00]6 8 2016 18:50:02 [304065] >[14]oÕ[00|04] [304066] >vr[00]4 [304103] >[14];[00|05]
[304103] >vr[00]12
[304168] >[14|1D]‡[00|05]
[304168] >vr[00]30
[304168] >[14]uÿ[00|05]
[304179] >vr[00]19
[304212] >[14]mø[00|05]
[304226] >vr[00]44
[304247] >[14]<u[00|04]
[304273] >vr[00]7
[304293] >[14|0E]ù[00|05]
[304321] >vr[00]33
[304342] >[14]t~[00|04]
[304368] >vr[00]8
[305040] <[14|01]‹[00|17]vw[00]44[00]6 8 2016 18:50:03
[305064] >[14]u‡[00|05]
[305065] >vr[00]31
[305166] >[14]Aë[00|04]
[305167] >vr[00]7
[305167] >[14|12]¸[00|05]
[305167] >vr[00]33
[305193] >[14|0C]=[00|04]
[305193] >vr[00]8
[306040] <[14|01]Œ[00|17]vw[00]44[00]6 8 2016 18:50:04
[306061] >[14]$ü[00|05]
[306061] >vr[00]30
[306087] >[14|1C]æ[00|05]
[306087] >vr[00]44
[306153] >[14|10]&[00|04]
[306153] >vr[00]7
[306154] >[14]má[00|05]
[306154] >vr[00]33
[306189] >[14|07]ü[00|04]
[306189] >vr[00]8
[307035] >[14]wý[00|05]
[307035] >vr[00]31
[307040] <[14|01]�[00|17]vw[00]44[00]6 8 2016 18:50:05
[307101] >[14]kô[00|04]
[307101] >vr[00]4
[307166] >[14]HH[00|05]
[307166] >vr[00]30
[307192] >[14|08]å[00|05]
[307192] >vr[00]44
[307221] >[14|19]Ô[00|05]
[307221] >vr[00]11
[307223] >[14]?$[00|04]
[307225] >vr[00]7
[307247] >[14]=i[00|05]
[307270] >vr[00]33
[307299] >[14|7F]r[00|04]
[307319] >vr[00]8
[308040] <[14|01]Ž[00|17]vw[00]44[00]6 8 2016 18:50:06
[308104] >[14|0A]Ò[00|04]
[308104] >vr[00]6
[308166] >[14]uŽ[00|04]
[308167] >vr[00]7
[308194] >[14]Fd[00|05]
[308194] >vr[00]33
[308221] >[14]2Ã[00|04]
[308221] >vr[00]8
[308264] >[14] d[00|04]
[308264] >vr[00]5
[309040] <[14|01]�[00|17]vw[00]44[00]6 8 2016 18:50:07
[309061] >[14|06|0E|00|05]
[309061] >vr[00]31
[309061] >[14]G[10|00|05]
[309061] >vr[00]30
[309106] >[14];G[00|05]
[309106] >vr[00]44
[309177] >[14]F³[00|04]
[309177] >vr[00]7
[309178] >[14]vW[00|05]
[309184] >vr[00]33
[309205] >[14|1B]í[00|04]
[309233] >vr[00]8
[310005] >[14];Ÿ[00|05]
[310005] >vr[00]31
[310040] <[14|01]�[00|17]vw[00]44[00]6 8 2016 18:50:08
[310081] >[14]+5[00|05]
[310081] >vr[00]12
[310175] >[14]c[12|00|05]
[310175] >vr[00]30
[310176] >[14|18]”[00|05]
[310176] >vr[00]19
[310176] >[14]O*[00|05]
[310176] >vr[00]44
[310210] >[14].Ì[00|04]
[310213] >vr[00]7
[310236] >[14]t[19|00|05]
[310261] >vr[00]33
[310282] >[14|04]3[00|04]
[310310] >vr[00]8
[311040] <[14|01]‘[00|17]vw[00]44[00]6 8 2016 18:50:09
[311197] >[14].Œ[00|04]
[311197] >vr[00]7
[311198] >[14]:[18|00|05]
[311198] >vr[00]33
[311199] >[14]=D[00|04]
[311199] >vr[00]8
[312040] <[14|01]’[00|17]vw[00]44[00]6 8 2016 18:50:10
[312061] >[14]mÆ[00|05]
[312061] >vr[00]31
[312061] >[14|0A]A[00|05]
[312061] >vr[00]30
[312082] >[14|7F]’[00|05]
[312090] >vr[00]44
[312146] >[14]>ø[00|04]
[312147] >vr[00]7
[312157] >[14]@j[00|05]
[312183] >vr[00]33
[312204] >[14]S,[00|04]
[312230] >vr[00]8
[313040] <[14|01]“[00|17]vw[00]44[00]6 8 2016 18:50:11
[313101] >[14]9?[00|05]
[313101] >vr[00]31
[313101] >[14]B½[00|04]
[313101] >vr[00]4
[313103] >[14]_^[00|05]
[313103] >vr[00]12
[313179] >[14]h²[00|05]
[313179] >vr[00]30
[313180] >[14]dÁ[00|05]
[313181] >vr[00]19
[313206] >[14],y[00|04]
[313228] >vr[00]6
[313248] >[14|10]®[00|05]
[313276] >vr[00]44
[313297] >[14|10]}[00|05]
[313325] >vr[00]11
[313346] >[14]u²[00|04]
[313372] >vr[00]7
[313391] >[14|14]’[00|05]
[313419] >vr[00]33
[313440] >[14]bê[00|04]
[313466] >vr[00]8
[313486] >[14]L7[00|04]
[313512] >vr[00]5
[314040] <[14|01]”[00|17]vw[00]44[00]6 8 2016 18:50:12
[314259] >[14]Bc[00|05]
[314259] >vr[00]44
[314260] >[14|04]Ÿ[00|04]
[314260] >vr[00]7
[314261] >[14]8[00|05] [314261] >vr[00]33 [314269] >[14]1­[00|04] [314295] >vr[00]8 [315022] >[14]]Ó[00|05] [315022] >vr[00]31 [315040] <[14|01]•[00|17]vw[00]44[00]6 8 2016 18:50:13 [315061] >[14]V[08|00|05] [315061] >vr[00]30 [315156] >[14]-í[00|04] [315156] >vr[00]7 [315157] >[14]_[0C|00|05] [315157] >vr[00]33 [315186] >[14]}‡[00|04] [315186] >vr[00]8 [316040] <[14|01]–[00|17]vw[00]44[00]6 8 2016 18:50:14 [316065] >[14]^à[00|05] [316066] >vr[00]31 [316066] >[14]4µ[00|04] [316066] >vr[00]4 [316110] >[14]PR[00|05] [316110] >vr[00]12 [316180] >[14]jd[00|05] [316180] >vr[00]30 [316181] >[14]Fo[00|05] [316181] >vr[00]19 [316199] >[14]%[06|00|05] [316228] >vr[00]44 [316248] >[14|1F|16|00|04] [316278] >vr[00]7 [316297] >[14]1ê[00|05] [316323] >vr[00]33 [316344] >[14]fÀ[00|04] [316370] >vr[00]8 [317040] <[14|01]—[00|17]vw[00]44[00]6 8 2016 18:50:15 [317212] >[14]!H[00|04] [317212] >vr[00]7 [317213] >[14],[1B|00|05] [317214] >vr[00]33 [317238] >[14]Ô[00|04]
[317238] >vr[00]8

If the get request is handled correctly it can handle at least 5000 characters i.e. 10 times want you need.

Please post the minimum sketch that gives you errors.

How do I post this code ?

Hereby the code causing problems Part of the sketch is based on the entering ssid and password sketch when connect with ssid and password in flash is not working. The HTTP requests are send with a button in this case. Please do not pay any attention to possible not defined parameters in the sketch, since it is a cut and paste to reduce the size and declarations of parameters is not the issue I think

//#define BLYNK_DEBUG // Optional, this enables lots of print

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SPI.h>

#include <SimpleTimer.h>
// nieuwe toevoeging weblogin
#include <ESP8266mDNS.h>
#include <WiFiClient.h>
MDNSResponder mdns;
WiFiServer server(80);
const char* APssid = "SCOREBOARD1"; // Name of access point
String st;
String rsid;
String rpass;
boolean newSSID = false;
#include <TimeLib.h>
#include <WidgetRTC.h>
char auth[] = "xxxxxxxxx";
WidgetTerminal terminal(V0);
SimpleTimer timer;
WidgetLED led3(V25); //register to virtual pin 1
WidgetLED led4(V26); //register to virtual pin 1
WidgetLED led5(V38); //register to virtual pin 1
WidgetLED led6(V39); //register to virtual pin 1

byte instelling = 0;
char tijdelijkchar[100];
char* waarden[11] = {"0", "1234", "100", "100000", "Speler        1", "Club        1", "123456", "Speler        2", "Club        2", "654321", "2"};
String tussenw[11] = {"0", "1234", "100", "100000", "Speler        1", "Club        1", "123456", "Speler        2", "Club        2", "654321", "2"};
byte wedstrijdpunt[2] = {0, 0};
byte kaart[2] = {0, 0};
byte setstand[2];
byte game[2];
char* speler[2] = {"Speler        1", "Speler        2"};
boolean servicestart = true;
byte volgnummer = 1;
boolean spiegel = true;
byte g[5][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}};
boolean wissel = false;
byte timeout[2] ;
boolean service = true;

WiFiClient client;
WidgetRTC rtc;

BLYNK_ATTACH_WIDGET(rtc, V43);
// Utility function for digital clock display: prints preceding colon and leading 0
char bufferspecial[250];
char specials[] = "$ ";

static char hex_digit(char c)
{ return "01234567890ABCDEF"[c & 0x0F];
}
char *urlencode(char *dst, char *src)
{ char c, *d = dst;
  while (c = *src++)
  { if (strchr(specials, c))
    { *d++ = '%';
      *d++ = hex_digit(c >> 4);
      c = hex_digit(c);
    }
    *d++ = c;
  }
  *d = '\0';
  return dst;
}
// Digital clock display of the time
void clockDisplay()
{ String digitm = "";
  String digits = "";


  if (minute() < 10) {
    digitm = "0";
  } else {
    digitm = "";
  }
  if (second() < 10) {
    digits = "0";
  } else {
    digits = "";
  }
  String currentTime = String(hour()) + ":" + digitm + minute() + ":" + digits + second();
  String currentDate = String(day()) + " " + month() + " " + year();

  String totaltime = currentDate + " " + currentTime;

  Blynk.virtualWrite(V44, totaltime);


}

void setup()
{
  Serial.begin(9600);
  delay(10);
  Serial.println();
  Serial.println();

  // if the stored SSID and password connected successfully, exit setup
  if ( testWifi()) {
    Blynk.config(auth);
    //return;
  }
  // otherwise, set up an access point to input SSID and password
  else {
    Serial.println("");
    Serial.println("Connect timed out, opening AP");
    setupAP();
  }
  terminal.println(F("Blynk v" BLYNK_VERSION ": Device started"));
  Serial.println(F("Applicatie start"));
  rtc.begin();
  //Serial.println(F("RTC start"));

  timer.setInterval(1000L, clockDisplay);
  timer.setInterval(500L, checkdetijd);
  timer.setInterval(60000L, timeupdate);

  // Setup a function to be called every second

  startupreset();
  timeout[0] = 0;
  timeout[1] = 0;
  servicestart = service;
  schermupdate();


}
void loop()
{

  Blynk.run();
  timer.run(); // Initiates SimpleTimer
  yield();

}
void timeupdate() {
  rtc.begin();
}
int testWifi(void) {
  long Timeout = (millis() + 25000);

  Serial.print("Waiting for Wifi to connect. ");
  while (millis() < Timeout) {
    delay(500);
    Serial.print(".");
    if (WiFi.status() == WL_CONNECTED) {
      Serial.println("");
      Serial.println("WiFi connected.");
      return (1);
    }
  }
  return (0);
}

void launchWeb(int webtype) {
  Serial.println("");
  Serial.println("WiFi connected");
  Serial.println(WiFi.localIP());
  Serial.println(WiFi.softAPIP());

  // Start the server
  server.begin();
  Serial.println("Server started");
  int b = 20;
  int c = 0;
  while (b == 20) {
    b = mdns1(webtype);

    //If a new SSID and Password were sent, close the AP, and connect to local WIFI
    if (newSSID == true) {
      newSSID = false;

      //convert SSID and Password sting to char
      char ssid[rsid.length()];
      rsid.toCharArray(ssid, rsid.length());
      char pass[rpass.length()];
      rpass.toCharArray(pass, rpass.length());

      Serial.println("Connecting to local Wifi"); //Close the AP and connect with new SSID and P/W
      WiFi.softAPdisconnect(true);
      delay(500);
      WiFi.begin(ssid, pass);
      delay(1000);

      if ( testWifi()) {
        Blynk.config(auth);
        return;
      }

      else {
        Serial.println("");
        Serial.println("New SSID or Password failed. Reconnect to server, and try again.");
        setupAP();
        return;
      }
    }
  }
}


void setupAP(void) {

  WiFi.mode(WIFI_STA);
  WiFi.disconnect();
  delay(100);
  int n = WiFi.scanNetworks();
  Serial.println("scan done");
  if (n == 0)
    Serial.println("no networks found");
  else
  {
    Serial.print(n);
    Serial.println(" networks found");
  }
  Serial.println("");
  st = "<ul>";
  for (int i = 0; i < n; ++i)
  {
    // Print SSID and RSSI for each network found
    st += "<li>";
    st += WiFi.SSID(i);
    st += " (";
    st += WiFi.RSSI(i);
    st += ")";
    st += (WiFi.encryptionType(i) == ENC_TYPE_NONE) ? " " : "*";
    st += "</li>";
  }
  st += "</ul>";
  delay(100);
  WiFi.softAP(APssid);
  Serial.println("softAP");
  Serial.println("");
  launchWeb(1);
}


String urldecode(const char *src) { //fix encoding
  String decoded = "";
  char a, b;

  while (*src) {
    if ((*src == '%') && ((a = src[1]) && (b = src[2])) && (isxdigit(a) && isxdigit(b))) {
      if (a >= 'a')
        a -= 'a' - 'A';
      if (a >= 'A')
        a -= ('A' - 10);
      else
        a -= '0';
      if (b >= 'a')
        b -= 'a' - 'A';
      if (b >= 'A')
        b -= ('A' - 10);
      else
        b -= '0';
      decoded += char(16 * a + b);
      src += 3;
    }
    else if (*src == '+') {
      decoded += ' ';
      *src++;
    }
    else {
      decoded += *src;
      *src++;
    }
  }
  decoded += '\0';
  return decoded;
}


int mdns1(int webtype) {

  // Check if a client has connected
  WiFiClient client = server.available();
  if (!client) {
    return (20);
  }
  Serial.println("");
  Serial.println("New client");

  // Wait for data from client to become available
  while (client.connected() && !client.available()) {
    delay(1);
  }

  // Read the first line of HTTP request
  String req = client.readStringUntil('\r');

  // First line of HTTP request looks like "GET /path HTTP/1.1"
  // Retrieve the "/path" part by finding the spaces
  int addr_start = req.indexOf(' ');
  int addr_end = req.indexOf(' ', addr_start + 1);
  if (addr_start == -1 || addr_end == -1) {
    Serial.print("Invalid request: ");
    Serial.println(req);
    return (20);
  }
  req = req.substring(addr_start + 1, addr_end);
  Serial.print("Request: ");
  Serial.println(req);
  client.flush();
  String s;
  if ( webtype == 1 ) {
    if (req == "/")
    {
      IPAddress ip = WiFi.softAPIP();
      String ipStr = String(ip[0]) + '.' + String(ip[1]) + '.' + String(ip[2]) + '.' + String(ip[3]);
      s = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n<!DOCTYPE HTML>\r\n<html>";
      s += "<font face='arial,helvetica' size='7'>";
      s += "<b><label>Hello from NODEMCU at ";
      s += ipStr;
      s += "</label></b><p>";
      s += st;
      s += "<form method='get' action='a'><label>SSID: </label><input name='ssid' style='width:200px; height:60px; font-size:50px;'>   ";
      s += "<label>Password: </label><input name='pass' style='width:200px; height:60px; font-size:50px;'>";
      s += "<p><input type='submit' style='font-size:60px'></form>";
      s += "</html>\r\n\r\n";
      Serial.println("Sending 200");
    }
    else if ( req.startsWith("/a?ssid=") ) {

      newSSID = true;
      String qsid; //WiFi SSID
      qsid = urldecode(req.substring(8, req.indexOf('&')).c_str()); //correct coding for spaces as "+"
      Serial.println(qsid);
      Serial.println("");
      rsid = qsid;

      String qpass; //Wifi Password
      qpass = urldecode(req.substring(req.lastIndexOf('=') + 1).c_str()); //correct for coding spaces as "+"
      Serial.println(qpass);
      Serial.println("");
      rpass = qpass;

      s = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n<!DOCTYPE HTML>\r\n<html>Hello from ESP8266 ";
      s += "<p> New SSID and Password accepted</html>\r\n\r\n";
    }
    else
    {
      s = "HTTP/1.1 404 Not Found\r\n\r\n";
      Serial.println("Sending 404");
    }
  }
  else
  {
    if (req == "/")
    {
      s = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n<!DOCTYPE HTML>\r\n<html>Hello from ESP8266";
      s += "<p>";
      s += "</html>\r\n\r\n";
      Serial.println("Sending 200");
    }
    else
    {
      s = "HTTP/1.1 404 Not Found\r\n\r\n";
      Serial.println("Sending 404");
    }
  }
  client.print(s);
  Serial.println("Done with client");
  return (20);
}


//Use virtual pin 48 to overwrite wifi credentials in flash
BLYNK_WRITE(V48) {
  if (param.asInt()) {
    Serial.println("Erasing SSID and restarting.");
    delay(100);
    WiFi.begin("FakeSSID", "FakePW"); //replace current WiFi credentials with fake ones
    setupAP();
  }
}



// Keep this flag not to re-sync on every reconnection
bool isFirstConnect = true;

// This function will run every time Blynk connection is established
BLYNK_CONNECTED() {
  if (isFirstConnect) {
    // Request Blynk server to re-send latest values for all pins
    startupreset();
    Blynk.syncVirtual(V30);
    Blynk.syncVirtual(V31);
    Blynk.syncVirtual(V16);
    Blynk.syncVirtual(V17);
    Blynk.syncVirtual(V14);
    Blynk.syncVirtual(V15);
    Blynk.syncVirtual(V44);
    Blynk.syncVirtual(V41);
    Blynk.syncVirtual(V0);
    Blynk.syncVirtual(V38);
    Blynk.syncVirtual(V25);
    Blynk.syncVirtual(V26);
    Blynk.syncVirtual(V13);
    Blynk.syncVirtual(V39);
    // You can also update an individual Virtual pin like this:
    //Blynk.syncVirtual(V0);

    isFirstConnect = false;
  }
}

void httpscoreboard() {
  boolean webscore = true;
  if (webscore) {
    const char* host = "xxxxxxxxx.nl";
    unsigned int port = 80;
    String digitmonth = "";
    String digitday = "";
    if (month() < 10) {
      digitmonth = "0";
    }
    if (day() < 10) {
      digitday = "0";
    }
    String dt = year() + digitmonth + month() + digitday + day();
    //Serial.println(dt);
    Serial.print(F("Connecting to "));
    Serial.print(host);
    Serial.print(F(":"));
    Serial.print(port);
    Serial.print("... ");
    boolean serve = true;
    if (!wissel) {
      serve = service;
    } else {
      serve = !service;
    }
    if (client.connect(host, port)) {
      Serial.println(F("OK"));
      Serial.println(F("Sending GET request"));

      //the URLENCODE is to change unwanted characters to UNIcode such as SPACE to %20
      String HTReq = String("GET /anonymous.php?datum=") + dt + "&clubnr=" + waarden[2] + "&boardid=" + waarden[10] + "&wedstrijdnr=" + waarden[3] + String(volgnummer - 1) + "&naam1=" + urlencode(bufferspecial, speler[0]);
      HTReq = HTReq + String("&naam2=") + urlencode(bufferspecial, speler[1]) + "&team1=" + urlencode(bufferspecial, waarden[5]) + "&team2=" + urlencode(bufferspecial, waarden[8]) + "&service=" + serve + "&wissel=" + wissel;
      HTReq = HTReq + String("&game1=") + g[0][0] + urlencode(bufferspecial, " - ") + g[0][1] + "&game2=" + g[1][0] + urlencode(bufferspecial, " - ") + g[1][1] + "&game3=" + g[2][0] + urlencode(bufferspecial, " - ") + g[2][1] + "&game4=" + g[3][0] + urlencode(bufferspecial, " - ") + g[3][1];
      HTReq = HTReq + String("&game5=") + g[4][0] + urlencode(bufferspecial, " - ") + g[4][1] + "&sets=" + setstand[0] + urlencode(bufferspecial, " - ") + setstand[1] + "&wedstrijdpunt=" + 0 + urlencode(bufferspecial, " - ") + 0; //markeer2
      HTReq = HTReq + String("&volgnr=") + volgnummer + "&bondsnr1=" + waarden[6] + "&bondsnr2=" + waarden[9] + "&actueel1=" + game[0] + "&actueel2=" + game[1] + "&status1=" + kaart[0] + "&status2=" + kaart[1] + "&timeout1=" + timeout[0] + "&timeout2=" + timeout[1] + "&stand1=" + wedstrijdpunt[0] + "&stand2=" + wedstrijdpunt[1];

      Serial.println(HTReq.length());

      //Serial.println(HTReq);
      client.print (HTReq);
      client.println(" HTTP/1.1");
      client.print("Host: ");
      client.println(host);
      client.println("Connection: close");
      client.println();

      client.flush();
      client.stop();
      Serial.println(F("Done."));


    } else {
      Serial.println(F("failed"));

    }
  }
}

void httpwedstrijd() {
  if (webscore) {
    const char* host = "xxxxxxxxxxxxx.nl";
    unsigned int port = 80;
    String digitmonth = "";
    String digitday = "";
    if (month() < 10) {
      digitmonth = "0";
    }
    if (day() < 10) {
      digitday = "0";
    }
    String dt = year() + digitmonth + month() + digitday + day();
    //Serial.println(dt);
    Serial.print(F("Connecting to "));
    Serial.print(host);
    Serial.print(F(":"));
    Serial.print(port);
    Serial.print("... HTTPWEDSTRIJD");
    boolean serve = true;
    if (!wissel) {
      serve = service;
    } else {
      serve = !service;
    }
    if (client.connect(host, port)) {
      Serial.println(F("OK"));


      Serial.println(F("Sending GET request"));
      //Serial.println(getReq);
      client.print("GET /anonymous2.php?datum=");

      client.print(dt);
      client.print("&clubnr=");
      client.print(waarden[2]);
      client.print("&boardid=");
      client.print(waarden[10]);
      client.print("&wedstrijdnr=");
      client.print(waarden[3]);

      client.print("&team1thuis=");
      client.print(urlencode(bufferspecial, waarden[5]));
      client.print("&naam1=");
      client.print(wedstrijdpunt[0]);
      client.print("&team1uit=");
      client.print(urlencode(bufferspecial, waarden[8]));


      client.print("&naam2=");
      client.print(wedstrijdpunt[1]);
      client.println(" HTTP/1.1");
      client.print("Host: ");
      client.println(host);
      client.println("Connection: close");
      client.println();

      client.flush();
      client.stop();
      Serial.println(F("Done."));




    } else {
      Serial.println(F("failed"));

    }
  }
}

void startupreset() {


  vijfdegame = false;
  service = true;
  wissel = false;
  game[wissel]  = 0;
  game[!wissel]  = 0;
  setstand[wissel]  = 0;
  setstand[!wissel]  = 0;
  speler[wissel]  = waarden[4];
  speler[!wissel]  = waarden[7];
  timeout[wissel] = 0;
  timeout[!wissel] = 0;
  webscore = false;

  servicestart = service;

  rtc.begin();
  opslag();
  schermupdate();

  Blynk.virtualWrite(V33, String("Wedstrijd: ") + volgnummer);
  Blynk.virtualWrite(V2, 2);
  Blynk.virtualWrite(V3, 1);
  Blynk.virtualWrite(V41, 1);
  Blynk.virtualWrite(V10, 1);
  Blynk.virtualWrite(V22, 1);
  Blynk.virtualWrite(V13, 0);
  regelstatus();

}

BLYNK_WRITE(V28) //Button Widget is writing to pin V1
{
  int pinData = param.asInt();
  if (pinData == 1) {
    httpscoreboard();

  }
}
BLYNK_WRITE(V29) //Button Widget is writing to pin V1
{
  int pinData = param.asInt();
  if (pinData == 1) {
    httpwedstrijd();

  }
}

The sketch is a bit too big for me to analyse.

Are you able to trim most of it out and still have the errors? Ultimately that is what you need to do. Start with the simple stuff, check it, add more functions, check it, add more functions etc.

What does checkdetijd translate to in English and where is this function?

@Robert_Holscher did you try increasing Blynk Read Buffer?

Checkdetijd means checktime and is not important in this
I have got it totally working with less big strings in the httpscoreboard()
The problem is in this function. The only reason i have put the other stuff with it, is due to the wifi connection and maybe causing timeouts

The total number of virtual pins is 48. This with the timeclock refresh is maybe a bit too much.
A lot of virtual pins are updatet regularly most of them with push settings

No only the send buffer. Readbuffer is 256

How long does it take to “get” the data as I notice at some point your are missing the heartbeat? As the heartbeat is 10 seconds it suggests something you are doing is taking too long. Even the checkdetijd if it takes 600 ms and is called every 500 ms you could have problems.

All the “Cmd skipped:20” errors that start as soon as your ESP connects suggest you have other problems not related to the Get command.

Sorry I mean BLYNK_MAX_SENDBYTES. What value did you put?

Would iT help to change heartbeat setting to 20 in the blynkconfig.h ?
How can I troubleshoot the command 20 error?
The echo of the get is normally within 500ms
I already tried to speed things up, or even put it in a timer event
Maybe I should change the read buffer setting to 512 and the send buffer as well

The send buffer was set to 256 instead of 128. I think I also have had a setting of 512 but can try that as well

I wouldn’t change the heartbeat timeout as this isn’t fixing your bad code.

Error 20 is a hardware command that should be sent to the app but failed.

To debug remove 95% of your code, test, add 20%, test, add 20%, test etc as per my earlier fix.

Hi Costas,
I think I have solved the problem. It was a combination of no blynk.connect(), before Blynk.write commands were done. This is the command 20 and command 16 (16 was the RTC not able to find blynk ).
So I have it now waiting for blynk to connect properly and now it has lost the command errors.
Another problem was the Data transfer initiated by the widget. I have now set everything to push and that has lost a lot of traffic.
Another adaptation I have made is to take out the ones per 60 seconds rtc.begin()
It now checks at startup if the year is 1970 and if so, then initiates an rtc.begin()
With all this done, and having made the buffers bigger to 512kb in and out, the thing runs stable now. I now only need to reintegrate the routine to automatically connect with the ssid and password from flash and if not, then initiate the server to enter the network and password.
Thanks for putting me on the right track

1 Like

How would you do that and where? Increase read and write buffers