/* * Connect to the widget */ bool MilInstWidget1463::Connect() { OLA_DEBUG << "Connecting to " << m_path; int fd = ConnectToWidget(m_path); if (fd < 0) return false; m_socket = new ola::io::DeviceDescriptor(fd); OLA_DEBUG << "Connected to " << m_path; return true; }
/* * Connect to the widget */ bool RenardWidget::Connect() { OLA_DEBUG << "Connecting to " << m_path; OLA_DEBUG << "Baudrate set to " << static_cast<int>(m_baudrate); speed_t baudrate; if (!ola::io::UIntToSpeedT(m_baudrate, &baudrate)) { OLA_DEBUG << "Failed to convert baudrate, i.e. not supported baud rate"; return false; } int fd = ConnectToWidget(m_path, baudrate); if (fd < 0) return false; m_socket = new ola::io::DeviceDescriptor(fd); OLA_DEBUG << "Connected to " << m_path; return true; }