Skip to content

Commit

Permalink
Add means to directly send a message on a NetworkRuntime.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuart-auterion committed Dec 6, 2023
1 parent 9de550a commit eaea11c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/mav/Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ namespace mav {
_heartbeat_message = std::nullopt;
}

void sendMessage(Message &message) {
_sendMessage(message, {});
}

void stop() {
_interface.close();
_should_terminate.store(true);
Expand Down

0 comments on commit eaea11c

Please sign in to comment.