53 if (m_transport) m_transport->close();
57 return call<messages::debug::DebugLinkState>(
58 messages::debug::DebugLinkGetState(),
59 boost::make_optional(messages::MessageType_DebugLinkGetState));
63 messages::debug::DebugLinkDecision decision;
64 decision.set_input(word);
65 call(decision, boost::none,
true);
69 messages::debug::DebugLinkDecision decision;
70 decision.set_yes_no(button);
71 call(decision, boost::none,
true);
75 messages::debug::DebugLinkDecision decision;
76 decision.set_up_down(swipe);
77 call(decision, boost::none,
true);
81 messages::debug::DebugLinkStop msg;
82 call(msg, boost::none,
true);
#define CHECK_AND_ASSERT_THROW_MES(expr, message)
std::shared_ptr< t_message > call(const google::protobuf::Message &req, const boost::optional< messages::MessageType > &resp_type=boost::none, bool no_wait=false)
void init(std::shared_ptr< Transport > &transport)
void input_swipe(bool swipe)
void input_word(const std::string &word)
std::shared_ptr< messages::debug::DebugLinkState > state()
void input_button(bool button)
std::shared_ptr< Transport > transport(const std::string &path)