B4A Example Dual Screen using UDP - aeric    Jun 23, 2025   (11 reactions) An example of sending data from device A and display on device B screen using UDP protocol. This is one of the solutions to this thread. The code is kept since Aug 2023 but I don't see any one bother to ask how to implement it. Today I share it but I hope people have really tried on their own, not waiting to get spoon feed. There is another example using MQTT which I have already shared on previous post.... B4R Tutorial ESP8266 + UDP + BMP180 = Simple weather station - Erel    Aug 22, 2016   (12 reactions)   tags: B4R This is an example of how UDP can be used to broadcast the current temperature and pressure to one or more clients. The nice thing about it is that there is no server involved. The ESP8266 just sends the packets to the broadcast address. https://www.b4x.com/basic4android/images/SS-2016-08-22_11.20.22.jpg RandomAccessFile is used to create the packets. B4R doubles are 4 bytes (equivalent to B4X floats). It is tempting to send the data as a string. However it is more efficient and actually... B4A Code Snippet [B4X] Audio Streaming UDP - Star-Dust    Sep 21, 2022   (20 reactions) Based on this @Erel code that simulated a Walkie Talkie, I developed a system for streaming audio between Android and Desktop devices with UDP. You can connect with multiple devices. I found that some routers lose a lot of UDP packets (a high percentage) and the sound is not uniform. If you notice a discontinuous and disturbed sound, it could be the router system. You can find the version that uses the TCP protocol in this link Note: The B4J version requires the AudioRecord library... B4A Question Voice Recognition and UDP - max123    May 19, 2023 Hi all,
in my project I have a working UDP socket that do some things.
Now I want use Voice Recognition, then send the result string over UDP socket, but for some strange reasons the
already initialized UDP socket is Null in the Voice Recognition _Result event.
The application will not crash...) 'DATA,HOST,PortOut ' Inizializza il pacchetto in invio
udp.Send... B4A Code Snippet UDP Broadcast Address - Erel    Jan 29, 2017   (15 reactions)   tags: NICs JavaObject This code uses JavaObject to go over the device network interfaces and find the first UDP broadcast address. This address can be used to send a UDP packet to all devices listening to a specific port. 'Returns the UDP broadcast address. 'Returns an empty string if not available. Sub GetBroadcastAddress As String Dim niIterator As JavaObject niIterator = niIterator.InitializeStatic("java.net.NetworkInterface").RunMethod("getNetworkInterfaces", Null) Do While... B4A Question UDP acknowledge - Wait For with timeout - Blueforcer    Feb 5, 2018 Hello, I have written a UDP client that is talking to an ESP8266. With UDP it can occur that packets do not arrive. What's the best way to do it, that the app sends a command and if there is no answer, sends the data up to 3 times again until an answer is received? I'm just breaking my head:)... B4A Code Snippet Send and Save Data into SQLite on Another Device (using UDP) - aeric    Nov 27, 2023   (18 reactions) )
B4XPages.SetTitle(Me, Application.LabelName)
UDPSocket1.Initialize("UDP", 5000...)
B4XPages.SetTitle(Me, Application.LabelName)
UDPSocket1.Initialize("UDP", 5000, 8000... UDP_PacketArrived (Packet1 As UDPPacket)
Dim msg As String = BytesToString(Packet1.Data, Packet1... Italian UDP_PacketArrived Dati ricevuti ? - Xfood    Mar 10, 2023 Buongiorno a tutti,
sto impazzendo ancora con la gestione udp,
cioe' mi arrivano i dati... arrivati tutti?
mi spiego, invio una stringa tramite udp, e poi il device mi risponde con un'altra... B4R Tutorial UDP Communication - Erel    May 5, 2016   (8 reactions) rEthernet library v1.10 (included in v1.00 beta 9) includes a new type named EthernetUDP. It allows sending and receiving UDP packets. UDP is simple to work with as it is a connection-less protocol.... Initialize the EthernetUDP object and set the port number. 3. The PacketArrived event will be raised when a packet is received. 4. Sending packets: udp.BeginPacket(serverIp, serverPort) '<--- Begin udp.Write("Button is ".GetBytes) '<-- One or more calls to Write If State... B4A Library Network library v1.10 - UDP supported - Erel    May 11, 2011 The network library was updated and it now supports UDP communication (as well as TCP). A simple example is included in the documentation: Basic4android - Network Installation instructions: - Unzip the attached file. - Copy both files to the internal libraries folder: C:\Program Files\Anywhere Software\Basic4android\Libraries... Page: 1   2   3   4   5   6   |