Using datagramSocket and listening to mavlink on port 14552, I have successfully retrieved mavlink messages with a custom app on the herelink, and am able to select the information I want.
I now needto do the same on another android device connected on the Herelink wifi hotspot, as a Qgrouncontrol or MissionPlanner(android version) do (automatically connecting to port 14550, I assume using UDP).
I, however,do not manage to do the same on my custom app, the “datagramsocket.receive(packet)” command keeps throwing “ECONNREFUSED (Connection refused)” error when the socket is connected to “localhost:14550” . I am using android studio.
Did someone managed to do this, or knows how it is implemanted on Qgroundcontrol / mission Planner?