Start work on device settings communication

This commit is contained in:
Paul Hollinsky
2018-09-24 16:57:14 -04:00
parent af4f4894f5
commit da4d9e46be
9 changed files with 574 additions and 13 deletions
+8 -3
View File
@@ -133,11 +133,16 @@ bool Device::close() {
}
bool Device::goOnline() {
std::string serial;
while(!com->getSerialNumberSync(serial, std::chrono::milliseconds(500))) {
std::cout << "Serial number not here yet" << std::endl;
}
if(!com->sendCommand(Communication::Command::EnableNetworkCommunication, true))
return false;
if(!com->sendCommand(Communication::Command::RequestSerialNumber))
return false;
// if(!com->sendCommand(Communication::Command::RequestSerialNumber))
// return false;
return online = true;
}