message: connection/network/network_depth_sensor: implement get name function
diff: @@ -553,7 +553,37 @@ aditof::Status NetworkDepthSensor::getHandle(void **handle) {
  }
  aditof::Status NetworkDepthSensor::getName(std::string &sensorName) {
  - sensorName = m_sensorInformations.sensorName;
  - return aditof::Status::OK;
  + using namespace aditof;
  +
  + Network *net = m_implData->handle.net;
  + std::unique_lock<std::mutex> mutex_lock(m_implData->handle.net_mutex);
  +
  + if (!net->isServer_Connected()) {
  + LOG(WARNING) << "Not connected to server";
  + return Status::UNREACHABLE;
  + }
  +
  + net->send_buff.set_func_name("GetName");
  +
  + if (net->SendCommand() != 0) {
  + LOG(WARNING) << "Send Command Failed";
  + return Status::INVALID_ARGUMENT;
  + }
  +
  + if (net->recv_server_data() != 0) {
  + LOG(WARNING) << "Receive Data Failed";
  + return Status::GENERIC_ERROR;
  + }
  +
  + if (net->recv_buff.server_status() !=
  + payload::ServerStatus::REQUEST_ACCEPTED) {
  + LOG(WARNING) << "API execution on Target Failed";
  + return Status::GENERIC_ERROR;
  + }
  +
  + sensorName = net->recv_buff.sensors_info().image_sensors(0).name();
  + Status status = static_cast<Status>(net->recv_buff.status());
  +
  + return status;
  }
  