Skip to content

Commit

Permalink
feat: subscribe to the device profile topics
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Piotrowski <[email protected]>
  • Loading branch information
Ruadhri17 committed Aug 6, 2024
1 parent 5030a17 commit 90d023f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/extensions/c8y_mapper_ext/src/operations/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ impl OperationHandler {
]);
}

if capabilities.device_profile {
topics.extend([
(AnyEntity, Command(OperationType::DeviceProfile)),
(AnyEntity, CommandMetadata(OperationType::DeviceProfile)),
]);
}

topics
}
}
Expand Down

0 comments on commit 90d023f

Please sign in to comment.