I wasn't sure where to post this as this really is a question for how receiving UDP packets works in B4A and B4i (and potentially B4R).
My scenario, I would like my App (B4i or B4a) to broadcast a device "discovery" request on my local lan using UDP. So I would send a broadcast string = "devices" on 192.168.1.255 port 5555 (for instance). Any device (in my case this would be Arduinos/ESP8266 based units) that would respond would be listening for UDP packets on port 5555, get the senders IP and send back. I am not worried about UDP server code on the Arduinos/ESP8266 (I've got that handled at the moment).
My question is if I have says 5 Arduinos on my local lan that receive the request and send back a response, will the B4i/B4A UDP Server side "queue up" the packets for me and I just need to process the received packets until there aren't any more? Or do I just get one packet and the other 4 are lost?
I suspect it will queue up but I want to confirm, thank you!
My scenario, I would like my App (B4i or B4a) to broadcast a device "discovery" request on my local lan using UDP. So I would send a broadcast string = "devices" on 192.168.1.255 port 5555 (for instance). Any device (in my case this would be Arduinos/ESP8266 based units) that would respond would be listening for UDP packets on port 5555, get the senders IP and send back. I am not worried about UDP server code on the Arduinos/ESP8266 (I've got that handled at the moment).
My question is if I have says 5 Arduinos on my local lan that receive the request and send back a response, will the B4i/B4A UDP Server side "queue up" the packets for me and I just need to process the received packets until there aren't any more? Or do I just get one packet and the other 4 are lost?
I suspect it will queue up but I want to confirm, thank you!