!51 更新源节点类型

Merge pull request !51 from 李自然/N/A
This commit is contained in:
李自然 2024-03-12 12:44:27 +00:00 committed by Gitee
commit d9a4a4ec35
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ bool ConnectionManager::BindTarget(const CastInnerRemoteDevice &dev)
DeviceManager::GetInstance().UnbindTarget(PKG_NAME, targetId, unbindParam, nullptr);
} else {
unbindParam.insert(
std::pair<std::string, std::string>(PARAM_KEY_META_TYPE, std::to_string(MetaNodeType::PROXY_CASTPLUS)));
std::pair<std::string, std::string>(PARAM_KEY_META_TYPE, std::to_string(5)));
DeviceManager::GetInstance().UnbindTarget(PKG_NAME, targetId, unbindParam, nullptr);
}
return false;

View File

@ -166,7 +166,7 @@ void DiscoveryManager::StartDmDiscovery()
UpdateDeviceState();
scanCount++;
std::map<std::string, std::string> discoverParam{
{ PARAM_KEY_META_TYPE, std::to_string(MetaNodeType::PROXY_CASTPLUS) } };
{ PARAM_KEY_META_TYPE, std::to_string(5) } };
std::map<std::string, std::string> filterOptions{
{ PARAM_KEY_FILTER_OPTIONS, DISCOVERY_TRUST_VALUE } };
int32_t ret = DeviceManager::GetInstance().StartDiscovering(PKG_NAME, discoverParam, filterOptions,