From 7fe9759ed249305ca6e2ffa40643a78e2c70698c Mon Sep 17 00:00:00 2001 From: Stefan Brus Date: Thu, 6 Feb 2025 13:45:17 +0100 Subject: [PATCH] Add message linking microgrid and sensor IDs Signed-off-by: Stefan Brus --- RELEASE_NOTES.md | 2 +- proto/frequenz/api/common/v1/microgrid/microgrid.proto | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index aa5d00df..56ab6759 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -10,7 +10,7 @@ ## New Features - +- Added message linking microgrid and sensor IDs. ## Bug Fixes diff --git a/proto/frequenz/api/common/v1/microgrid/microgrid.proto b/proto/frequenz/api/common/v1/microgrid/microgrid.proto index 4729188c..419a1f02 100644 --- a/proto/frequenz/api/common/v1/microgrid/microgrid.proto +++ b/proto/frequenz/api/common/v1/microgrid/microgrid.proto @@ -77,3 +77,12 @@ message MicrogridComponentIDs { // List of component IDs belonging to this microgrid. repeated uint64 component_ids = 2; } + +/// A message to link sensor IDs with their respective microgrid ID. +message MicrogridSensorIDs { + // The ID of the microgrid. + uint64 microgrid_id = 1; + + // List of sensor IDs belonging to this microgrid. + repeated uint64 sensor_ids = 2; +}