@@ -568,6 +568,9 @@ cluster BasicInformation = 40 {
568
568
boolean reachableNewValue = 0;
569
569
}
570
570
571
+ info event RandomNumberChanged = 4 {
572
+ }
573
+
571
574
readonly attribute int16u dataModelRevision = 0;
572
575
readonly attribute char_string<32> vendorName = 1;
573
576
readonly attribute vendor_id vendorID = 2;
@@ -591,13 +594,16 @@ cluster BasicInformation = 40 {
591
594
readonly attribute optional ProductAppearanceStruct productAppearance = 20;
592
595
readonly attribute int32u specificationVersion = 21;
593
596
readonly attribute int16u maxPathsPerInvoke = 22;
597
+ attribute int16u randomNumber = 23;
594
598
readonly attribute int32u configurationVersion = 24;
595
599
readonly attribute command_id generatedCommandList[] = 65528;
596
600
readonly attribute command_id acceptedCommandList[] = 65529;
597
601
readonly attribute attrib_id attributeList[] = 65531;
598
602
readonly attribute bitmap32 featureMap = 65532;
599
603
readonly attribute int16u clusterRevision = 65533;
600
604
605
+ /** Generate random number */
606
+ command GenerateRandom(): DefaultSuccess = 0;
601
607
command MfgSpecificPing(): DefaultSuccess = 0;
602
608
}
603
609
@@ -1436,6 +1442,66 @@ cluster GroupKeyManagement = 63 {
1436
1442
fabric command access(invoke: administer) KeySetReadAllIndices(): KeySetReadAllIndicesResponse = 4;
1437
1443
}
1438
1444
1445
+ /** The NordicDevKit cluster showcases a cluster manufacturer extensions */
1446
+ cluster NordicDevKit = 4294048769 {
1447
+ revision 1; // NOTE: Default/not specifically set
1448
+
1449
+ enum LEDActionEnum : enum8 {
1450
+ kOff = 0;
1451
+ kOn = 1;
1452
+ kToggle = 2;
1453
+ }
1454
+
1455
+ info event UserButtonChanged = 4293984256 {
1456
+ }
1457
+
1458
+ readonly attribute command_id generatedCommandList[] = 65528;
1459
+ readonly attribute command_id acceptedCommandList[] = 65529;
1460
+ readonly attribute attrib_id attributeList[] = 65531;
1461
+ readonly attribute bitmap32 featureMap = 65532;
1462
+ readonly attribute int16u clusterRevision = 65533;
1463
+ attribute char_string<254> devKitName = 4293984256;
1464
+ provisional readonly nosubscribe attribute boolean userLED = 4293984257;
1465
+ provisional readonly nosubscribe attribute boolean userButton = 4293984258;
1466
+
1467
+ request struct SetLEDRequest {
1468
+ LEDActionEnum action = 0;
1469
+ }
1470
+
1471
+ /** Change LED state */
1472
+ command SetLED(SetLEDRequest): DefaultSuccess = 4293984256;
1473
+ }
1474
+
1475
+ /** The NordicDevKit cluster showcases a cluster manufacturer extensions */
1476
+ cluster NordicDevKit = 4294048769 {
1477
+ revision 1; // NOTE: Default/not specifically set
1478
+
1479
+ enum LEDActionEnum : enum8 {
1480
+ kOff = 0;
1481
+ kOn = 1;
1482
+ kToggle = 2;
1483
+ }
1484
+
1485
+ info event UserButtonChanged = 4293984256 {
1486
+ }
1487
+
1488
+ readonly attribute command_id generatedCommandList[] = 65528;
1489
+ readonly attribute command_id acceptedCommandList[] = 65529;
1490
+ readonly attribute attrib_id attributeList[] = 65531;
1491
+ readonly attribute bitmap32 featureMap = 65532;
1492
+ readonly attribute int16u clusterRevision = 65533;
1493
+ attribute char_string<254> devKitName = 4293984256;
1494
+ provisional readonly nosubscribe attribute boolean userLED = 4293984257;
1495
+ provisional readonly nosubscribe attribute boolean userButton = 4293984258;
1496
+
1497
+ request struct SetLEDRequest {
1498
+ LEDActionEnum action = 0;
1499
+ }
1500
+
1501
+ /** Change LED state */
1502
+ command SetLED(SetLEDRequest): DefaultSuccess = 4293984256;
1503
+ }
1504
+
1439
1505
endpoint 0 {
1440
1506
device type ma_rootdevice = 22, version 3;
1441
1507
device type ma_otarequestor = 18, version 1;
@@ -1471,6 +1537,7 @@ endpoint 0 {
1471
1537
emits event StartUp;
1472
1538
emits event ShutDown;
1473
1539
emits event Leave;
1540
+ emits event RandomNumberChanged;
1474
1541
callback attribute dataModelRevision;
1475
1542
callback attribute vendorName;
1476
1543
callback attribute vendorID;
@@ -1488,11 +1555,14 @@ endpoint 0 {
1488
1555
callback attribute capabilityMinima;
1489
1556
callback attribute specificationVersion;
1490
1557
callback attribute maxPathsPerInvoke;
1558
+ ram attribute randomNumber default = 0;
1491
1559
callback attribute generatedCommandList;
1492
1560
callback attribute acceptedCommandList;
1493
1561
callback attribute attributeList;
1494
1562
ram attribute featureMap default = 0;
1495
1563
ram attribute clusterRevision default = 4;
1564
+
1565
+ handle command GenerateRandom;
1496
1566
}
1497
1567
1498
1568
server cluster OtaSoftwareUpdateRequestor {
@@ -1644,5 +1714,21 @@ endpoint 0 {
1644
1714
}
1645
1715
}
1646
1716
endpoint 1 {
1717
+ device type nordic_dev_kit = 1, version 1;
1718
+
1719
+ binding cluster NordicDevKit;
1720
+
1721
+ server cluster NordicDevKit {
1722
+ emits event UserButtonChanged;
1723
+ callback attribute generatedCommandList;
1724
+ callback attribute acceptedCommandList;
1725
+ callback attribute attributeList;
1726
+ ram attribute featureMap default = 0;
1727
+ ram attribute clusterRevision default = 1;
1728
+ ram attribute devKitName default = "Nordic Development Kit";
1729
+ ram attribute userLED default = false;
1730
+ ram attribute userButton default = false;
1647
1731
1732
+ handle command SetLED;
1733
+ }
1648
1734
}
0 commit comments