From 90d023f1b16597cc898d5cf724a84c75262685f8 Mon Sep 17 00:00:00 2001 From: Krzysztof Piotrowski Date: Tue, 6 Aug 2024 13:05:42 +0000 Subject: [PATCH] feat: subscribe to the device profile topics Signed-off-by: Krzysztof Piotrowski --- crates/extensions/c8y_mapper_ext/src/operations/handler.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/extensions/c8y_mapper_ext/src/operations/handler.rs b/crates/extensions/c8y_mapper_ext/src/operations/handler.rs index a8dd1fad55e..41ce2f0121a 100644 --- a/crates/extensions/c8y_mapper_ext/src/operations/handler.rs +++ b/crates/extensions/c8y_mapper_ext/src/operations/handler.rs @@ -196,6 +196,13 @@ impl OperationHandler { ]); } + if capabilities.device_profile { + topics.extend([ + (AnyEntity, Command(OperationType::DeviceProfile)), + (AnyEntity, CommandMetadata(OperationType::DeviceProfile)), + ]); + } + topics } }