serial.find function some example

Status
Not open for further replies.

Bhuvanesh123

Advanced Member level 4
Joined
Aug 29, 2013
Messages
113
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Location
Singrauli, India, India
Visit site
Activity points
814
Code:
void setup()
{
Serial.begin(9600);
}
void loop()

{
  if(Serial.available()>0)
{
  char a=Serial.read();
  boolean b= Serial.find("aa");
  if(b)
  Serial.println("found");}}

is this way of using serial.find.if not help me plzzz
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…