Ciao a tutti,
Sto cercando di far funzionare il programma http://www.instructables.com/id/Control-the-relays-via-GPRS-SMS/
void loop()
{
char SerialInByte;
if(Serial.available())
{
SerialInByte = (unsigned char)Serial.read();
delay(5);
// -------------------------------------------------------------------
// EN: Program also listen to the GPRS shield message.
// -------------------------------------------------------------------
// EN: If the message ends with then process the message
if( SerialInByte == 13 ){
// EN: Store the char into the message buffer
ProcessGprsMsg();
}
if( SerialInByte == 10 ){
// EN: Skip Line feed
}
else {
// EN: store the current character in the message string buffer
msg += String(SerialInByte);
}
}
}
solo che non mi "processa" i messaggi
non riconosce i messaggi come CR ma vanno tutti come LF
qualcuno mi può spiegare come mai? può essere perchè uso un iPhone?
Grazie mille!