B4X:
Sub StartConnection As ResumableSub
Funzioni.ScriviLog("Trying to connect to: " & Funzioni.ip)
CloseExistingConnection
clientSocket.Initialize("clientSocket")
clientSocket.Connect(Funzioni.ip, Funzioni.port, 8000)
Wait For ClientSocket_Connected (Successful As Boolean)...
B4X:
Sub StartConnection As ResumableSub
Funzioni.ScriviLog("Trying to connect to: " & Funzioni.ip)
CloseExistingConnection
clientSocket.Initialize("clientSocket")
clientSocket.Connect(Funzioni.ip, Funzioni.port, 8000)
Wait For ClientSocket_Connected (Successful As Boolean)...
hi, I am connecting to a tcp device via clientsocket and sending a message via AsyncStreams, if I create a sub to send the message can I receive the reply on the same sub or only through AStreams1_NewData?
In one cycle, I would need to send data and receive an answer immediately before...