Brian Carpenter
11-02-2010, 04:43 AM
I have a question concerning the printing of a string with FullDuplex to my PC.
I have been playing with the WiFly program that Rayman wrote. Instead of displaying that data to the 4.3 touch screen that he wrote it for, i would like to display the information to my PC via FullDuplex.
First, i will have to admit that i didnt understand the parsing of the data, but now i understand it.
pSearch:=string("<br>")
pos1:=pos2+1'SeekString(pos2+2,pSearch,@WebPageBuf fer)
pSearch:=string("<br>")
pos2:=SeekString(pos1+2,pSearch,@WebPageBuffer)
'Print Weather
repeat i from pos1+3 to pos2-1
print(WebPageBuffer[i])
print(13)
pos2++
The top part is how he determines where the data is in the string that he wants. The second part is how he is printing it to his screen.
So if i know how to find the start of my string and the end of the string, how do i output it to FullDuplex?
I have a
PUB str(stringptr)
'' Send string
repeat strsize(stringptr)
tx(byte[stringptr++])
but that would print everything and not the range i want. So, what am i missing?
I have been playing with the WiFly program that Rayman wrote. Instead of displaying that data to the 4.3 touch screen that he wrote it for, i would like to display the information to my PC via FullDuplex.
First, i will have to admit that i didnt understand the parsing of the data, but now i understand it.
pSearch:=string("<br>")
pos1:=pos2+1'SeekString(pos2+2,pSearch,@WebPageBuf fer)
pSearch:=string("<br>")
pos2:=SeekString(pos1+2,pSearch,@WebPageBuffer)
'Print Weather
repeat i from pos1+3 to pos2-1
print(WebPageBuffer[i])
print(13)
pos2++
The top part is how he determines where the data is in the string that he wants. The second part is how he is printing it to his screen.
So if i know how to find the start of my string and the end of the string, how do i output it to FullDuplex?
I have a
PUB str(stringptr)
'' Send string
repeat strsize(stringptr)
tx(byte[stringptr++])
but that would print everything and not the range i want. So, what am i missing?