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.

   }

Comments

Popular posts from this blog

How to make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.

How to create simple report in Microsoft Dynamics Navision.