{
if (controller->
NetworkStateGet() != RSINetworkState::RSINetworkStateOPERATIONAL)
{
std::cout << "Starting Network.." << std::endl;
}
if (controller->
NetworkStateGet() != RSINetworkState::RSINetworkStateOPERATIONAL)
{
std::cout << "Network start error: " << NetworkStartErrorName(startError)
<< " (" << static_cast<int>(startError) << ")" << std::endl;
for (int i = 0; i < messagesToRead; i++)
{
}
throw std::runtime_error("Expected OPERATIONAL state but the network did not get there.");
}
else
{
std::cout << "Network Started" << std::endl << std::endl;
}
}