2
What modification can I make to capture humidity and temperature of my serial port to insert within a variable the humidity that is printed on the serial port as %u00.00 and the temperature %T00.00.
Usually with single characters, example 'O',I use part of the function below, now what I’m not getting is that this buffer only matches the values that start in %t or %u so that I store in a variable and print on my LCD.
void recebeir(){
char valorlido = Serial.read();
if (valorlido == 'O'){ //liga ou desliga a tv
{
for (int i = 0; i < 1; i++) //Envia um flash de led com 3 comandos
irsend.sendRaw(S_pwr,68,38); //código clonado
delay(52);
}
Serial.println("Liguei ou Desliguei a TV");
}
Thank you!
Good, I hadn’t thought of it that way. Today I can’t test because I kept my plates, but I’ll try this logic and put it here if it worked. Thanks so far.
– user56107