02-02-2010 10:00 AM
I attaching a little code snippet. I've probably asked a similar question in another thread, but I'm not getting the reliability I'm looking for, so I'll ask again. In my example, XML is returned to the windows shown, but the problem is still the same. What happens in my system is that I send a message to a radio (via http) that I'm connected to (via ethernet to its IP address) and it responds with XML (usually). The message POST goes out in one state (of my state machine), then I go to the attached code in another state (ProcessResponse). I fairly reliably get the XML reponse in the Radio Response window, but sometimes the XML Response window is blank. I added the 2500ms delay to ensure enough time for the radio to respond, but still the XML is blank sometimes. I'm not sure if there's an event-driven way to tell me that there's data in the Radio Responses window - I just need a more reliable method of knowing when there is data to grab/parse.
02-02-2010 01:05 PM