serial.fiind()

Thread Starter

bhuvanesh

Joined Aug 10, 2013
268
Rich (BB 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
 

DerStrom8

Joined Feb 20, 2011
2,390
Rich (BB 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
You're going to have to give us a lot more information than that. What language/compiler are you using? What specific device are you using? What are you trying to do with it?

You can't post such a vague question like that and expect a reasonable answer.
 

THE_RB

Joined Feb 11, 2008
5,438
If serial.find() is a built in function of your C compiler then it should be well documented in your compilers help file (probably with code examples)!

Knowing how to use your compiler's help file and language reference for all it's inbuilt functions is a very important skill. :)
 
Top