Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 15 made on Thursday September 16, 2010 at 02:01
BluPhenix
Long Time Member
Joined:
Posts:
December 2008
371
On September 15, 2010 at 20:19, bnokes@AAVViD said...

so if label = s.match(" ", "\r", 2000); is the \r for return and does it have to be in there?

Yes the \r (or any other last char the device sends you) has to be there if you're using match(). This command basically says when I send you something i'll wait for a string from you and I'll read that string until i encounter an \r inside it, then I'll stop reading and provide the data to the user. But I won't wait for more than 2 seconds for this \r of yours. If the 2 seconds pass I'll provide the user the uncomplete data I'll get till the 2 seconds pass (could be none).

As said " " or "" is not a valid value.


Hosting Services by ipHouse