Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
xml query
-
i'm using ControlByWeb devices that respond to http queries such as http://192.168.1.1/state.xml with an xml dump of data in the format <input0state> 345 </input0state>.
I can parse the html using the http retriever command, but need to be able to read and parse the xml data instead. Tried using the tcp/ip module with IP and port 80, using the string, but no joy.
aloha
b -
These devices support Modbus-TCP, don't they? You could use this instead of XML.
-
Not the analog units, only xml. Any ideas?
b -
I have used the HTTP Retriever to parse XML from a URL. I wonder if you just need to get your regex correct?
-
I agree with Joel. The HTTP Retriever would work fine for this. Regex is cumbersome to work with but very powerful.
I haven't had time to test this and I don't know what the entire XML response looks like but here is an example regex string that should get you close:
<input0state>(.*)</input0State>