java.net.ConnectException: Connection refused: connect
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:503)
at java.base/sun.nio.ch.Net.connect(Net.java:492)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
at java.base/java.net.Socket.connect(Socket.java:648)
at java.base/java.net.Socket.connect(Socket.java:597)
at java.base/java.net.Socket.<init>(Socket.java:520)
at java.base/java.net.Socket.<init>(Socket.java:294)
at mavlink.MainClass.main(MainClass.java:16)
I have connected APM 2.8.0 via USB to windows 10 with intel i7-8550u. I am looking forward to deploy the code on a raspberry pi.
Actually I recieved similar error with dronekit python so shifted to Java. But stuck at same point.
Thank you.
My code is:
Terminal output is:
I have connected APM 2.8.0 via USB to windows 10 with intel i7-8550u. I am looking forward to deploy the code on a raspberry pi. Actually I recieved similar error with dronekit python so shifted to Java. But stuck at same point. Thank you.