J Jan Van Gastel Member Licensed User Aug 3, 2016 #1 I am building an APP which communication with a PLC. I want to read out status of hardware inputs and outputs. My PLC can give this information with XML pages. So I need to read out a XML page. I already did this in VB.NET. I used a WebView and downloaded the documenttext of the XML to a string. This string I used for getting the right information. But how does it works in Android ? I've read something of HTTPutils2, but it does not work...
I am building an APP which communication with a PLC. I want to read out status of hardware inputs and outputs. My PLC can give this information with XML pages. So I need to read out a XML page. I already did this in VB.NET. I used a WebView and downloaded the documenttext of the XML to a string. This string I used for getting the right information. But how does it works in Android ? I've read something of HTTPutils2, but it does not work...
J Jan Van Gastel Member Licensed User Aug 4, 2016 #21 No, unfortenaly it won't work. Option 1 is change the http header of my PLC, but this one is a difficult . Option 2, is to connect not with XML. I can also ask data with a telnet session. Does this works in B4A ? Upvote 0
No, unfortenaly it won't work. Option 1 is change the http header of my PLC, but this one is a difficult . Option 2, is to connect not with XML. I can also ask data with a telnet session. Does this works in B4A ?
S sorex Expert Licensed User Longtime User Aug 4, 2016 #22 yes, telnet or serial communication should work if you know how to get that data out of it that way. Upvote 0
J Jan Van Gastel Member Licensed User Aug 5, 2016 #23 Yes, do you know how to start in b4a for telnet ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 5, 2016 #24 You can use the Network library + AsyncStreams to create a socket connection. Upvote 0