From 31321f7089dbe0e8028ec160bbbaa58a10a7da75 Mon Sep 17 00:00:00 2001 From: lo-simon Date: Wed, 10 Jan 2024 12:56:47 +0000 Subject: [PATCH] Add ncp authorization field to IS-04 controls array of an NMOS Device --- Development/nmos/control_protocol_methods.cpp | 1 - Development/nmos/node_resources.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Development/nmos/control_protocol_methods.cpp b/Development/nmos/control_protocol_methods.cpp index bfa3125a..b7d980a1 100644 --- a/Development/nmos/control_protocol_methods.cpp +++ b/Development/nmos/control_protocol_methods.cpp @@ -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); } diff --git a/Development/nmos/node_resources.cpp b/Development/nmos/node_resources.cpp index 216ef7db..2d6d8d23 100644 --- a/Development/nmos/node_resources.cpp +++ b/Development/nmos/node_resources.cpp @@ -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) } })); } }