If I open the appli on my phone (that is running) to check last events, only the last lcd.print is displayed on the LCD.
When the lcd.print are sent when I’m on the appli, everything works well. But if I exit and come back (whitout stopping but causing a reconnect), the LCD only displays the last print.
Has somebody else the same problem?
I found the same behavior that should be corrected here →
If I put the appli in background and re-open it, it only stays the last print “KG” on the LCD.
Same behavior, if the appli does a reconnect to the server.
It should be nice to fix it because it makes the LCD unusable.
Ok, I can confirm the issue occurs only with device selector.
I have made a very simple project with just one LCD, and it works without issue.
I’ve added a device selector and assigned it to the LCD widget, and now the problem is present on every test (only “PRINT2” stays on LCD if I put the appli in background and come back to it)
//JUST CONNECT+test LCD
//<<LIBRARIES>>
#define BLYNK_PRINT Serial // Comment this out to disable prints and save flash space
#define BLYNK_DEBUG // Optional, this enables lots of prints
#define BLYNK_NO_BUILTIN // Disable built-in analog & digital pin operations to spare flash space
#define BLYNK_NO_FLOAT // Disable float operations to spare flash space
#define BLYNK_NO_INFO // Skip device info to spare flash space
#include <BlynkSimpleUIPEthernet.h> // ENC28J60 ethernet BLYNK library
WidgetLCD lcd(V0);
unsigned long COUNT=0;
void setup() {
Ethernet.begin(arduino_mac, arduino_ip, dns_ip, gateway_ip, subnet_mask );
Blynk.config(auth, "xx.xx..xx.xx", xxxx);
}
void loop(){
while (Blynk.connected()==false) {Blynk.disconnect(); Blynk.connect();} //wait connection serveur//
Blynk.run();
if (COUNT==100000){
lcd.print(6, 1, F("PRINT2"));
}
if (COUNT==1000){
lcd.clear();
lcd.print(0, 0, F("PRINT1"));
}
COUNT++;
}