hi everyone
i wanna to send array of integer from udp socket but i can how do it!
hoever im trying to do this but it dose not work well
here my sample code:
I don't get an error with this code, but I get empty data in the receiving section
However, the comment line works fine
thanks a lot for any help
i wanna to send array of integer from udp socket but i can how do it!
hoever im trying to do this but it dose not work well
here my sample code:
code:
Private Sub Label1_Click
Dim hum=200,temp=320 As Int
Dim int() As Int = Array As Int(temp,hum)
Dim byte() As Byte = convert.IntsToBytes(int)
'UdpP.Initialize("data".GetBytes("ASCII"), "192.168.4.1",8888)
UdpP.Initialize(byte,"192.168.4.1",8888)
Socket.Send(UdpP)
ToastMessageShow("Sending...",False)
End Sub
I don't get an error with this code, but I get empty data in the receiving section
However, the comment line works fine
thanks a lot for any help