-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with UDP Sockets #4
Comments
Hi, Best regards |
Nope nothing back. The error we have see on the device is that the network is not found. Unreachable and thats pretty much all we get. We have tried quite a lot to test it. And we have nowhere to go. Please if you find something share. Thanks! |
Hi,
|
@TavecchiaG Do you think that you can send without the receive? Can you try to do that. We have a full receiver working without sending. The solution above works but not in my case i need the Android Device to perform a send without receive. |
We tried to send without receive and it works, you need to specify IP address and port. Then remember to perform a Bind in the receiver device, in our case the nRF52840 Dongle. |
@TavecchiaG Can you post the code that you use in the Android Device to be able to send? Without the receive? We have been trying for a while and no result. Thanks in advance. |
This is our code, supposing that the 2 devices are connected on the same Thread Network.
|
@TavecchiaG Did you guys try to send between two devices on Android? But if you are receiving on the nordic device you should be able to get it on the other one. As far as i understand. I was doing the same thing but between the two Android devices doesn't seem to go true. |
I'm sorry but we don't have 2 android device so we are unable to try that. |
@TavecchiaG Thanks for all the help provided! I will try to find a solution and post it on the topic as soon as i can find it. EDIT: I have found a solution that works for me. Its poorly designed the whole API. And on top of that the implementation of the UDP Sockets on Android is not the best. But it works fine. Kind Regards, |
Issue can be closed. |
There is pretty much no error logs but it can't actually send anything over mesh network on udp. Seems to receive without any issues but on send it doesn't go.
try {
sock = new DatagramSocket(null);
udpPacket = new DatagramPacket(data.getBytes(), data.length(), InetAddress.getByName(deviceAddr), portServer);
thats the code for send over udp. Here is the addr: fdde:ad00:beef:0:8142:58d9:a2a3:7377 port is 1212 and on receive there are no trouble.
Any thoughts?
The text was updated successfully, but these errors were encountered: