Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to use Serial.find() function in arduino

Status
Not open for further replies.
Here is a short example:

Code:
boolean isOKFound = Serial.find("OK\r\n");    //Search for 'OK' string response from GSM module
                                              //return true if found, or false if string is not found after 1 second
//or

Serial.setTimeout(5000);
boolean isOKFound = Serial.find("OK\r\n");    //Wait for 'OK' for 5 seconds
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top