Ciao ragazzi, lo so sono insopportabile, dato che ogni giorno scrivo sul forum.
Oggi mi sto imbattendo sul fatto che quando ricerco il dato attraverso il seguente codice
finder.find("motore1:");
finder.find("");
motore1 = finder.getValue();
e per un motivo o per altro non lo trova, ecco che si blocca.
Sulla pagina della libreria
http://playground.arduino.cc/Code/TextFinder
c'è scritto che dopo circa 5 secondi che non trovail datolui passa all'istruzione successiva.
TextFinder( Client &stream, int timeout = 5); // ethernet
TextFinder(HardwareSerial &stream, int timeout = 5); // Serial
The constructor is given the client stream instance to process. The timeout is the number of seconds to wait for the next character before aborting the find and get methods. The default is 5 seconds if no timeout is given.
Ho verificato se questa sigla ci fosse e l'ho trovata purtroppo però non mi funziona in modo corretto dato che si blocca.
Sto utilizzando questa libreria sull'arduino mega 2560