Incoming string from serial to arrays?


sorry might seem newb question, here's i'm trying do.

i'm sending string via serial linux console ie:
"wget -qo- "http://192.168.1.2/myscript.php"

and returns like:
"aaa:b ccc:d
root@dd-wrt:~#"

i need strip off shell line, break split string on space, split 2 arrays via ":".

one thing return "aaa:b ccccccc:d eeee:f gg:h" or "aaa:b", has dynamic.

after split, need loop thru each of final array groupings can take element[1] , switch statement on that, use element[0] printing else out console.

like said, sorry noob question. i'm php developer , it's been years since i've played c.

quote
like said, sorry noob question

two things...

1. i've read post twice , cannot find question.

2. question have arduino?


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Incoming string from serial to arrays?


arduino

Comments