добавил последовательность голда
This commit is contained in:
@@ -715,9 +715,10 @@ response_type system_client::send_get_qos_params(std::string &node, const name_c
|
||||
return result;
|
||||
}
|
||||
|
||||
response_type system_client::send_set_qos_settings_json(const std::string &json_string, bool is_enable){
|
||||
response_type system_client::send_set_qos_settings_json(const std::string &json_string, bool is_enable)
|
||||
{
|
||||
std::scoped_lock lock(cmd_in_progress_mtx);
|
||||
uint32_t curr_id { ++cmd_id };
|
||||
uint32_t curr_id{++cmd_id};
|
||||
cmd_header cmd_qos_header{curr_id, cmd_type::set_qos_settings_json};
|
||||
cmd_qos_settings qos_settings{json_string, is_enable};
|
||||
|
||||
@@ -730,9 +731,10 @@ response_type system_client::send_set_qos_settings_json(const std::string &json_
|
||||
return result;
|
||||
}
|
||||
|
||||
response_type system_client::send_get_qos_settings_json(std::string &json_string, bool &is_enable){
|
||||
response_type system_client::send_get_qos_settings_json(std::string &json_string, bool &is_enable)
|
||||
{
|
||||
std::scoped_lock lock(cmd_in_progress_mtx);
|
||||
uint32_t curr_id { ++cmd_id };
|
||||
uint32_t curr_id{++cmd_id};
|
||||
cmd_header cmd_qos_header{curr_id, cmd_type::get_qos_settings_json};
|
||||
cmd_qos_settings qos_settings{json_string, is_enable};
|
||||
|
||||
@@ -746,6 +748,7 @@ response_type system_client::send_get_qos_settings_json(std::string &json_string
|
||||
json_string = std::any_cast<cmd_qos_settings>(data_from_serv).json_string;
|
||||
is_enable = std::any_cast<cmd_qos_settings>(data_from_serv).is_enable;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1035,4 +1038,4 @@ response_type system_client::send_get_network_settings(const network_value & cmd
|
||||
if (data_from_serv.has_value())
|
||||
value = std::any_cast<std::string>(data_from_serv);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user