Devo inviare da un app dei dati via UDP ...
Evento scatenato da click pulsante
richiama udp_send
il problema che non esce nulla .... dove sbaglio? ho integrato la ricezione e li nessun problema
Qualcuno mi può suggerire come risolvere?
Grazie
Evento scatenato da click pulsante
B4X:
Sub cmdSend_Click
If bConnected = False Then
Error("Errore connessione", "Server non inizializzato.")
Return
End If
UDP_Send(UDPSocket1, txtSend.text , txtIPAddress.Text, txtPort.text)
End Sub
richiama udp_send
B4X:
Sub UDP_Send(socketa As UDPSocket, command As String, ipaddress As String, port As String)
Dim Packet As UDPPacket
Dim data() As Byte
data = command.GetBytes("UTF8")
Packet.Initialize(data, ipaddress, port)
socketa.Send(Packet)
'Log(Packet)
End Sub
il problema che non esce nulla .... dove sbaglio? ho integrato la ricezione e li nessun problema
Qualcuno mi può suggerire come risolvere?
Grazie