Send zero length message to end sensor data transmission

This commit is contained in:
nsubiron 2018-02-13 10:26:21 +01:00
parent 4e8b064812
commit a54dff076f
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ namespace server {
return ec;
}
}
return errc::success();
const uint32_t end_message = 0u;
return _server.Write(boost::asio::buffer(&end_message, sizeof(end_message)), timeout);;
}
error_code ReadString(std::string &string, time_duration timeout) {