-
public class MavsdkServer
-
-
Method Summary
Modifier and Type Method Description intrun()Run MavsdkServer with MAVLink defaulting to udp://:14540. intrun(String systemAddress)Run MavsdkServer with MAVLink on `systemAddress`. intrun(String systemAddress, int mavsdkServerPort)Run MavsdkServer with MAVLink on `systemAddress`. voidattach()Attach to the running MavsdkServer, effectively blocking until it stops. voidstop()voiddestroy()-
-
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.
-
stop
void stop()
-
destroy
void destroy()
-
-
-
-