Thursday, January 22, 2015

String Delimiter Program for Arduino Platform

An arduino sketch for parsing strings is required in general firmware.
Here it is a bsic structure of code is proposed to delimit the string of  bytes by Colon(:).

For, Example

Series of Data comming is in row of "12:123:23:45:8283:9474758:94848:28373:848:3834:89485:384:8484:9494949:9"

Then to retrieve or parse each individual value of data the code is proposed based on inbuilt functions used from arduino library.


Fig 1




Fig 2.

Code has been tested on Arduino Mega2560 Board. Fig 2. shows sample code with output.
If you want to have sketch  please write one mail to me at info@xtintt.com.

http://www.xtintt.com                                   https://www.facebook.com/Xtintt
info@xtintt.com.                                           https://twitter.com/dhavalpateel
Skype: xtint.technology                                https://plus.google.com/u/0/+DhavalPatelFirmwareProgrammer    
+91-9173-929262                                         in.linkedin.com/in/dhavalnpatel/