Skip to content

Commit

Permalink
Merge pull request #1486 from mavlink/pr-improve-connection-docstring
Browse files Browse the repository at this point in the history
core: improve connection docstring
  • Loading branch information
julianoes authored Jul 22, 2021
2 parents 305fbdd + 4fbc645 commit 6f9358e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/core/mavsdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,14 @@ class Mavsdk {
*
* Supports connection: Serial, TCP or UDP.
* Connection URL format should be:
* - UDP - udp://[Bind_host][:Bind_port]
* - TCP - tcp://[Remote_host][:Remote_port]
* - Serial - serial://Dev_Node[:Baudrate]
* - UDP: udp://[host][:bind_port]
* - TCP: tcp://[host][:remote_port]
* - Serial: serial://dev_node[:baudrate]
*
* For UDP, the host can be set to either:
* - zero IP: 0.0.0.0 -> behave like a server and listen for heartbeats.
* - some IP: 192.168.1.12 -> behave like a client, initiate connection
* and start sending heartbeats.
*
* @param connection_url connection URL string.
* @param forwarding_option message forwarding option (when multiple interfaces are used).
Expand Down

0 comments on commit 6f9358e

Please sign in to comment.