| 46 | } |
| 47 | |
| 48 | void TCPEndpoint::on_external_device(std::string ip, int port, bool connected) { |
| 49 | auto external_device = openhd::ExternalDevice{"MAV TCP CLIENT", ip, true}; |
| 50 | openhd::ExternalDeviceManager::instance().on_new_external_device( |
| 51 | external_device, connected); |
| 52 | } |
| 53 | |
| 54 | void TCPEndpoint::on_packet_any_tcp_client(const uint8_t* data, int data_len) { |
| 55 | std::lock_guard<std::mutex> guard(m_rx_parse_mutex); |
nothing calls this directly
no test coverage detected