Labeled Value show question mark

Hi

My app is using a labeled value to display data from the V7.
The value is displayed but a question mark alternate with the value.
For instance : 123.30 ? 123.34 ? and so on.

Thank you for any help.

#define BLYNK_PRINT Serial1


//#include <blynk.h>



// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ";

char Pressure[7];
BlynkTimer timer;

int eflag=D0; // This flag is set from PSoC3
const unsigned long SendEmail = 17000L;
unsigned long lastEmail;// Global initialize to 0

const unsigned long SendPressure = 2000L;
unsigned long lastPressure;// Global initialize to 0




void sendPressure()
{
 
  
 int i=0;


while ( Serial1.available() && i < 7  )
  
      {  
     
     
      Pressure[i] = Serial1.read(); 
      if(  Pressure[i]=='\0'   )
         { break;}
          i++;
     
      }
 
     i=0;
     Pressure[6] = '\0'; 
    // Send it to the server
  Blynk.virtualWrite(V7, Pressure); // send info  to Blynk app
 
  
} 
/***********************************************/ 
  
  

void SEmail()
{
   
  
   
       
        if (eflag)
        { Blynk.email( "Subjet: High Presure", "Lbr >400");
          eflag=0; }
          
        else{;}
          
       
   }
    


/**********************************************/

void setup()
{
 
  // Debug console
  Serial1.begin(56700);

  delay(5000); // Allow board to settle
  Blynk.begin(auth);
  Blynk.email( "Subject", "My Blynk project is online.");
   pinMode(eflag, INPUT);
 
 
}



void loop()
{
   
  
  Blynk.run();

 
 
 
  unsigned long topLoop = millis(); 
  

 if ( (topLoop - lastPressure) >= SendPressure) 
      { lastPressure = topLoop;
         sendPressure();
      }
 
 
 if ( (topLoop - lastEmail) >= SendEmail) 
      { lastEmail = topLoop;
         SEmail();
         eflag=0;
      }
 
                            
}

@Sony777 the ? normally means you are sending a character that can’t be printed / displayed.

I’m guessing it’s your use of “\0”.

Hi Costas
Thank you for the answer.
I change a little bit the code eliminating ‘\0’ characters
The issue is going on yet.

What does manage the font of the characters on labeled value?
Because the fonts are too small.
Please see the updated code:

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial1


//#include <blynk.h>



// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ";

char Pressure[6];
BlynkTimer timer;
// int Email_1 =0;
int eflag=D0; // This flag is set from PSoC3
const unsigned long SendEmail = 17000L;
unsigned long lastEmail;// Global initialize to 0

const unsigned long SendPressure = 2000L;
unsigned long lastPressure;// Global initialize to 0




void sendPressure()
{
 
  
 int i=0;



  while ( Serial1.available() >0)
  {  
     
      
      Pressure[i] = Serial1.read(); 
    
      if(i<0x07)
       
        {i++;}
      
      
       else { break;}
         
     
      }
 
   
 
    // Send it to the server
  Blynk.virtualWrite(V7, Pressure); // send info treceived to Blynk app
 
  
} 
/***********************************************/ 
  
  

void SEmail()
{
   
  
   
       
        if (eflag)
        { Blynk.email( "Subjet: High Presure", "Lbr >300");
          eflag=0; }
          
        else{;}
          
       
   }
    


/**********************************************/

void setup()
{
 
  // Debug console
  Serial1.begin(56700);

  delay(5000); // Allow board to settle
  Blynk.begin(auth);
  Blynk.email( "Subject", "My Blynk project is online.");
   pinMode(eflag, INPUT);
 
 
}



void loop()
{
   
  
  Blynk.run();

 
 
 
  unsigned long topLoop = millis(); 
  

 if ( (topLoop - lastPressure) >= SendPressure) 
      { lastPressure = topLoop;
         sendPressure();
      }
 
 
 if ( (topLoop - lastEmail) >= SendEmail) 
      { lastEmail = topLoop;
         SEmail();
         eflag=0;
      }
 
                            
}

Thank you