My IOS APP can receive UDP packets successfully however while sending UDP packet error occurs. There is no error description so i am unable to know what is the reason. I just see error message in Log (screenshot attached).
UDP data is "SHCSPV006"
IP address: Broadcast address
Please note: Below code is working fine in B4A
UDP data is "SHCSPV006"
IP address: Broadcast address
Please note: Below code is working fine in B4A
UDP sent code:
Sub UDP_Sent (Str As String, remoteIP As String)
Connection_Timer.Enabled=False
Dim Data() As Byte
If UDP_Skt.IsInitialized=False Then
UDP_Skt.Initialize("UDP", 4211, 255)
End If
Data=Str.GetBytes("UTF8")
UDP_Pkt.Initialize(Data, remoteIP, 4210)
UDP_Skt.Send(UDP_Pkt)
End Sub