Thursday, 25 August 2016

How to find value from string in arduino




Arduino program is develops in c++ language. For find the value from the string we use the index of function.


Example:

    int intIndex = rcvData.indexOf('on');

   if (intIndex >0)

   {

     digitalWrite(7, HIGH);   // You word “On” is exit in string.

   }

0 comments:

Post a Comment

Thanks for comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Toggle Footer