Package 

Class MavsdkServer

    • Method Summary

      Modifier and Type Method Description
      int run() Run MavsdkServer with MAVLink defaulting to udp://:14540.
      int run(String systemAddress) Run MavsdkServer with MAVLink on `systemAddress`.
      int run(String systemAddress, int mavsdkServerPort) Run MavsdkServer with MAVLink on `systemAddress`.
      void attach() Attach to the running MavsdkServer, effectively blocking until it stops.
      void stop()
      void destroy()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

         int run()

        Run MavsdkServer with MAVLink defaulting to udp://:14540.

        MavsdkServer will start a gRPC server listening on anarbitrary port, to which a `System` should connect.

      • run

         int run(String systemAddress)

        Run MavsdkServer with MAVLink on `systemAddress`.

        MavsdkServer will start a gRPC server listening on anarbitrary port, to which a `System` should connect.

        Parameters:
        systemAddress - The address on which the remote MAVLink system is expected.Valid formats are:For TCP : tcp://[server_host][:server_port].For UDP : udp://[bind_host][:bind_port].For Serial : serial:///path/to/serial/dev[:baudrate].
      • run

         int run(String systemAddress, int mavsdkServerPort)

        Run MavsdkServer with MAVLink on `systemAddress`.

        MavsdkServer will listen for a `System` to connect on `mavsdkServerPort`.

        Parameters:
        systemAddress - The address on which the remote MAVLink system is expected.
        mavsdkServerPort - The port on which the server should listen for a `System`.
      • attach

         void attach()

        Attach to the running MavsdkServer, effectively blocking until it stops.