I need to send commands to a pc prog that listens on port 6246 from a B4J prog.
With code below I can do this the 'clumsy' way that opens a browser everytime. I want to send data silently to listening webserver but can't figure out what method to use. Can anyone give me a hint how to do this.
Regards Håkan
With code below I can do this the 'clumsy' way that opens a browser everytime. I want to send data silently to listening webserver but can't figure out what method to use. Can anyone give me a hint how to do this.
B4X:
Sub SendToMLS_webbport()
Dim tmpStr As String' send : Command$SetVariable|TestVariable~Test
tmpStr = txt_To_MLS.Text & CRLF
Log(tmpStr)
fx.ShowExternalDocument("http://192.168.1.30:6246/" & tmpStr)
End Sub
Regards Håkan