Implemented connection timeout in C++

This commit is contained in:
Alessandro Ranellucci 2015-11-02 20:34:36 +01:00
parent 4295d65115
commit 9ee6829ebc
5 changed files with 19 additions and 18 deletions

View file

@ -13,8 +13,9 @@
bool connect(std::string port, unsigned int baud_rate);
void disconnect();
bool is_connected() const;
int queue_size() const;
bool is_connected();
bool wait_connected(unsigned int timeout = 3);
int queue_size();
void send(std::string s, bool priority = false);
void pause_queue();
void resume_queue();