Pages: [1]   Go Down
Author Topic: Find string  (Read 291 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

After I upload my data to myserver using a GET request, I then want the arduino to read the response which will indicate LED on or off. I have seen methods for reading strings where it finds a tag and then reads after it ... (if someone could explain this that would be great becase the codes seem to use if line ends with. <tag> and I'm confused why they look to the end of the line... )

But anyway .. if I just output a 0 or a 1 from the php do I still have to use this method or can it read that directly?
Logged

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9636
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The below might be of use if a lot of data is returned to the client. If the returned data string is short, then the returned string might be captured as a c-string or a String and examined for the desired data.

http://playground.arduino.cc/Code/TextFinder
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Pages: [1]   Go Up
Jump to: