|
@@ -814,7 +814,7 @@ namespace robotics {
|
|
/**
|
|
/**
|
|
* @brief 授权状态
|
|
* @brief 授权状态
|
|
*/
|
|
*/
|
|
- v3::delegates<bool, std::string const&, std::string const&> authorized_event;
|
|
|
|
|
|
+ v3::delegates<bool, std::string const&, std::string const&> authorize_event;
|
|
/**
|
|
/**
|
|
* @brief 连接断开
|
|
* @brief 连接断开
|
|
*/
|
|
*/
|
|
@@ -935,11 +935,11 @@ namespace robotics {
|
|
std::string message;
|
|
std::string message;
|
|
data.args >> is_heartbeat_ >> parent_code_ >> parent_name_ >> node_name >> message;
|
|
data.args >> is_heartbeat_ >> parent_code_ >> parent_name_ >> node_name >> message;
|
|
if (is_heartbeat_) {
|
|
if (is_heartbeat_) {
|
|
- authorized_event(true, parent_code_, parent_name_);
|
|
|
|
|
|
+ authorize_event(true, parent_code_, parent_name_);
|
|
subscribe();
|
|
subscribe();
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- authorized_event(false, "", "");
|
|
|
|
|
|
+ authorize_event(false, "", "");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
/**
|