Home » Arduino » IOT » How to check existing of charter in string in arduino How to check existing of charter in string in arduino Nirav Daraniya 01:00 Arduino IOT 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. } Share: Facebook Twitter Google+ StumbleUpon Digg Delicious LinkedIn Reddit Technorati
0 comments:
Post a Comment
Thanks for comment