hello
The multicast receiving doesn't work
I explain my network
My software on my computer sends a message
port = 3693
destination = 239.255.36.93
my code
and
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/> in the manifest
How to do to receive a message ?
Have I do a mistake ?
thank to for your help
The multicast receiving doesn't work
I explain my network
My software on my computer sends a message
port = 3693
destination = 239.255.36.93
my code
B4X:
Sub Activity_Create(FirstTime As Boolean)
UDPSocketAdn.Initialize("UDPSocket",3693,1000)
Obj1.Target = Obj1.GetContext
Obj1.Target = Obj1.RunMethod2("getSystemService", "wifi", "java.lang.String")
Obj1.Target = Obj1.RunMethod2("createMulticastLock", "mylock", "java.lang.String")
Obj1.RunMethod2("setReferenceCounted", False, "java.lang.boolean")
Obj1.RunMethod("acquire")
end sub
Sub UDPSocketArtnetAdn_PacketArrived (Packet As UDPPacket)
ToastMessageShow("received Multicast",True)
End Sub
and
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/> in the manifest
How to do to receive a message ?
Have I do a mistake ?
thank to for your help
Last edited: