NMEA: changed signature of nmea::make_sentence to make it more robust.
[marnav.git] / examples / seatalk_snippets.cpp
blob69b74b5be99f8b2df7d1b926f3ab51e0b0972f88
1 #include <marnav/seatalk/seatalk.hpp>
2 #include <marnav/seatalk/message_00.hpp>
4 namespace marnav_example
6 void seatalk_encode_message()
8 //! [Getting raw data from message]
9 marnav::seatalk::message_00 msg;
10 msg.set_depth(10);
12 marnav::seatalk::raw data = marnav::seatalk::encode_message(msg);
13 //! [Getting raw data from message]
17 int main(int, char **)
19 marnav_example::seatalk_encode_message();
20 return 0;