Skip to content

Commit

Permalink
Add ncp authorization field to IS-04 controls array of an NMOS Device
Browse files Browse the repository at this point in the history
  • Loading branch information
lo-simon committed Jan 10, 2024
1 parent 6fd4e78 commit 31321f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Development/nmos/control_protocol_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ namespace nmos

auto descriptors = value::array();
nmos::find_members_by_class_id(resources, resource, class_id, include_derived, recurse, descriptors.as_array());
// auto descriptors = nmos::find_members_by_class_id(resources, resource, class_id, include_derived, recurse);// , descriptors.as_array());

return make_control_protocol_message_response(handle, { is_deprecated ? nmos::nc_method_status::method_deprecated : nc_method_status::ok }, descriptors);
}
Expand Down
3 changes: 2 additions & 1 deletion Development/nmos/node_resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ namespace nmos
{
web::json::push_back(data[U("controls")], value_of({
{ U("href"), ncp_uri.set_host(host).to_uri().to_string() },
{ U("type"), type }
{ U("type"), type },
{ U("authorization"), nmos::experimental::fields::server_authorization(settings) }
}));
}
}
Expand Down

0 comments on commit 31321f7

Please sign in to comment.