| 66 | } |
| 67 | |
| 68 | void Arduino::write(const std::string& data) |
| 69 | { |
| 70 | std::lock_guard<std::mutex> lock(write_mutex_); |
| 71 | if (is_open_) |
| 72 | { |
| 73 | try |
| 74 | { |
| 75 | serial_.write(data); |
| 76 | } |
| 77 | catch (...) |
| 78 | { |
| 79 | |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | std::string Arduino::read() |
| 85 | { |
nothing calls this directly
no outgoing calls
no test coverage detected