Closed floriansegginger closed 7 months ago
The constructor of the FixpositionDriver class does not check the return value of the Connect() method.
FixpositionDriver
Connect()
https://github.com/fixposition/fixposition_driver/blob/main/fixposition_driver_lib/src/fixposition_driver.cpp#L31
As such, the only way to know if the connection was successful when using this class, is to call RunOnce() and check the return value of that.
RunOnce()
Maybe the constructor could throw an exception when connection fails?
The constructor of the
FixpositionDriver
class does not check the return value of theConnect()
method.https://github.com/fixposition/fixposition_driver/blob/main/fixposition_driver_lib/src/fixposition_driver.cpp#L31
As such, the only way to know if the connection was successful when using this class, is to call
RunOnce()
and check the return value of that.Maybe the constructor could throw an exception when connection fails?