Merge pull request #272 from bakashigure/dev

feat.新增address回调字段
This commit is contained in:
MistEO
2022-03-07 15:43:14 +08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -61,6 +61,7 @@ Todo
"why": string, // 错误原因
"details": object, // 错误详情
"uuid": string // 设备唯一码
"address": string // 设备连接地址
}
```

View File

@@ -758,7 +758,8 @@ bool asst::Controller::connect(const std::string & adb_path, const std::string &
{"what", "UuidGetted"},
{"why", ""},
{"details", json::object {
{ "uuid", m_uuid}
{ "uuid", m_uuid},
{"address",address},
}}
};
m_callback(AsstMsg::ConnectionInfo, info, m_callback_arg);
@@ -797,4 +798,4 @@ std::vector<uchar> asst::Controller::get_image_encode() const
cv::imencode(".png", img, buf);
return buf;
}
}