Dr_Doggy
Well-Known Member
Code:
void loop() {
char b[6];
//while(Serial.available()) //seems not needed afterall, at least not yet
//{
a= mySerial.readString(); //data from bluetooth
a.toCharArray(b, a.length());
Serial.println(a);
if(a=="OK" || a=="ok")
{
digitalWrite(ledpin,HIGH);
delay(1000);
digitalWrite(ledpin,LOW);
}
else
{
blinkS(b);
}
//}
}