Terminal lose data [SOLVED]

Hi, I’m writng some code for SONOFF TH, blynk with mqtt.
My project can use blynk terminal input, so I can write somthing like “help”, and terminal would give me some help :slight_smile:
But the problem is terminal can’t send the all data. My help consists of two string - and terminal loose second string 50/50.
Sometime it loose first part of the message.
I’m using my oun blynk local service - if this is important.
I can’t insert code but this is the link: blynk_mqtt_terminal_problem

Hello. This should help http://docs.blynk.cc/#widgets-notifications-increasing-message-length-limit

@Dmitriy I have experienced the same issue and I’m pretty sure the total length of the messages between each terminal.flush() is well below 128 characters. Some days seem worse than others and strangely I would say local server is worse than the cloud server.

Perhaps I will monitor it over the coming days and see if it does relate to message length in any way.

Do you think some local servers (e.g. Pi Zero’s) could be to blame for the truncated messages?

I think the issue is here - https://github.com/blynkkk/blynk-library/blob/master/src/WidgetTerminal.h#L77

Looks like it should be BLYNK_MAX_SENDBYTES and not 32. @vshymanskyy

I’ve changed string 77 in WidgetTerminal.h
uint8_t mOutBuf[32]; -> uint8_t mOutBuf[128];
Now it’s working nice.

1 Like

Actually 32 should work. but if BLYNK_MAX_SENDBYTES seems more stable, we can change it.

1 Like