B4R Question UPD packed send checking

mtd

Member
Helllo;
I used this code for data send with UDP protocol.

its work and i recive data with host.
But I closed Host application, and sender code result not change same read logs ("packet send")
How can i check send status?


Wemos board code:
B4X:
If udp.BeginPacket(sip,54321) Then
        udp.Write("Returns-")
        Dim x As String
        x=Rnd(100,999)
        Log(x)
        udp.Write(x)
        If udp.SendPacket Then
            Log("packet send")
        Else
            Log("Error")
        End If
    Else
        Log("Service Problems")
    End If
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…