Closed mitchmindtree closed 4 years ago
we already did this in several devices. I can show you how it is handled in other cases. Note: Device has a "SuccessStatus" variable that enables to report disconnection errors
Thanks yes an example would be great!
Reminder for myself - see Device.h
SuccessStatus.h
:
// Status
const SuccessStatus& getStatus() const
{return status;}
SuccessStatus& getStatus()
{return status;}
void setStatusFromSmodeThread(const SuccessStatus& status);
void setStatusFromOtherThread(const SuccessStatus& status);
We're not yet handling the case where the TCP stream is disconnected for some reason e.g. network issues, the DAC is turned off, etc. Need to make sure we can handle this and provide some feedback to the user somehow.