From 298979719b2868307c5f6f8ac75f0fd9a46fa98e Mon Sep 17 00:00:00 2001 From: Andrei Menzopol Date: Thu, 8 Feb 2024 23:13:50 -0800 Subject: [PATCH] [NXP] Update matter zap file Signed-off-by: Andrei Menzopol --- .../nxp/zap/contact-sensor-app.matter | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/contact-sensor-app/nxp/zap/contact-sensor-app.matter b/examples/contact-sensor-app/nxp/zap/contact-sensor-app.matter index 6429592d048a77..03736833bb02d3 100644 --- a/examples/contact-sensor-app/nxp/zap/contact-sensor-app.matter +++ b/examples/contact-sensor-app/nxp/zap/contact-sensor-app.matter @@ -712,6 +712,10 @@ cluster GeneralDiagnostics = 51 { kEthernetFault = 6; } + bitmap Feature : bitmap32 { + kDataModelTest = 0x1; + } + struct NetworkInterface { char_string<32> name = 0; boolean isOperational = 1; @@ -768,10 +772,22 @@ cluster GeneralDiagnostics = 51 { nullable posix_ms posixTimeMs = 1; } + request struct PayloadTestRequestRequest { + octet_string<16> enableKey = 0; + int8u value = 1; + int16u count = 2; + } + + response struct PayloadTestResponse = 4 { + octet_string payload = 0; + } + /** Provide a means for certification tests to trigger some test-plan-specific events */ command access(invoke: manage) TestEventTrigger(TestEventTriggerRequest): DefaultSuccess = 0; /** Take a snapshot of system time and epoch time. */ command TimeSnapshot(): TimeSnapshotResponse = 1; + /** Request a variable length payload response. */ + command PayloadTestRequest(PayloadTestRequestRequest): PayloadTestResponse = 3; } /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ @@ -1440,8 +1456,8 @@ endpoint 0 { callback attribute rebootCount; callback attribute activeNetworkFaults; callback attribute testEventTriggersEnabled default = false; - ram attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + callback attribute featureMap; + callback attribute clusterRevision; handle command TestEventTrigger; }