diff --git a/.github/.wordlist.txt b/.github/.wordlist.txt
index 2061c3a630bccb..e7f2686627524c 100644
--- a/.github/.wordlist.txt
+++ b/.github/.wordlist.txt
@@ -54,7 +54,7 @@ AmebaZ
amebaz2
announcementReason
AnnounceOTAProvider
-AnnounceOtaProviderRequest
+AnnounceOTAProviderRequest
APIs
apk
AppConfig
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 178210ae842f62..32db085151c081 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -621,12 +621,12 @@
"mbed-CY8CPROTO_062_4343W-shell-debug",
"mbed-CY8CPROTO_062_4343W-shell-develop",
"mbed-CY8CPROTO_062_4343W-shell-release",
- "nrf-nrf52840-light",
- "nrf-nrf52840-light-rpc",
- "nrf-nrf52840-lock",
- "nrf-nrf52840-pump",
- "nrf-nrf52840-pump-controller",
- "nrf-nrf52840-shell",
+ "nrf-nrf52840dk-light",
+ "nrf-nrf52840dk-light-rpc",
+ "nrf-nrf52840dk-lock",
+ "nrf-nrf52840dk-pump",
+ "nrf-nrf52840dk-pump-controller",
+ "nrf-nrf52840dk-shell",
"nrf-nrf5340-light",
"nrf-nrf5340-light-rpc",
"nrf-nrf5340-lock",
diff --git a/config/nrfconnect/chip-module/Kconfig b/config/nrfconnect/chip-module/Kconfig
index d8247813838e68..4b477d357287d1 100644
--- a/config/nrfconnect/chip-module/Kconfig
+++ b/config/nrfconnect/chip-module/Kconfig
@@ -169,3 +169,11 @@ config CHIP_FACTORY_RESET_ERASE_NVS
default y if CHIP_FACTORY_DATA || CHIP_FACTORY_DATA_CUSTOM_BACKEND
endif
+
+config CHIP_LOG_SIZE_OPTIMIZATION
+ bool "Disable some detailed logs to decrease flash usage"
+ help
+ Disables some log levels for the specific log modules
+ providing detailed information that are not used in most cases.
+ You can find full configuration enabled by this option
+ in the platform/nrfconnect/CHIPPlatformConfig.h file.
diff --git a/config/nrfconnect/chip-module/Kconfig.defaults b/config/nrfconnect/chip-module/Kconfig.defaults
index f24fc4608b4122..88519293b67d77 100644
--- a/config/nrfconnect/chip-module/Kconfig.defaults
+++ b/config/nrfconnect/chip-module/Kconfig.defaults
@@ -21,7 +21,6 @@
if CHIP
config LOG
- bool
default y
if LOG
@@ -35,144 +34,131 @@ choice MATTER_LOG_LEVEL_CHOICE
endchoice
config LOG_DEFAULT_LEVEL
- int
default 2
+config CHIP_LOG_SIZE_OPTIMIZATION
+ default y
+
endif
config PRINTK_SYNC
- bool
default y
config ASSERT
- bool
default y
config HW_STACK_PROTECTION
- bool
default y
config FPU
- bool
default y
config SHELL
- bool
default y
+config PTHREAD_IPC
+ bool
+ default n
+
# Generic networking options
config NET_SOCKETS_POSIX_NAMES
- bool
default n
# Application stack size
config MAIN_STACK_SIZE
- int
default 8192
config INIT_STACKS
- bool
default y
# Disable certain parts of Zephyr IPv6 stack
config NET_IPV6_NBR_CACHE
- bool
default n
config NET_IPV6_MLD
- bool
default y
config NET_IF_MCAST_IPV6_ADDR_COUNT
- int
default 14
# Network buffers
config NET_PKT_RX_COUNT
- int
default 16
config NET_PKT_TX_COUNT
- int
default 16
config NET_BUF_RX_COUNT
- int
default 80
config NET_BUF_TX_COUNT
- int
default 80
# Bluetooth Low Energy configs
config BT
- bool
default y
config BT_PERIPHERAL
- bool
default y
config BT_PERIPHERAL_PREF_MIN_INT
- int
default 36
config BT_PERIPHERAL_PREF_MAX_INT
- int
default 36
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
- bool
default y
config BT_GATT_DYNAMIC_DB
- bool
default y
config BT_DEVICE_NAME_DYNAMIC
- bool
default y
config BT_DEVICE_NAME_MAX
- int
default 15
config BT_MAX_CONN
- int
default 1
config BT_L2CAP_TX_MTU
- int
default 247
config BT_BUF_ACL_RX_SIZE
- int
default 251
config BT_BUF_ACL_TX_SIZE
- int
default 251
config BT_RX_STACK_SIZE
- int
default 1200
+config BT_CTLR_ECDH
+ bool
+ default n
+
+config BT_CTLR_LE_ENC
+ bool
+ default n
+
+config BT_DEVICE_NAME_GATT_WRITABLE
+ bool
+ default n
+
# Enable NFC support
config CHIP_NFC_COMMISSIONING
- bool
default y
config CHIP_OTA_REQUESTOR
- bool
default y
# All boards besides nRF7002DK use QSPI NOR external flash
if BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF52840DK_NRF52840
config CHIP_QSPI_NOR
- bool
default y
endif # BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF52840DK_NRF52840
@@ -182,35 +168,29 @@ endif # BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF52840DK_NRF52840
if BOARD_NRF7002DK_NRF5340_CPUAPP
config CHIP_SPI_NOR
- bool
default y
endif # BOARD_NRF7002DK_NRF5340_CPUAPP
# Enable extended discovery
config CHIP_EXTENDED_DISCOVERY
- bool
default y
config NVS_LOOKUP_CACHE
- bool
default y
config NVS_LOOKUP_CACHE_SIZE
- int
default 512
# Enable OpenThread
config NET_L2_OPENTHREAD
- bool
default y if !WIFI_NRF700X
if NET_L2_OPENTHREAD
# Increase the default RX stack size
config IEEE802154_NRF5_RX_STACK_SIZE
- int
default 1024
endif
@@ -218,50 +198,39 @@ endif
if CHIP_WIFI
config NRF_WIFI_LOW_POWER
- bool
default n
config MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
- bool
default n
config SYSTEM_WORKQUEUE_STACK_SIZE
- int
default 1120
# align these numbers to match the OpenThread config
config NET_IF_UNICAST_IPV6_ADDR_COUNT
- int
default 6
config NET_IF_MCAST_IPV6_ADDR_COUNT
- int
default 8
config NET_SOCKETS_POSIX_NAMES
- bool
default n
config MBEDTLS_SSL_OUT_CONTENT_LEN
- int
default 900
# options managed by IP4/IP6 simultaneous support
# aligned here to match OpenThread config
config NET_MAX_ROUTERS
- int
default 1
config NET_MAX_CONN
- int
default 4
config SHELL_STACK_SIZE
- int
default 2616
config HEAP_MEM_POOL_SIZE
- int
default 200000
endif
@@ -274,183 +243,139 @@ choice OPENTHREAD_SECURITY
endchoice
config PSA_CRYPTO_DRIVER_CC3XX
- bool
default n
config OBERON_BACKEND
- bool
default y
config MBEDTLS_ENABLE_HEAP
- bool
default y
config MBEDTLS_HEAP_SIZE
- int
default 15360
config MBEDTLS_TLS_LIBRARY
- bool
default y
config NRF_SECURITY_ADVANCED
- bool
default y
config MBEDTLS_AES_C
- bool
default y
config MBEDTLS_ECP_C
- bool
default y
config MBEDTLS_ECP_DP_SECP256R1_ENABLED
- bool
default y
config MBEDTLS_CTR_DRBG_C
- bool
default y
config MBEDTLS_CIPHER_MODE_CTR
- bool
default y
config MBEDTLS_ECJPAKE_C
- bool
default y
config MBEDTLS_SHA256_C
- bool
default y
config MBEDTLS_PK_C
- bool
default y
config MBEDTLS_PK_WRITE_C
- bool
default y
config MBEDTLS_X509_CREATE_C
- bool
default y if !CHIP_CRYPTO_PSA
config MBEDTLS_X509_CSR_WRITE_C
- bool
default y if !CHIP_CRYPTO_PSA
# Disable unneeded crypto operations
config MBEDTLS_SHA384_C
- bool
default n
config MBEDTLS_SHA512_C
- bool
default n
config MBEDTLS_CIPHER_MODE_XTS
- bool
default n
config MBEDTLS_CHACHA20_C
- bool
default n
config MBEDTLS_POLY1305_C
- bool
default n
config MBEDTLS_CHACHAPOLY_C
- bool
default n
config MBEDTLS_GCM_C
- bool
default n
config MBEDTLS_RSA_C
- bool
default n
config PSA_WANT_KEY_TYPE_ARIA
- bool
default n
config PSA_WANT_KEY_TYPE_CHACHA20
- bool
default n
config PSA_WANT_ALG_GCM
- bool
default n
config PSA_WANT_ALG_CHACHA20_POLY1305
- bool
default n
config PSA_WANT_ALG_SHA_1
- bool
default n
config PSA_WANT_ALG_SHA_224
- bool
default n
config PSA_WANT_ALG_SHA_384
- bool
default n
config PSA_WANT_ALG_SHA_512
- bool
default n
config PSA_WANT_ALG_RIPEMD160
- bool
default n
config PSA_WANT_ALG_MD5
- bool
default n
config PSA_WANT_ALG_CFB
- bool
default n
config PSA_WANT_ALG_OFB
- bool
default n
# Disable not used shell modules
config SENSOR_SHELL
- bool
default n
config DEVICE_SHELL
- bool
default n
config DATE_SHELL
- bool
default n
config DEVMEM_SHELL
- bool
default n
config MCUBOOT_SHELL
- bool
default n
config CLOCK_CONTROL_NRF_SHELL
- bool
default n
config FLASH_SHELL
- bool
default n
# SoC series related configuration
@@ -459,7 +384,6 @@ if SOC_SERIES_NRF52X
# Increase maximum data length of PDU supported in the Controller
config BT_CTLR_DATA_LENGTH_MAX
- int
default 251
endif # SOC_SERIES_NRF52X
@@ -467,7 +391,6 @@ endif # SOC_SERIES_NRF52X
if SOC_SERIES_NRF53X
config UPDATEABLE_IMAGE_NUMBER
- int
default 2
# Generate random numbers using Xoroshiro algorithm instead of direct calls
diff --git a/config/nrfconnect/chip-module/Kconfig.features b/config/nrfconnect/chip-module/Kconfig.features
index 918a82685cad02..662d7074ebe0b3 100644
--- a/config/nrfconnect/chip-module/Kconfig.features
+++ b/config/nrfconnect/chip-module/Kconfig.features
@@ -49,11 +49,9 @@ config CHIP_QSPI_NOR
if CHIP_QSPI_NOR
config NORDIC_QSPI_NOR
- bool
default y
config NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE
- int
default 16
endif # CHIP_QSPI_NOR
@@ -71,7 +69,6 @@ config CHIP_SPI_NOR
if CHIP_SPI_NOR
config SPI_NOR_FLASH_LAYOUT_PAGE_SIZE
- int
default 4096
endif # CHIP_SPI_NOR
@@ -96,41 +93,33 @@ if CHIP_DFU_OVER_BT_SMP
# MCU Manager and SMP configuration
config MCUMGR_SMP_BT_AUTHEN
- bool
default n
config MCUMGR_BUF_COUNT
- int
default 6
# Increase BT MTU and RX buffer for big size DFU messages
config BT_L2CAP_TX_MTU
- int
default 498
config BT_BUF_ACL_RX_SIZE
- int
default 502
# Increase MCUMGR_BUF_SIZE, as it must be big enough to fit MAX MTU + overhead and for single-image DFU default is 384 B
config MCUMGR_BUF_SIZE
- int
default 1024
# Increase system workqueue size, as SMP is processed within it
config SYSTEM_WORKQUEUE_STACK_SIZE
- int
default 2800
if SOC_SERIES_NRF53X
# Enable custom SMP request to erase settings partition.
config MCUMGR_GRP_ZEPHYR_BASIC
- bool
default y
config MCUMGR_GRP_BASIC_CMD_STORAGE_ERASE
- bool
default y
endif # SOC_SERIES_NRF53X
diff --git a/config/nrfconnect/chip-module/Kconfig.hci_rpmsg.defaults b/config/nrfconnect/chip-module/Kconfig.hci_rpmsg.defaults
index 8069d710047338..83290b2b492f28 100644
--- a/config/nrfconnect/chip-module/Kconfig.hci_rpmsg.defaults
+++ b/config/nrfconnect/chip-module/Kconfig.hci_rpmsg.defaults
@@ -17,83 +17,63 @@
# The purpose of this file is to define new default values of settings used when building hci_rpmsg child image for Matter samples.
config LOG
- bool
default n
config HEAP_MEM_POOL_SIZE
- int
default 8192
config MAIN_STACK_SIZE
- int
default 2048
config SYSTEM_WORKQUEUE_STACK_SIZE
- int
default 2048
config BT
- bool
default y
config BT_HCI_RAW
- bool
default y
config BT_MAX_CONN
- int
default 1
config BT_PERIPHERAL
- bool
default y
config BT_CENTRAL
- bool
default n
config BT_BUF_ACL_RX_SIZE
- int
default 502
config BT_BUF_ACL_TX_SIZE
- int
default 251
config BT_CTLR_DATA_LENGTH_MAX
- int
default 251
config BT_CTLR_ASSERT_HANDLER
- bool
default y
config BT_HCI_RAW_RESERVE
- int
default 1
# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
# Host number of completed commands does not follow normal flow control.
config BT_BUF_CMD_TX_COUNT
- int
default 10
config ASSERT
- bool
default y
config DEBUG_INFO
- bool
default y
config EXCEPTION_STACK_TRACE
- bool
default y
config IPC_SERVICE
- bool
default y
config MBOX
- bool
default y
diff --git a/config/nrfconnect/chip-module/Kconfig.mcuboot.defaults b/config/nrfconnect/chip-module/Kconfig.mcuboot.defaults
index b9c6dce1982fb7..72169ca50afd8e 100644
--- a/config/nrfconnect/chip-module/Kconfig.mcuboot.defaults
+++ b/config/nrfconnect/chip-module/Kconfig.mcuboot.defaults
@@ -17,50 +17,39 @@
# The purpose of this file is to define new default values of settings used when building mcuboot child image for Matter samples.
config MAIN_STACK_SIZE
- int
default 10240
config BOOT_SWAP_SAVE_ENCTLV
- bool
default n
config BOOT_ENCRYPT_RSA
- bool
default n
config BOOT_ENCRYPT_EC256
- bool
default n
config BOOT_ENCRYPT_X25519
- bool
default n
config BOOT_BOOTSTRAP
- bool
default n
config PM
- bool
default n
config FLASH
- bool
default y
config FPROTECT
- bool
default y
# nRF7002DK uses SPI NOR external flash
if BOARD_NRF7002DK_NRF5340_CPUAPP
config SPI
- bool
default y
config SPI_NOR
- bool
default y
choice SPI_NOR_SFDP
@@ -68,15 +57,12 @@ choice SPI_NOR_SFDP
endchoice
config SPI_NOR_FLASH_LAYOUT_PAGE_SIZE
- int
default 4096
config MULTITHREADING
- bool
default y
config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK
- bool
default y
endif
@@ -85,68 +71,53 @@ endif
if BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF52840DK_NRF52840
config NORDIC_QSPI_NOR
- bool
default y
config NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE
- int
default 4096
config NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE
- int
default 16
endif
config BOOT_MAX_IMG_SECTORS
- int
default 256
config LOG
- bool
default n
config CONSOLE_HANDLER
- bool
default n
config BOOT_BANNER
- bool
default n
config TIMESLICING
- bool
default n
config RESET_ON_FATAL_ERROR
- bool
default n
config MULTITHREADING
- bool
default n
config TICKLESS_KERNEL
- bool
default n
config TIMEOUT_64BIT
- bool
default n
config NRF_ENABLE_ICACHE
- bool
default n
if SOC_SERIES_NRF53X
# The following configurations are required to support simultaneous multi image update
config PCD_APP
- bool
default y
config UPDATEABLE_IMAGE_NUMBER
- int
default 2
# Multi-image updates do not support image swapping yet.
@@ -157,24 +128,19 @@ endchoice
# The network core cannot access external flash directly. The flash simulator must be used to
# provide a memory region that is used to forward the new firmware to the network core.
config FLASH_SIMULATOR
- bool
default y
config FLASH_SIMULATOR_DOUBLE_WRITES
- bool
default y
config FLASH_SIMULATOR_STATS
- bool
default n
# Enable custom command to erase settings partition.
config ENABLE_MGMT_PERUSER
- bool
default y
config BOOT_MGMT_CUSTOM_STORAGE_ERASE
- bool
default y
endif # SOC_SERIES_NRF53X
diff --git a/config/nrfconnect/chip-module/Kconfig.multiprotocol_rpmsg.defaults b/config/nrfconnect/chip-module/Kconfig.multiprotocol_rpmsg.defaults
index 18d3e7889ae1a2..9fee38cb5f38fc 100644
--- a/config/nrfconnect/chip-module/Kconfig.multiprotocol_rpmsg.defaults
+++ b/config/nrfconnect/chip-module/Kconfig.multiprotocol_rpmsg.defaults
@@ -17,87 +17,66 @@
# The purpose of this file is to define new default values of settings used when building multiprotocol_rpmsg child image for Matter samples.
config LOG
- bool
default n
config HEAP_MEM_POOL_SIZE
- int
default 8192
config MAIN_STACK_SIZE
- int
default 2048
config SYSTEM_WORKQUEUE_STACK_SIZE
- int
default 2048
config BT
- bool
default y
config BT_HCI_RAW
- bool
default y
config BT_MAX_CONN
- int
default 1
config BT_PERIPHERAL
- bool
default y
config BT_CENTRAL
- bool
default n
config BT_BUF_ACL_RX_SIZE
- int
default 502
config BT_BUF_ACL_TX_SIZE
- int
default 251
config BT_CTLR_DATA_LENGTH_MAX
- int
default 251
config BT_CTLR_ASSERT_HANDLER
- bool
default y
config BT_HCI_RAW_RESERVE
- int
default 1
# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
# Host number of completed commands does not follow normal flow control.
config BT_BUF_CMD_TX_COUNT
- int
default 10
config ASSERT
- bool
default y
config DEBUG_INFO
- bool
default y
config EXCEPTION_STACK_TRACE
- bool
default y
config NRF_802154_SER_RADIO
- bool
default y
config NRF_RTC_TIMER_USER_CHAN_COUNT
- int
default 2
config NRF_802154_ENCRYPTION
- bool
default y
diff --git a/docs/guides/access-control-guide.md b/docs/guides/access-control-guide.md
index 53275f6308ed08..d82ec309b8b8b9 100644
--- a/docs/guides/access-control-guide.md
+++ b/docs/guides/access-control-guide.md
@@ -378,15 +378,15 @@ strongly typed values:
The privileges are:
-- Clusters.AccessControl.Enums.Privilege.kView
-- Clusters.AccessControl.Enums.Privilege.kOperate
-- Clusters.AccessControl.Enums.Privilege.kManage
-- Clusters.AccessControl.Enums.Privilege.kAdminister
+- `Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kView`
+- `Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kOperate`
+- `Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kManage`
+- `Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kAdminister`
The authentication modes are:
-- Clusters.AccessControl.Enums.AuthMode.kCASE
-- Clusters.AccessControl.Enums.AuthMode.kGroup
+- `Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kCASE`
+- `Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kGroup`
Some typical clusters:
@@ -433,14 +433,14 @@ await devCtrl.ReadAttribute(1, [ (0, Clusters.AccessControl.Attributes.Acl ) ] )
```
await devCtrl.WriteAttribute(1, [ (0, Clusters.AccessControl.Attributes.Acl( [
- Clusters.AccessControl.Structs.AccessControlEntry(
- privilege = Clusters.AccessControl.Enums.Privilege.kAdminister,
- authMode = Clusters.AccessControl.Enums.AuthMode.kCase,
+ Clusters.AccessControl.Structs.AccessControlEntryStruct(
+ privilege = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kAdminister,
+ authMode = Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kCase,
subjects = [ 1 ]
),
- Clusters.AccessControl.Structs.AccessControlEntry(
- privilege = Clusters.AccessControl.Enums.Privilege.kView,
- authMode = Clusters.AccessControl.Enums.AuthMode.kCase,
+ Clusters.AccessControl.Structs.AccessControlEntryStruct(
+ privilege = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kView,
+ authMode = Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kCase,
subjects = [ 4444, 5555, 6666 ],
),
] ) ) ] )
@@ -482,19 +482,19 @@ await devCtrl.WriteAttribute(1, [ (0, Clusters.AccessControl.Attributes.Acl( [
```
await devCtrl.WriteAttribute(1, [ (0, Clusters.AccessControl.Attributes.Acl( [
- Clusters.AccessControl.Structs.AccessControlEntry(
- privilege = Clusters.AccessControl.Enums.Privilege.kAdminister,
- authMode = Clusters.AccessControl.Enums.AuthMode.kCase,
+ Clusters.AccessControl.Structs.AccessControlEntryStruct(
+ privilege = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kAdminister,
+ authMode = Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kCase,
subjects = [ 1 ]
),
- Clusters.AccessControl.Structs.AccessControlEntry(
- privilege = Clusters.AccessControl.Enums.Privilege.kView,
- authMode = Clusters.AccessControl.Enums.AuthMode.kCase,
+ Clusters.AccessControl.Structs.AccessControlEntryStruct(
+ privilege = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kView,
+ authMode = Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kCase,
subjects = [ 4444, 5555, 6666 ],
),
- Clusters.AccessControl.Structs.AccessControlEntry(
- privilege = Clusters.AccessControl.Enums.Privilege.kOperate,
- authMode = Clusters.AccessControl.Enums.AuthMode.kGroup,
+ Clusters.AccessControl.Structs.AccessControlEntryStruct(
+ privilege = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kOperate,
+ authMode = Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kGroup,
subjects = [ 123, 456 ],
targets = [
Clusters.AccessControl.Structs.Target(
diff --git a/docs/guides/repl/.ipynb_checkpoints/Matter - Basic Interactions-checkpoint.ipynb b/docs/guides/repl/.ipynb_checkpoints/Matter - Basic Interactions-checkpoint.ipynb
index cf2046aaebc0bd..48cac23fe3434b 100644
--- a/docs/guides/repl/.ipynb_checkpoints/Matter - Basic Interactions-checkpoint.ipynb
+++ b/docs/guides/repl/.ipynb_checkpoints/Matter - Basic Interactions-checkpoint.ipynb
@@ -1414,7 +1414,7 @@
"│ │ │ <class 'chip.clusters.Objects.Basic.Attributes.ClusterRevision'>: 1\n",
"│ │ },\n",
"│ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor'>: {\n",
- "│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.DefaultOtaProviders'>: [],\n",
+ "│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.DefaultOTAProviders'>: [],\n",
"│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdatePossible'>: True,\n",
"│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdateState'>: <OTAUpdateStateEnum.kUnknown: 0>,\n",
"│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdateStateProgress'>: 0,\n",
@@ -2430,7 +2430,7 @@
"\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.Basic.Attributes.ClusterRevision'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1;36m1\u001b[0m\n",
"\u001b[2;32m│ │ \u001b[0m\u001b[1m}\u001b[0m,\n",
"\u001b[2;32m│ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1m{\u001b[0m\n",
- "\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.DefaultOtaProviders'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1m[\u001b[0m\u001b[1m]\u001b[0m,\n",
+ "\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.DefaultOTAProviders'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1m[\u001b[0m\u001b[1m]\u001b[0m,\n",
"\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdatePossible'\u001b[0m\u001b[1m>\u001b[0m: \u001b[3;92mTrue\u001b[0m,\n",
"\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdateState'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1m<\u001b[0m\u001b[1;95mOTAUpdateStateEnum.kUnknown:\u001b[0m\u001b[39m \u001b[0m\u001b[1;36m0\u001b[0m\u001b[1m>\u001b[0m,\n",
"\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdateStateProgress'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1;36m0\u001b[0m,\n",
diff --git a/docs/guides/repl/Matter_Access_Control.ipynb b/docs/guides/repl/Matter_Access_Control.ipynb
index 80dae46862b901..8bc0c44a72a5ac 100644
--- a/docs/guides/repl/Matter_Access_Control.ipynb
+++ b/docs/guides/repl/Matter_Access_Control.ipynb
@@ -500,10 +500,10 @@
}
],
"source": [
- "acl = [ Clusters.AccessControl.Structs.AccessControlEntry(\n",
+ "acl = [ Clusters.AccessControl.Structs.AccessControlEntryStruct(\n",
" fabricIndex = 1,\n",
- " privilege = Clusters.AccessControl.Enums.Privilege.kAdminister,\n",
- " authMode = Clusters.AccessControl.Enums.AuthMode.kCase,\n",
+ " privilege = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kAdminister,\n",
+ " authMode = Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kCase,\n",
" subjects = [ 1 ] ) \n",
"]\n",
"\n",
@@ -729,10 +729,10 @@
}
],
"source": [
- "acl.append(Clusters.AccessControl.Structs.AccessControlEntry(\n",
+ "acl.append(Clusters.AccessControl.Structs.AccessControlEntryStruct(\n",
" fabricIndex = 1,\n",
- " privilege = Clusters.AccessControl.Enums.Privilege.kOperate,\n",
- " authMode = Clusters.AccessControl.Enums.AuthMode.kCase,\n",
+ " privilege = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kOperate,\n",
+ " authMode = Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kCase,\n",
" targets = [ Clusters.AccessControl.Structs.Target(\n",
" endpoint = 1,\n",
" ) ] ) )\n",
diff --git a/docs/guides/repl/Matter_Basic_Interactions.ipynb b/docs/guides/repl/Matter_Basic_Interactions.ipynb
index 0693f197cdc8b9..12d9224ef48613 100644
--- a/docs/guides/repl/Matter_Basic_Interactions.ipynb
+++ b/docs/guides/repl/Matter_Basic_Interactions.ipynb
@@ -1407,7 +1407,7 @@
"│ │ │ <class 'chip.clusters.Objects.Basic.Attributes.ClusterRevision'>: 1\n",
"│ │ },\n",
"│ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor'>: {\n",
- "│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.DefaultOtaProviders'>: [],\n",
+ "│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.DefaultOTAProviders'>: [],\n",
"│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdatePossible'>: True,\n",
"│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdateState'>: <OTAUpdateStateEnum.kUnknown: 0>,\n",
"│ │ │ <class 'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdateStateProgress'>: 0,\n",
@@ -2423,7 +2423,7 @@
"\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.Basic.Attributes.ClusterRevision'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1;36m1\u001b[0m\n",
"\u001b[2;32m│ │ \u001b[0m\u001b[1m}\u001b[0m,\n",
"\u001b[2;32m│ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1m{\u001b[0m\n",
- "\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.DefaultOtaProviders'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1m[\u001b[0m\u001b[1m]\u001b[0m,\n",
+ "\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.DefaultOTAProviders'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1m[\u001b[0m\u001b[1m]\u001b[0m,\n",
"\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdatePossible'\u001b[0m\u001b[1m>\u001b[0m: \u001b[3;92mTrue\u001b[0m,\n",
"\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdateState'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1m<\u001b[0m\u001b[1;95mOTAUpdateStateEnum.kUnknown:\u001b[0m\u001b[39m \u001b[0m\u001b[1;36m0\u001b[0m\u001b[1m>\u001b[0m,\n",
"\u001b[2;32m│ │ │ \u001b[0m\u001b[1m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.clusters.Objects.OtaSoftwareUpdateRequestor.Attributes.UpdateStateProgress'\u001b[0m\u001b[1m>\u001b[0m: \u001b[1;36m0\u001b[0m,\n",
diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
index e5781c207776a5..754985f37dd4f4 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
@@ -57,12 +57,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -70,22 +70,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -96,7 +96,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -258,7 +258,7 @@ server cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -396,7 +396,7 @@ server cluster BinaryInputBasic = 15 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -423,19 +423,13 @@ server cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -443,9 +437,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -457,7 +457,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -466,7 +466,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -474,12 +474,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -636,8 +636,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -718,22 +718,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -3947,7 +3947,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
index d0874dec15e8e4..550c16da95fef7 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
@@ -1663,7 +1663,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1699,7 +1699,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/all-clusters-app/ameba/main/include/OnOffCommands.h b/examples/all-clusters-app/ameba/main/include/OnOffCommands.h
index 47dfe5698de4aa..02b77ed029284d 100644
--- a/examples/all-clusters-app/ameba/main/include/OnOffCommands.h
+++ b/examples/all-clusters-app/ameba/main/include/OnOffCommands.h
@@ -124,8 +124,8 @@ void ProcessOnOffUnicastBindingCommand(BindingCommandData * data, const EmberBin
break;
case Clusters::OnOff::Commands::OffWithEffect::Id:
- offwitheffectCommand.effectId = static_cast(data->args[0]);
- offwitheffectCommand.effectVariant = static_cast(data->args[1]);
+ offwitheffectCommand.effectIdentifier = static_cast(data->args[0]);
+ offwitheffectCommand.effectVariant = static_cast(data->args[1]);
Controller::InvokeCommandRequest(peer_device->GetExchangeManager(), peer_device->GetSecureSession().Value(), binding.remote,
offwitheffectCommand, onSuccess, onFailure);
break;
@@ -171,8 +171,8 @@ void ProcessOnOffGroupBindingCommand(BindingCommandData * data, const EmberBindi
break;
case Clusters::OnOff::Commands::OffWithEffect::Id:
- offwitheffectCommand.effectId = static_cast(data->args[0]);
- offwitheffectCommand.effectVariant = static_cast(data->args[1]);
+ offwitheffectCommand.effectIdentifier = static_cast(data->args[0]);
+ offwitheffectCommand.effectVariant = static_cast(data->args[1]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, offwitheffectCommand);
break;
diff --git a/examples/all-clusters-app/nrfconnect/main/ZclDoorLockCallbacks.cpp b/examples/all-clusters-app/nrfconnect/main/ZclDoorLockCallbacks.cpp
index edaa86e44d5125..0ab2703cb268b2 100644
--- a/examples/all-clusters-app/nrfconnect/main/ZclDoorLockCallbacks.cpp
+++ b/examples/all-clusters-app/nrfconnect/main/ZclDoorLockCallbacks.cpp
@@ -26,7 +26,7 @@ using namespace ::chip;
using namespace ::chip::app::Clusters;
using namespace ::chip::app::Clusters::DoorLock;
-LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
+LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL);
// Provided some empty callbacks and replaced feature map
// to simulate DoorLock endpoint for All-Clusters-App example
diff --git a/examples/all-clusters-app/nrfconnect/prj.conf b/examples/all-clusters-app/nrfconnect/prj.conf
index ee2bee67b64ce4..51d5dd89c68a5f 100644
--- a/examples/all-clusters-app/nrfconnect/prj.conf
+++ b/examples/all-clusters-app/nrfconnect/prj.conf
@@ -36,6 +36,9 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
+
# Disable OTA requestor
CONFIG_CHIP_OTA_REQUESTOR=n
diff --git a/examples/all-clusters-app/nrfconnect/prj_dfu.conf b/examples/all-clusters-app/nrfconnect/prj_dfu.conf
index b91bf3fa8298a6..c0d47e635ed406 100644
--- a/examples/all-clusters-app/nrfconnect/prj_dfu.conf
+++ b/examples/all-clusters-app/nrfconnect/prj_dfu.conf
@@ -35,7 +35,8 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
-# reduce application size by disabling including assertions in the output file.
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
CONFIG_ASSERT_VERBOSE=n
CONFIG_ASSERT_NO_FILE_INFO=y
CONFIG_ASSERT_NO_COND_INFO=y
diff --git a/examples/all-clusters-app/nrfconnect/prj_release.conf b/examples/all-clusters-app/nrfconnect/prj_release.conf
index 5816426f0fc09e..b229f68b308b9d 100644
--- a/examples/all-clusters-app/nrfconnect/prj_release.conf
+++ b/examples/all-clusters-app/nrfconnect/prj_release.conf
@@ -35,6 +35,7 @@ CONFIG_BT_DEVICE_NAME="AllClusters"
CONFIG_RESET_ON_FATAL_ERROR=y
# Disable all debug features
+CONFIG_USE_SEGGER_RTT=n
CONFIG_SHELL=n
CONFIG_OPENTHREAD_SHELL=n
CONFIG_CONSOLE=n
diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
index 288a32def968f1..58e0c12b20d3e9 100644
--- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
+++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
@@ -51,12 +51,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -64,22 +64,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -90,7 +90,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -346,7 +346,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -373,19 +373,13 @@ server cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -393,9 +387,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -411,7 +411,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -419,11 +419,11 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -571,8 +571,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -653,22 +653,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -3328,7 +3328,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
index a9d16f86c65d19..87189ce6654867 100644
--- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
+++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
@@ -1663,7 +1663,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1699,7 +1699,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/all-clusters-minimal-app/nrfconnect/prj.conf b/examples/all-clusters-minimal-app/nrfconnect/prj.conf
index 2c2c8d2fc81c28..c33baaa8d79761 100644
--- a/examples/all-clusters-minimal-app/nrfconnect/prj.conf
+++ b/examples/all-clusters-minimal-app/nrfconnect/prj.conf
@@ -36,6 +36,9 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
+
# Disable OTA requestor
CONFIG_CHIP_OTA_REQUESTOR=n
diff --git a/examples/all-clusters-minimal-app/nrfconnect/prj_dfu.conf b/examples/all-clusters-minimal-app/nrfconnect/prj_dfu.conf
index 292d7a086d4e89..6effabf6914a9b 100644
--- a/examples/all-clusters-minimal-app/nrfconnect/prj_dfu.conf
+++ b/examples/all-clusters-minimal-app/nrfconnect/prj_dfu.conf
@@ -36,7 +36,8 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
-# reduce application size by disabling including assertions in the output file.
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
CONFIG_ASSERT_VERBOSE=n
CONFIG_ASSERT_NO_FILE_INFO=y
CONFIG_ASSERT_NO_COND_INFO=y
diff --git a/examples/all-clusters-minimal-app/nrfconnect/prj_release.conf b/examples/all-clusters-minimal-app/nrfconnect/prj_release.conf
index 33cd3f38589653..8029f55a1e31f4 100644
--- a/examples/all-clusters-minimal-app/nrfconnect/prj_release.conf
+++ b/examples/all-clusters-minimal-app/nrfconnect/prj_release.conf
@@ -35,6 +35,7 @@ CONFIG_BT_DEVICE_NAME="AllClusters"
CONFIG_RESET_ON_FATAL_ERROR=y
# Disable all debug features
+CONFIG_USE_SEGGER_RTT=n
CONFIG_SHELL=n
CONFIG_OPENTHREAD_SHELL=n
CONFIG_CONSOLE=n
diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter
index 7a6bea24441155..bc512081ede0c3 100644
--- a/examples/bridge-app/bridge-common/bridge-app.matter
+++ b/examples/bridge-app/bridge-common/bridge-app.matter
@@ -193,7 +193,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -226,19 +226,13 @@ client cluster Binding = 30 {
}
client cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -246,9 +240,15 @@ client cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -260,7 +260,7 @@ client cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -269,7 +269,7 @@ client cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -277,12 +277,12 @@ client cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -294,19 +294,13 @@ client cluster AccessControl = 31 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -314,9 +308,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -328,7 +328,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -337,7 +337,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -345,12 +345,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
diff --git a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
index 4dd2570986fd4f..20770992d3c6de 100644
--- a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
+++ b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -253,7 +253,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -285,19 +285,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -305,9 +299,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -319,7 +319,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -328,7 +328,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -336,12 +336,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -410,8 +410,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -503,22 +503,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1349,7 +1349,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.zap b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.zap
index ab66735db5b2df..d08112b8a74d62 100644
--- a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.zap
+++ b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
index 8ea622527a82d2..b581d736f30482 100644
--- a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
+++ b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
@@ -58,12 +58,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -71,22 +71,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -97,7 +97,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -154,7 +154,7 @@ server cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -271,7 +271,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -287,19 +287,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -307,9 +301,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -321,7 +321,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -330,7 +330,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -338,12 +338,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -421,8 +421,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -514,22 +514,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster GeneralCommissioning = 48 {
@@ -1426,7 +1426,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.zap b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.zap
index 8634ffb89470c2..b8f4d837892f1a 100644
--- a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.zap
+++ b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.zap
@@ -1657,7 +1657,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1693,7 +1693,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
index 7515f9055d5ed5..cfaef808114702 100644
--- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
+++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -136,19 +136,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -156,9 +150,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -170,7 +170,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -179,7 +179,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -187,12 +187,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -261,8 +261,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -354,22 +354,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1087,7 +1087,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
index c0b3b624458b12..8e49bac0c5fbb9 100644
--- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
+++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
index 220c3493ca6bd5..7c314a9211d015 100644
--- a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
+++ b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -253,7 +253,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -285,19 +285,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -305,9 +299,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -319,7 +319,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -328,7 +328,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -336,12 +336,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -410,8 +410,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -503,22 +503,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1233,7 +1233,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap
index dfedd4ba175e21..622d97c5033235 100644
--- a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap
+++ b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
index fc1f5da4f75fe0..472e9477262e0a 100644
--- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
+++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -136,19 +136,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -156,9 +150,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -170,7 +170,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -179,7 +179,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -187,12 +187,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -261,8 +261,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -354,22 +354,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1472,7 +1472,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
index 0e56a1a59a4289..cfcba042044c38 100644
--- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
+++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
index 774e7065d99d33..dff1a98eed5aa3 100644
--- a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
+++ b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -253,7 +253,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -285,19 +285,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -305,9 +299,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -319,7 +319,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -328,7 +328,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -336,12 +336,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -410,8 +410,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -503,22 +503,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1488,7 +1488,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap
index dba651796102e3..4a6c20dc3678d3 100644
--- a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap
+++ b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
index 59b42def6f6ea7..15e0a1034d897c 100644
--- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
+++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
@@ -58,12 +58,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -71,22 +71,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -97,7 +97,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -110,7 +110,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -126,19 +126,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -146,9 +140,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -160,7 +160,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -169,7 +169,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -177,12 +177,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -260,8 +260,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -353,22 +353,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1143,7 +1143,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap b/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap
index 1b917cc96427bc..15bea4e9f4e799 100644
--- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap
+++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap
@@ -1657,7 +1657,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1693,7 +1693,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
index 665d0720ff4250..7c6446e1e8cc9b 100644
--- a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
+++ b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
@@ -65,12 +65,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -78,22 +78,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -117,7 +117,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -149,19 +149,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -169,9 +163,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -183,7 +183,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -192,7 +192,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -200,12 +200,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -274,8 +274,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -367,22 +367,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1099,7 +1099,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.zap b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.zap
index c04b23579cd78f..05284278d50fde 100644
--- a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.zap
+++ b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
index eee4e4754bfcb1..3b36f2ae987519 100644
--- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
+++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -246,7 +246,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -278,19 +278,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -298,9 +292,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -312,7 +312,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -321,7 +321,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -329,12 +329,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -403,8 +403,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -496,22 +496,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1341,7 +1341,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.zap b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.zap
index 7d2c77f7a7261e..44ce0f1b32df80 100644
--- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.zap
+++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
index 4f0c7c0f14b129..39ad6dd5f3013c 100644
--- a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
+++ b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
@@ -65,12 +65,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -78,22 +78,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -117,7 +117,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -149,19 +149,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -169,9 +163,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -183,7 +183,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -192,7 +192,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -200,12 +200,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -274,8 +274,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -367,22 +367,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1099,7 +1099,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap
index a9a852b9e2cf6c..5114019f8d73f5 100644
--- a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap
+++ b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
index 993e09d3cb3491..a0a6b310a10319 100644
--- a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
+++ b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
@@ -65,12 +65,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -78,22 +78,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -117,7 +117,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -149,19 +149,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -169,9 +163,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -183,7 +183,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -192,7 +192,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -200,12 +200,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -274,8 +274,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -367,22 +367,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1103,7 +1103,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.zap b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.zap
index 2424113df9d07e..223b4e055cda69 100644
--- a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.zap
+++ b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
index aecd711bca2c46..770f2495594654 100644
--- a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
+++ b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
@@ -65,12 +65,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -78,22 +78,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -117,7 +117,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -149,19 +149,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -169,9 +163,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -183,7 +183,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -192,7 +192,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -200,12 +200,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -274,8 +274,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -367,22 +367,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1098,7 +1098,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.zap b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.zap
index 60d6a2983d9782..36b8f09ea009af 100644
--- a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.zap
+++ b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
index 45a58c4b1657df..f3f026c679f961 100644
--- a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
+++ b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -253,7 +253,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -285,19 +285,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -305,9 +299,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -319,7 +319,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -328,7 +328,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -336,12 +336,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -410,8 +410,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -503,22 +503,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1223,7 +1223,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap
index c0e106f8eb8281..f366046581c6ea 100644
--- a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap
+++ b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
index d6420b00798d7e..647f5be459e9da 100644
--- a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
+++ b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -196,7 +196,7 @@ server cluster OnOff = 6 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -228,19 +228,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -248,9 +242,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -262,7 +262,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -271,7 +271,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -279,12 +279,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -353,8 +353,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -446,22 +446,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1166,7 +1166,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.zap b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.zap
index e1db44e7efa78e..9a251571ccd7e0 100644
--- a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.zap
+++ b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
index 5558267d95063b..e5a1c171203196 100644
--- a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
+++ b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -154,7 +154,7 @@ server cluster OnOff = 6 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -186,19 +186,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -206,9 +200,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -220,7 +220,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -229,7 +229,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -237,12 +237,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -311,8 +311,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -404,22 +404,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1124,7 +1124,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap
index 88077564992f0a..905f811e581e9d 100644
--- a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap
+++ b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
index c6ebe078910881..efb2f5ebbb9e58 100644
--- a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
+++ b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
@@ -70,12 +70,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -83,22 +83,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -109,7 +109,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -122,7 +122,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -154,19 +154,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -174,9 +168,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -188,7 +188,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -197,7 +197,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -205,12 +205,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -279,8 +279,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -372,22 +372,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1108,7 +1108,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.zap b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.zap
index 8cdcfd01a4b75e..87acceec68559e 100644
--- a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.zap
+++ b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
index 218f76f0dca83f..0a3f54e975dfb5 100644
--- a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
+++ b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
@@ -49,12 +49,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -62,22 +62,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -88,7 +88,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -244,7 +244,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -276,19 +276,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -296,9 +290,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -310,7 +310,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -319,7 +319,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -327,12 +327,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -401,8 +401,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -494,22 +494,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1214,7 +1214,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.zap b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.zap
index 0d001f8f524993..ee674ca36239af 100644
--- a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.zap
+++ b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
index 614cce0bbda109..4ca3f3231e275f 100644
--- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
+++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
@@ -65,12 +65,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -78,22 +78,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -117,7 +117,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -149,19 +149,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -169,9 +163,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -183,7 +183,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -192,7 +192,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -200,12 +200,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -274,8 +274,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -367,22 +367,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1098,7 +1098,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.zap b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.zap
index 3c52979b32b5b2..deb4316ea5b8da 100644
--- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.zap
+++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
index 99cef508b903ef..35202e6eb9c2e6 100644
--- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
+++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -136,19 +136,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -156,9 +150,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -170,7 +170,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -179,7 +179,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -187,12 +187,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -261,8 +261,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -354,22 +354,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1236,7 +1236,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap
index 99ebe10bf6fad3..a275cc7a7c50d4 100644
--- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap
+++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
index 637104a944361a..455c6dc74ddb73 100644
--- a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
+++ b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
@@ -52,12 +52,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -65,22 +65,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -91,7 +91,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -104,7 +104,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -136,19 +136,13 @@ client cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -156,9 +150,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -170,7 +170,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -179,7 +179,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -187,12 +187,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -261,8 +261,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -354,22 +354,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1216,7 +1216,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.zap b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.zap
index 9c2c66761f534e..613186058c068a 100644
--- a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.zap
+++ b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.zap
@@ -1593,7 +1593,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1629,7 +1629,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/chef/nrfconnect/main.cpp b/examples/chef/nrfconnect/main.cpp
index 8c3061945838d7..17e207ead026cc 100644
--- a/examples/chef/nrfconnect/main.cpp
+++ b/examples/chef/nrfconnect/main.cpp
@@ -43,7 +43,7 @@
#include "Rpc.h"
#endif
-LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);
+LOG_MODULE_REGISTER(app, CONFIG_CHIP_APP_LOG_LEVEL);
using namespace chip;
using namespace chip::Shell;
diff --git a/examples/chef/sample_app_util/test_files/sample_zap_file.zap b/examples/chef/sample_app_util/test_files/sample_zap_file.zap
index 4ae4707493e858..983188af02fd42 100644
--- a/examples/chef/sample_app_util/test_files/sample_zap_file.zap
+++ b/examples/chef/sample_app_util/test_files/sample_zap_file.zap
@@ -79,7 +79,6 @@
"define": "IDENTIFY_CLUSTER",
"side": "server",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "identify time",
@@ -582,7 +581,6 @@
"define": "ON_OFF_CLUSTER",
"side": "server",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "OnOff",
@@ -625,7 +623,6 @@
"define": "ON_OFF_SWITCH_CONFIGURATION_CLUSTER",
"side": "client",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "ClusterRevision",
@@ -652,7 +649,6 @@
"define": "ON_OFF_SWITCH_CONFIGURATION_CLUSTER",
"side": "server",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "switch type",
@@ -803,10 +799,9 @@
"define": "LEVEL_CONTROL_CLUSTER",
"side": "server",
"enabled": 0,
- "commands": [],
"attributes": [
{
- "name": "current level",
+ "name": "CurrentLevel",
"code": 0,
"mfgCode": null,
"side": "server",
@@ -846,7 +841,6 @@
"define": "DESCRIPTOR_CLUSTER",
"side": "client",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "ClusterRevision",
@@ -873,10 +867,9 @@
"define": "DESCRIPTOR_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
- "name": "device list",
+ "name": "DeviceTypeList",
"code": 0,
"mfgCode": null,
"side": "server",
@@ -892,7 +885,7 @@
"reportableChange": 0
},
{
- "name": "server list",
+ "name": "ServerList",
"code": 1,
"mfgCode": null,
"side": "server",
@@ -908,7 +901,7 @@
"reportableChange": 0
},
{
- "name": "client list",
+ "name": "ClientList",
"code": 2,
"mfgCode": null,
"side": "server",
@@ -924,7 +917,7 @@
"reportableChange": 0
},
{
- "name": "parts list",
+ "name": "PartsList",
"code": 3,
"mfgCode": null,
"side": "server",
@@ -980,7 +973,6 @@
"define": "ACCESS_CONTROL_CLUSTER",
"side": "client",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "ClusterRevision",
@@ -1007,7 +999,6 @@
"define": "ACCESS_CONTROL_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "ACL",
@@ -1143,10 +1134,9 @@
"name": "Basic Information",
"code": 40,
"mfgCode": null,
- "define": "BASIC_CLUSTER",
+ "define": "BASIC_INFORMATION_CLUSTER",
"side": "client",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "ClusterRevision",
@@ -1170,10 +1160,9 @@
"name": "Basic Information",
"code": 40,
"mfgCode": null,
- "define": "BASIC_CLUSTER",
+ "define": "BASIC_INFORMATION_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "DataModelRevision",
@@ -1666,7 +1655,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1700,10 +1689,9 @@
"define": "OTA_SOFTWARE_UPDATE_REQUESTOR_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
@@ -1822,9 +1810,7 @@
"mfgCode": null,
"define": "LOCALIZATION_CONFIGURATION_CLUSTER",
"side": "client",
- "enabled": 0,
- "commands": [],
- "attributes": []
+ "enabled": 0
},
{
"name": "Localization Configuration",
@@ -1833,7 +1819,6 @@
"define": "LOCALIZATION_CONFIGURATION_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "ActiveLocale",
@@ -1907,9 +1892,7 @@
"mfgCode": null,
"define": "TIME_FORMAT_LOCALIZATION_CLUSTER",
"side": "client",
- "enabled": 0,
- "commands": [],
- "attributes": []
+ "enabled": 0
},
{
"name": "Time Format Localization",
@@ -1918,7 +1901,6 @@
"define": "TIME_FORMAT_LOCALIZATION_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "HourFormat",
@@ -2008,9 +1990,7 @@
"mfgCode": null,
"define": "UNIT_LOCALIZATION_CLUSTER",
"side": "client",
- "enabled": 0,
- "commands": [],
- "attributes": []
+ "enabled": 0
},
{
"name": "Unit Localization",
@@ -2019,7 +1999,6 @@
"define": "UNIT_LOCALIZATION_CLUSTER",
"side": "server",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "TemperatureUnit",
@@ -2586,7 +2565,6 @@
"define": "GENERAL_DIAGNOSTICS_CLUSTER",
"side": "client",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "ClusterRevision",
@@ -2613,7 +2591,6 @@
"define": "GENERAL_DIAGNOSTICS_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "NetworkInterfaces",
@@ -2820,7 +2797,6 @@
"define": "SOFTWARE_DIAGNOSTICS_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "ThreadMetrics",
@@ -2963,7 +2939,6 @@
"define": "THREAD_NETWORK_DIAGNOSTICS_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "channel",
@@ -2972,7 +2947,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
@@ -2986,9 +2961,9 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "RoutingRole",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
@@ -3004,7 +2979,7 @@
"side": "server",
"type": "char_string",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
@@ -3020,7 +2995,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3036,7 +3011,7 @@
"side": "server",
"type": "int64u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000000000000000",
@@ -3052,7 +3027,7 @@
"side": "server",
"type": "octet_string",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
@@ -3068,7 +3043,7 @@
"side": "server",
"type": "int64u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000000000000000",
@@ -3116,7 +3091,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
@@ -3132,7 +3107,7 @@
"side": "server",
"type": "int8u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
@@ -3148,7 +3123,7 @@
"side": "server",
"type": "int8u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
@@ -3164,7 +3139,7 @@
"side": "server",
"type": "int8u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
@@ -3180,7 +3155,7 @@
"side": "server",
"type": "int8u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
@@ -3196,7 +3171,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3212,7 +3187,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3228,7 +3203,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3244,7 +3219,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3260,7 +3235,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3276,7 +3251,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3292,7 +3267,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3308,7 +3283,7 @@
"side": "server",
"type": "int16u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3324,7 +3299,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3340,7 +3315,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3356,7 +3331,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3372,7 +3347,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3388,7 +3363,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3404,7 +3379,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3420,7 +3395,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3436,7 +3411,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3452,7 +3427,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3468,7 +3443,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3484,7 +3459,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3500,7 +3475,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3516,7 +3491,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3532,7 +3507,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3548,7 +3523,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3564,7 +3539,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3580,7 +3555,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3596,7 +3571,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3612,7 +3587,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3628,7 +3603,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3644,7 +3619,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3660,7 +3635,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3676,7 +3651,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3692,7 +3667,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3708,7 +3683,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3724,7 +3699,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3740,7 +3715,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3756,7 +3731,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3772,7 +3747,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3788,7 +3763,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3804,7 +3779,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3820,7 +3795,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3836,7 +3811,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3852,7 +3827,7 @@
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3868,7 +3843,7 @@
"side": "server",
"type": "int64u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000000000000000",
@@ -3884,7 +3859,7 @@
"side": "server",
"type": "int64u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000000000000000",
@@ -3894,13 +3869,13 @@
"reportableChange": 0
},
{
- "name": "delay",
+ "name": "Delay",
"code": 58,
"mfgCode": null,
"side": "server",
"type": "int32u",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3914,7 +3889,7 @@
"code": 59,
"mfgCode": null,
"side": "server",
- "type": "array",
+ "type": "SecurityPolicy",
"included": 1,
"storageOption": "External",
"singleton": 0,
@@ -3926,13 +3901,13 @@
"reportableChange": 0
},
{
- "name": "ChannelMask",
+ "name": "ChannelPage0Mask",
"code": 60,
"mfgCode": null,
"side": "server",
"type": "octet_string",
"included": 1,
- "storageOption": "RAM",
+ "storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
@@ -3946,7 +3921,7 @@
"code": 61,
"mfgCode": null,
"side": "server",
- "type": "array",
+ "type": "OperationalDatasetComponents",
"included": 1,
"storageOption": "External",
"singleton": 0,
@@ -4050,7 +4025,6 @@
"define": "WIFI_NETWORK_DIAGNOSTICS_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "bssid",
@@ -4337,7 +4311,6 @@
"define": "ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "PHYRate",
@@ -4523,9 +4496,7 @@
"mfgCode": null,
"define": "SWITCH_CLUSTER",
"side": "client",
- "enabled": 0,
- "commands": [],
- "attributes": []
+ "enabled": 0
},
{
"name": "Switch",
@@ -4534,7 +4505,6 @@
"define": "SWITCH_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "FeatureMap",
@@ -4629,14 +4599,13 @@
"define": "ADMINISTRATOR_COMMISSIONING_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "WindowStatus",
"code": 0,
"mfgCode": null,
"side": "server",
- "type": "int8u",
+ "type": "CommissioningWindowStatus",
"included": 1,
"storageOption": "External",
"singleton": 0,
@@ -4784,14 +4753,6 @@
"source": "client",
"incoming": 1,
"outgoing": 1
- },
- {
- "name": "RemoveTrustedRootCertificate",
- "code": 12,
- "mfgCode": null,
- "source": "client",
- "incoming": 1,
- "outgoing": 0
}
],
"attributes": [
@@ -4940,7 +4901,7 @@
"code": 5,
"mfgCode": null,
"side": "server",
- "type": "fabric_idx",
+ "type": "int8u",
"included": 1,
"storageOption": "External",
"singleton": 0,
@@ -5025,8 +4986,7 @@
"incoming": 1,
"outgoing": 0
}
- ],
- "attributes": []
+ ]
},
{
"name": "Group Key Management",
@@ -5158,9 +5118,7 @@
"mfgCode": null,
"define": "FIXED_LABEL_CLUSTER",
"side": "client",
- "enabled": 0,
- "commands": [],
- "attributes": []
+ "enabled": 0
},
{
"name": "Fixed Label",
@@ -5169,7 +5127,6 @@
"define": "FIXED_LABEL_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "label list",
@@ -5227,9 +5184,7 @@
"mfgCode": null,
"define": "USER_LABEL_CLUSTER",
"side": "client",
- "enabled": 0,
- "commands": [],
- "attributes": []
+ "enabled": 0
},
{
"name": "User Label",
@@ -5238,7 +5193,6 @@
"define": "USER_LABEL_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "label list",
@@ -5349,7 +5303,6 @@
"define": "IDENTIFY_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "identify time",
@@ -5932,7 +5885,6 @@
"define": "ON_OFF_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "OnOff",
@@ -6147,10 +6099,9 @@
"define": "LEVEL_CONTROL_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
- "name": "current level",
+ "name": "CurrentLevel",
"code": 0,
"mfgCode": null,
"side": "server",
@@ -6166,7 +6117,7 @@
"reportableChange": 0
},
{
- "name": "remaining time",
+ "name": "RemainingTime",
"code": 1,
"mfgCode": null,
"side": "server",
@@ -6182,7 +6133,7 @@
"reportableChange": 0
},
{
- "name": "min level",
+ "name": "MinLevel",
"code": 2,
"mfgCode": null,
"side": "server",
@@ -6198,7 +6149,7 @@
"reportableChange": 0
},
{
- "name": "max level",
+ "name": "MaxLevel",
"code": 3,
"mfgCode": null,
"side": "server",
@@ -6214,7 +6165,7 @@
"reportableChange": 0
},
{
- "name": "current frequency",
+ "name": "CurrentFrequency",
"code": 4,
"mfgCode": null,
"side": "server",
@@ -6230,7 +6181,7 @@
"reportableChange": 0
},
{
- "name": "min frequency",
+ "name": "MinFrequency",
"code": 5,
"mfgCode": null,
"side": "server",
@@ -6246,7 +6197,7 @@
"reportableChange": 0
},
{
- "name": "max frequency",
+ "name": "MaxFrequency",
"code": 6,
"mfgCode": null,
"side": "server",
@@ -6262,11 +6213,11 @@
"reportableChange": 0
},
{
- "name": "options",
+ "name": "Options",
"code": 15,
"mfgCode": null,
"side": "server",
- "type": "bitmap8",
+ "type": "LevelControlOptions",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -6278,7 +6229,7 @@
"reportableChange": 0
},
{
- "name": "on off transition time",
+ "name": "OnOffTransitionTime",
"code": 16,
"mfgCode": null,
"side": "server",
@@ -6294,7 +6245,7 @@
"reportableChange": 0
},
{
- "name": "on level",
+ "name": "OnLevel",
"code": 17,
"mfgCode": null,
"side": "server",
@@ -6310,7 +6261,7 @@
"reportableChange": 0
},
{
- "name": "on transition time",
+ "name": "OnTransitionTime",
"code": 18,
"mfgCode": null,
"side": "server",
@@ -6326,7 +6277,7 @@
"reportableChange": 0
},
{
- "name": "off transition time",
+ "name": "OffTransitionTime",
"code": 19,
"mfgCode": null,
"side": "server",
@@ -6342,7 +6293,7 @@
"reportableChange": 0
},
{
- "name": "default move rate",
+ "name": "DefaultMoveRate",
"code": 20,
"mfgCode": null,
"side": "server",
@@ -6358,7 +6309,7 @@
"reportableChange": 0
},
{
- "name": "start up current level",
+ "name": "StartUpCurrentLevel",
"code": 16384,
"mfgCode": null,
"side": "server",
@@ -6462,7 +6413,6 @@
"define": "DESCRIPTOR_CLUSTER",
"side": "client",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "ClusterRevision",
@@ -6489,10 +6439,9 @@
"define": "DESCRIPTOR_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
- "name": "device list",
+ "name": "DeviceTypeList",
"code": 0,
"mfgCode": null,
"side": "server",
@@ -6508,7 +6457,7 @@
"reportableChange": 0
},
{
- "name": "server list",
+ "name": "ServerList",
"code": 1,
"mfgCode": null,
"side": "server",
@@ -6524,7 +6473,7 @@
"reportableChange": 0
},
{
- "name": "client list",
+ "name": "ClientList",
"code": 2,
"mfgCode": null,
"side": "server",
@@ -6540,7 +6489,7 @@
"reportableChange": 0
},
{
- "name": "parts list",
+ "name": "PartsList",
"code": 3,
"mfgCode": null,
"side": "server",
@@ -6593,10 +6542,9 @@
"name": "Basic Information",
"code": 40,
"mfgCode": null,
- "define": "BASIC_CLUSTER",
+ "define": "BASIC_INFORMATION_CLUSTER",
"side": "client",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "ClusterRevision",
@@ -6620,10 +6568,9 @@
"name": "Basic Information",
"code": 40,
"mfgCode": null,
- "define": "BASIC_CLUSTER",
+ "define": "BASIC_INFORMATION_CLUSTER",
"side": "server",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "DataModelRevision",
@@ -7150,7 +7097,6 @@
"define": "COLOR_CONTROL_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "CurrentHue",
@@ -7265,7 +7211,7 @@
"reportableChange": 0
},
{
- "name": "ColorTemperature",
+ "name": "ColorTemperatureMireds",
"code": 7,
"mfgCode": null,
"side": "server",
@@ -7561,7 +7507,6 @@
"define": "OCCUPANCY_SENSING_CLUSTER",
"side": "client",
"enabled": 0,
- "commands": [],
"attributes": [
{
"name": "ClusterRevision",
@@ -7588,7 +7533,6 @@
"define": "OCCUPANCY_SENSING_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
"attributes": [
{
"name": "occupancy",
diff --git a/examples/chip-tool/BUILD.gn b/examples/chip-tool/BUILD.gn
index d870c1d5cf92f2..86e003a69201c4 100644
--- a/examples/chip-tool/BUILD.gn
+++ b/examples/chip-tool/BUILD.gn
@@ -58,6 +58,7 @@ static_library("chip-tool-utils") {
"commands/common/Commands.cpp",
"commands/common/Commands.h",
"commands/common/CredentialIssuerCommands.h",
+ "commands/common/HexConversion.h",
"commands/discover/DiscoverCommand.cpp",
"commands/discover/DiscoverCommissionablesCommand.cpp",
"commands/discover/DiscoverCommissionersCommand.cpp",
diff --git a/examples/chip-tool/commands/clusters/ClusterCommand.h b/examples/chip-tool/commands/clusters/ClusterCommand.h
index 33320760dd9d9a..f6cb307021ac5d 100644
--- a/examples/chip-tool/commands/clusters/ClusterCommand.h
+++ b/examples/chip-tool/commands/clusters/ClusterCommand.h
@@ -45,16 +45,14 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override
{
- return InteractionModelCommands::SendCommand(device, endpointIds.at(0), mClusterId, mCommandId, mPayload,
- mTimedInteractionTimeoutMs, mSuppressResponse, mRepeatCount, mRepeatDelayInMs);
+ return InteractionModelCommands::SendCommand(device, endpointIds.at(0), mClusterId, mCommandId, mPayload);
}
template
CHIP_ERROR SendCommand(chip::DeviceProxy * device, chip::EndpointId endpointId, chip::ClusterId clusterId,
chip::CommandId commandId, const T & value)
{
- return InteractionModelCommands::SendCommand(device, endpointId, clusterId, commandId, value, mTimedInteractionTimeoutMs,
- mSuppressResponse, mRepeatCount, mRepeatDelayInMs);
+ return InteractionModelCommands::SendCommand(device, endpointId, clusterId, commandId, value);
}
CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override
@@ -184,10 +182,6 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
private:
chip::ClusterId mClusterId;
chip::CommandId mCommandId;
- chip::Optional mTimedInteractionTimeoutMs;
- chip::Optional mSuppressResponse;
- chip::Optional mRepeatCount;
- chip::Optional mRepeatDelayInMs;
CHIP_ERROR mError = CHIP_NO_ERROR;
CustomArgument mPayload;
diff --git a/examples/chip-tool/commands/clusters/ComplexArgument.h b/examples/chip-tool/commands/clusters/ComplexArgument.h
index 2af80e5b3eef3e..e624aeb2cf583c 100644
--- a/examples/chip-tool/commands/clusters/ComplexArgument.h
+++ b/examples/chip-tool/commands/clusters/ComplexArgument.h
@@ -36,6 +36,7 @@
#include
#include
#include
+#include
#include
#include
#include
@@ -210,18 +211,22 @@ class ComplexArgumentParser
size = str.size();
}
- if (size % 2 != 0)
- {
- ChipLogError(chipTool, "Error while encoding %s as a hex string: Odd number of characters.", label);
- return CHIP_ERROR_INVALID_STRING_LENGTH;
- }
+ CHIP_ERROR err = HexToBytes(
+ chip::CharSpan(str.c_str(), size),
+ [&buffer](size_t allocSize) {
+ buffer = static_cast(chip::Platform::MemoryCalloc(allocSize, sizeof(uint8_t)));
+ return buffer;
+ },
+ &size);
- buffer = static_cast(chip::Platform::MemoryCalloc(size / 2, sizeof(uint8_t)));
- size = chip::Encoding::HexToBytes(str.c_str(), size, buffer, size / 2);
- if (size == 0)
+ if (err != CHIP_NO_ERROR)
{
- ChipLogError(chipTool, "Error while encoding %s as a hex string.", label);
- return CHIP_ERROR_INTERNAL;
+ if (buffer != nullptr)
+ {
+ chip::Platform::MemoryFree(buffer);
+ }
+
+ return err;
}
}
diff --git a/examples/chip-tool/commands/clusters/CustomArgument.h b/examples/chip-tool/commands/clusters/CustomArgument.h
index 63fe7d7ade387e..ab6ce40752ae76 100644
--- a/examples/chip-tool/commands/clusters/CustomArgument.h
+++ b/examples/chip-tool/commands/clusters/CustomArgument.h
@@ -19,6 +19,7 @@
#pragma once
#include
+#include
#include
#include
#include
@@ -140,14 +141,18 @@ class CustomArgumentParser
static CHIP_ERROR PutOctetString(chip::TLV::TLVWriter * writer, chip::TLV::Tag tag, Json::Value & value)
{
- size_t size = strlen(value.asCString());
- VerifyOrReturnError(size % 2 == 0, CHIP_ERROR_INVALID_STRING_LENGTH);
-
+ const char * hexData = value.asCString() + kPayloadHexPrefixLen;
+ size_t hexDataLen = strlen(hexData);
chip::Platform::ScopedMemoryBuffer buffer;
- VerifyOrReturnError(buffer.Calloc(size / 2), CHIP_ERROR_NO_MEMORY);
- size_t octetCount = chip::Encoding::HexToBytes(value.asCString() + kPayloadHexPrefixLen, size - kPayloadHexPrefixLen,
- buffer.Get(), (size - kPayloadHexPrefixLen) / 2);
- VerifyOrReturnError(octetCount != 0, CHIP_ERROR_NO_MEMORY);
+
+ size_t octetCount;
+ ReturnErrorOnFailure(HexToBytes(
+ chip::CharSpan(hexData, hexDataLen),
+ [&buffer](size_t allocSize) {
+ buffer.Calloc(allocSize);
+ return buffer.Get();
+ },
+ &octetCount));
return chip::app::DataModel::Encode(*writer, tag, chip::ByteSpan(buffer.Get(), octetCount));
}
diff --git a/examples/chip-tool/commands/clusters/ReportCommand.h b/examples/chip-tool/commands/clusters/ReportCommand.h
index b79ec5eb28ec19..eae5fa8ee51054 100644
--- a/examples/chip-tool/commands/clusters/ReportCommand.h
+++ b/examples/chip-tool/commands/clusters/ReportCommand.h
@@ -209,7 +209,7 @@ class ReadAttribute : public ReadCommand
CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override
{
- return ReadCommand::ReadAttribute(device, endpointIds, mClusterIds, mAttributeIds, mFabricFiltered, mDataVersion);
+ return ReadCommand::ReadAttribute(device, endpointIds, mClusterIds, mAttributeIds);
}
private:
@@ -224,14 +224,12 @@ class ReadAttribute : public ReadCommand
{
AddArgument("fabric-filtered", 0, 1, &mFabricFiltered,
"Boolean indicating whether to do a fabric-filtered read. Defaults to true.");
- AddArgument("data-version", 0, UINT32_MAX, &mDataVersion,
+ AddArgument("data-version", 0, UINT32_MAX, &mDataVersions,
"Comma-separated list of data versions for the clusters being read.");
}
std::vector mClusterIds;
std::vector mAttributeIds;
- chip::Optional mFabricFiltered;
- chip::Optional> mDataVersion;
};
class SubscribeAttribute : public SubscribeCommand
@@ -269,8 +267,7 @@ class SubscribeAttribute : public SubscribeCommand
CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override
{
- return SubscribeCommand::SubscribeAttribute(device, endpointIds, mClusterIds, mAttributeIds, mMinInterval, mMaxInterval,
- mFabricFiltered, mDataVersion, mKeepSubscriptions, mAutoResubscribe);
+ return SubscribeCommand::SubscribeAttribute(device, endpointIds, mClusterIds, mAttributeIds);
}
private:
@@ -289,7 +286,7 @@ class SubscribeAttribute : public SubscribeCommand
"Server must send a report if this number of seconds has elapsed since the last report.");
AddArgument("fabric-filtered", 0, 1, &mFabricFiltered,
"Boolean indicating whether to do a fabric-filtered subscription. Defaults to true.");
- AddArgument("data-version", 0, UINT32_MAX, &mDataVersion,
+ AddArgument("data-version", 0, UINT32_MAX, &mDataVersions,
"Comma-separated list of data versions for the clusters being subscribed to.");
AddArgument("keepSubscriptions", 0, 1, &mKeepSubscriptions,
"Boolean indicating whether to keep existing subscriptions when creating the new one. Defaults to false.");
@@ -299,13 +296,6 @@ class SubscribeAttribute : public SubscribeCommand
std::vector mClusterIds;
std::vector mAttributeIds;
-
- uint16_t mMinInterval;
- uint16_t mMaxInterval;
- chip::Optional mFabricFiltered;
- chip::Optional> mDataVersion;
- chip::Optional mKeepSubscriptions;
- chip::Optional mAutoResubscribe;
};
class ReadEvent : public ReadCommand
@@ -344,14 +334,12 @@ class ReadEvent : public ReadCommand
CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override
{
- return ReadCommand::ReadEvent(device, endpointIds, mClusterIds, mEventIds, mFabricFiltered, mEventNumber);
+ return ReadCommand::ReadEvent(device, endpointIds, mClusterIds, mEventIds);
}
private:
std::vector mClusterIds;
std::vector mEventIds;
- chip::Optional mFabricFiltered;
- chip::Optional mEventNumber;
};
class SubscribeEvent : public SubscribeCommand
@@ -409,21 +397,12 @@ class SubscribeEvent : public SubscribeCommand
CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override
{
- return SubscribeCommand::SubscribeEvent(device, endpointIds, mClusterIds, mEventIds, mMinInterval, mMaxInterval,
- mFabricFiltered, mEventNumber, mKeepSubscriptions, mIsUrgents, mAutoResubscribe);
+ return SubscribeCommand::SubscribeEvent(device, endpointIds, mClusterIds, mEventIds);
}
private:
std::vector mClusterIds;
std::vector mEventIds;
-
- uint16_t mMinInterval;
- uint16_t mMaxInterval;
- chip::Optional mFabricFiltered;
- chip::Optional mEventNumber;
- chip::Optional mKeepSubscriptions;
- chip::Optional> mIsUrgents;
- chip::Optional mAutoResubscribe;
};
class ReadAll : public ReadCommand
@@ -458,18 +437,13 @@ class ReadAll : public ReadCommand
CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override
{
- return ReadCommand::ReadAll(device, endpointIds, mClusterIds, mAttributeIds, mEventIds, mFabricFiltered, mDataVersions,
- mEventNumber);
+ return ReadCommand::ReadAll(device, endpointIds, mClusterIds, mAttributeIds, mEventIds);
}
private:
std::vector mClusterIds;
std::vector mAttributeIds;
std::vector mEventIds;
-
- chip::Optional mFabricFiltered;
- chip::Optional> mDataVersions;
- chip::Optional mEventNumber;
};
class SubscribeAll : public SubscribeCommand
@@ -502,18 +476,11 @@ class SubscribeAll : public SubscribeCommand
CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override
{
- return SubscribeCommand::SubscribeAll(device, endpointIds, mClusterIds, mAttributeIds, mEventIds, mMinInterval,
- mMaxInterval, mFabricFiltered, mEventNumber, mKeepSubscriptions);
+ return SubscribeCommand::SubscribeAll(device, endpointIds, mClusterIds, mAttributeIds, mEventIds);
}
private:
std::vector mClusterIds;
std::vector mAttributeIds;
std::vector mEventIds;
-
- uint16_t mMinInterval;
- uint16_t mMaxInterval;
- chip::Optional mFabricFiltered;
- chip::Optional mEventNumber;
- chip::Optional mKeepSubscriptions;
};
diff --git a/examples/chip-tool/commands/clusters/WriteAttributeCommand.h b/examples/chip-tool/commands/clusters/WriteAttributeCommand.h
index d220468d622260..56363cb481721d 100644
--- a/examples/chip-tool/commands/clusters/WriteAttributeCommand.h
+++ b/examples/chip-tool/commands/clusters/WriteAttributeCommand.h
@@ -129,9 +129,7 @@ class WriteAttribute : public InteractionModelWriter, public ModelCommand, publi
CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds,
std::vector clusterIds, std::vector attributeIds, const T & values)
{
- return InteractionModelWriter::WriteAttribute(device, endpointIds, clusterIds, attributeIds, values,
- mTimedInteractionTimeoutMs, mSuppressResponse, mDataVersions, mRepeatCount,
- mRepeatDelayInMs);
+ return InteractionModelWriter::WriteAttribute(device, endpointIds, clusterIds, attributeIds, values);
}
CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex, std::vector clusterIds,
@@ -249,12 +247,6 @@ class WriteAttribute : public InteractionModelWriter, public ModelCommand, publi
std::vector mAttributeIds;
CHIP_ERROR mError = CHIP_NO_ERROR;
- chip::Optional mTimedInteractionTimeoutMs;
- chip::Optional> mDataVersions;
- chip::Optional mSuppressResponse;
- chip::Optional mRepeatCount;
- chip::Optional mRepeatDelayInMs;
-
T mAttributeValues;
};
diff --git a/examples/chip-tool/commands/common/Command.cpp b/examples/chip-tool/commands/common/Command.cpp
index c4161b6ac59908..cd39293954e4f5 100644
--- a/examples/chip-tool/commands/common/Command.cpp
+++ b/examples/chip-tool/commands/common/Command.cpp
@@ -18,6 +18,7 @@
#include "Command.h"
#include "CustomStringPrefix.h"
+#include "HexConversion.h"
#include "platform/PlatformManager.h"
#include
@@ -377,14 +378,16 @@ bool Command::InitArgument(size_t argIndex, char * argValue)
// representation is always longer than the octet string it encodes,
// so we have enough space in argValue for the decoded version.
chip::Platform::ScopedMemoryBuffer buffer;
- if (!buffer.Calloc(argLen)) // Bigger than needed, but it's fine.
- {
- return false;
- }
- size_t octetCount =
- chip::Encoding::HexToBytes(argValue + kHexStringPrefixLen, argLen - kHexStringPrefixLen, buffer.Get(), argLen);
- if (octetCount == 0)
+ size_t octetCount;
+ CHIP_ERROR err = HexToBytes(
+ chip::CharSpan(argValue + kHexStringPrefixLen, argLen - kHexStringPrefixLen),
+ [&buffer](size_t allocSize) {
+ buffer.Calloc(allocSize);
+ return buffer.Get();
+ },
+ &octetCount);
+ if (err != CHIP_NO_ERROR)
{
return false;
}
diff --git a/examples/chip-tool/commands/common/HexConversion.h b/examples/chip-tool/commands/common/HexConversion.h
new file mode 100644
index 00000000000000..b31568101f2a2d
--- /dev/null
+++ b/examples/chip-tool/commands/common/HexConversion.h
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2022 Project CHIP Authors
+ * All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#pragma once
+
+#include
+#include
+#include
+#include
+
+/**
+ * Utility for converting a hex string to bytes, with the right error checking
+ * and allocation size computation.
+ *
+ * Takes a functor to allocate the buffer to use for the hex bytes. The functor
+ * is expected to return uint8_t *. The caller is responsible for cleaning up
+ * this buffer as needed.
+ *
+ * On success, *octetCount is filled with the number of octets placed in the
+ * buffer. On failure, the value of *octetCount is undefined.
+ */
+template
+CHIP_ERROR HexToBytes(chip::CharSpan hex, F bufferAllocator, size_t * octetCount)
+{
+ *octetCount = 0;
+
+ if (hex.size() % 2 != 0)
+ {
+ ChipLogError(chipTool, "Error while encoding '%.*s' as an octet string: Odd number of characters.",
+ static_cast(hex.size()), hex.data());
+ return CHIP_ERROR_INVALID_STRING_LENGTH;
+ }
+
+ const size_t bufferSize = hex.size() / 2;
+ uint8_t * buffer = bufferAllocator(bufferSize);
+ if (buffer == nullptr && bufferSize != 0)
+ {
+ ChipLogError(chipTool, "Failed to allocate buffer of size: %llu", static_cast(bufferSize));
+ return CHIP_ERROR_NO_MEMORY;
+ }
+
+ size_t byteCount = chip::Encoding::HexToBytes(hex.data(), hex.size(), buffer, bufferSize);
+ if (byteCount == 0 && hex.size() != 0)
+ {
+ ChipLogError(chipTool, "Error while encoding '%.*s' as an octet string.", static_cast(hex.size()), hex.data());
+ return CHIP_ERROR_INTERNAL;
+ }
+
+ *octetCount = byteCount;
+ return CHIP_NO_ERROR;
+}
diff --git a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
index 07f78d80522646..108218687f5598 100644
--- a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
+++ b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
@@ -60,12 +60,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -73,22 +73,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -99,7 +99,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -112,7 +112,7 @@ server cluster Groups = 4 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -128,19 +128,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -148,9 +142,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -162,7 +162,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -171,7 +171,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -179,12 +179,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -262,8 +262,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -355,22 +355,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1310,7 +1310,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap
index 6dd09d9367ba83..2004ac1190ae6b 100644
--- a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap
+++ b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap
@@ -1657,7 +1657,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1693,7 +1693,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/darwin-framework-tool/BUILD.gn b/examples/darwin-framework-tool/BUILD.gn
index 76bfeead5a6e2b..3e59a3c9264342 100644
--- a/examples/darwin-framework-tool/BUILD.gn
+++ b/examples/darwin-framework-tool/BUILD.gn
@@ -124,6 +124,7 @@ executable("darwin-framework-tool") {
"${chip_root}/examples/chip-tool/commands/common/Command.h",
"${chip_root}/examples/chip-tool/commands/common/Commands.cpp",
"${chip_root}/examples/chip-tool/commands/common/Commands.h",
+ "${chip_root}/examples/chip-tool/commands/common/HexConversion.h",
"${chip_root}/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp",
"commands/clusters/ClusterCommandBridge.h",
"commands/clusters/ModelCommandBridge.mm",
@@ -246,3 +247,9 @@ if (chip_codesign) {
outputs = [ "${root_build_dir}/${output_name}" ]
}
}
+
+# Make sure we only build darwin-framework-tool, and not extraneous
+# things like address-resolve, by default.
+group("default") {
+ deps = [ ":darwin-framework-tool" ]
+}
diff --git a/examples/darwin-framework-tool/commands/provider/OTAProviderDelegate.mm b/examples/darwin-framework-tool/commands/provider/OTAProviderDelegate.mm
index 68eef16bfc31fe..f77b8d668656ae 100644
--- a/examples/darwin-framework-tool/commands/provider/OTAProviderDelegate.mm
+++ b/examples/darwin-framework-tool/commands/provider/OTAProviderDelegate.mm
@@ -59,7 +59,7 @@ - (void)handleQueryImageForNodeID:(NSNumber * _Nonnull)nodeID
return;
}
- auto hasCandidate = [self SelectOTACandidate:params.vendorId rPID:params.productId rSV:params.softwareVersion];
+ auto hasCandidate = [self SelectOTACandidate:params.vendorID rPID:params.productID rSV:params.softwareVersion];
if (!hasCandidate) {
NSLog(@"Unable to select OTA Image.");
_selectedCandidate.status = @(MTROTASoftwareUpdateProviderOTAQueryStatusNotAvailable);
@@ -222,8 +222,8 @@ - (bool)SelectOTACandidate:(NSNumber *)requestorVendorID
auto candidateSoftwareVersion = [candidate.softwareVersion unsignedLongValue];
auto candidateMinApplicableSoftwareVersion = [candidate.deviceModelData.minApplicableSoftwareVersion unsignedLongValue];
auto candidateMaxApplicableSoftwareVersion = [candidate.deviceModelData.maxApplicableSoftwareVersion unsignedLongValue];
- auto candidateVendorId = [candidate.deviceModelData.vendorId unsignedIntValue];
- auto candidateProductId = [candidate.deviceModelData.productId unsignedIntValue];
+ auto candidateVendorId = [candidate.deviceModelData.vendorID unsignedIntValue];
+ auto candidateProductId = [candidate.deviceModelData.productID unsignedIntValue];
if (candidateSoftwareVersionValid && (softwareVersion < candidateSoftwareVersion)
&& (softwareVersion >= candidateMinApplicableSoftwareVersion)
diff --git a/examples/darwin-framework-tool/commands/provider/OTASoftwareUpdateInteractive.mm b/examples/darwin-framework-tool/commands/provider/OTASoftwareUpdateInteractive.mm
index 2e6734bea4c38f..77ca8d51a022a5 100644
--- a/examples/darwin-framework-tool/commands/provider/OTASoftwareUpdateInteractive.mm
+++ b/examples/darwin-framework-tool/commands/provider/OTASoftwareUpdateInteractive.mm
@@ -88,8 +88,8 @@ static bool ParseJsonFileAndPopulateCandidates(
[NSNumber numberWithUnsignedLongLong:iter.get("maxApplicableSoftwareVersion", 1000).asUInt64()];
auto otaURL = [NSString stringWithUTF8String:iter.get("otaURL", "https://test.com").asCString()];
- candidate.deviceModelData.vendorId = vendorId;
- candidate.deviceModelData.productId = productId;
+ candidate.deviceModelData.vendorID = vendorId;
+ candidate.deviceModelData.productID = productId;
candidate.softwareVersion = softwareVersion;
candidate.softwareVersionString = softwareVersionString;
candidate.deviceModelData.cDVersionNumber = cDVersionNumber;
@@ -246,8 +246,8 @@ static bool ParseJsonFileAndPopulateCandidates(
ChipLogDetail(chipTool, "Validating image list candidate %s: ", [candidate.deviceModelData.otaURL UTF8String]);
- auto vendorId = [candidate.deviceModelData.vendorId unsignedIntValue];
- auto productId = [candidate.deviceModelData.productId unsignedIntValue];
+ auto vendorId = [candidate.deviceModelData.vendorID unsignedIntValue];
+ auto productId = [candidate.deviceModelData.productID unsignedIntValue];
auto softwareVersion = [candidate.softwareVersion unsignedLongValue];
auto softwareVersionString = [candidate.softwareVersionString UTF8String];
auto softwareVersionStringLength = [candidate.softwareVersionString length];
diff --git a/examples/darwin-framework-tool/logging/logging.mm b/examples/darwin-framework-tool/logging/logging.mm
index d57a5190be7216..a596ee0eae2a9c 100644
--- a/examples/darwin-framework-tool/logging/logging.mm
+++ b/examples/darwin-framework-tool/logging/logging.mm
@@ -20,45 +20,68 @@
#import "logging.h"
+#include
#include
+#include
#include
namespace dft {
namespace logging {
- void Setup()
+ void LogMessage(MTRLogType type, NSString * component, NSString * message)
{
auto kLoggingColorError = @"\033[1;31m";
auto kLoggingColorProgress = @"\033[0;32m";
auto kLoggingColorDetail = @"\033[0;34m";
auto kLoggingColorEnd = @"\033[0m";
+ NSString * loggingColor = nil;
+
+ switch (type) {
+ case MTRLogTypeError:
+ loggingColor = kLoggingColorError;
+ break;
+ case MTRLogTypeProgress:
+ loggingColor = kLoggingColorProgress;
+ break;
+ case MTRLogTypeDetail:
+ loggingColor = kLoggingColorDetail;
+ break;
+ }
+
+ auto formatter = [[NSDateFormatter alloc] init];
+ formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss.SSS";
+ auto formattedDate = [formatter stringFromDate:[NSDate date]];
+
+ int pid = [[NSProcessInfo processInfo] processIdentifier];
+
+ auto tid = pthread_mach_thread_np(pthread_self());
+
+ fprintf(stdout, "%s%s [%d:%u] [%s]: %s%s\n", loggingColor.UTF8String, formattedDate.UTF8String, pid, tid,
+ component.UTF8String, message.UTF8String, kLoggingColorEnd.UTF8String);
+ }
+
+ void LogRedirectCallback(const char * moduleName, uint8_t category, const char * format, va_list args)
+ {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wformat-nonliteral"
+ // Note: Format using NSString so that '%@' placeholders are supported
+ NSString * message = [[NSString alloc] initWithFormat:@(format) arguments:args];
+#pragma clang diagnostic pop
+
+ auto type = std::min(static_cast(category), MTRLogTypeDetail);
+ LogMessage(type, @(moduleName), message);
+ }
+
+ void Setup()
+ {
MTRSetLogCallback(MTRLogTypeDetail, ^(MTRLogType type, NSString * component, NSString * message) {
- NSString * loggingColor = nil;
-
- switch (type) {
- case MTRLogTypeError:
- loggingColor = kLoggingColorError;
- break;
- case MTRLogTypeProgress:
- loggingColor = kLoggingColorProgress;
- break;
- case MTRLogTypeDetail:
- loggingColor = kLoggingColorDetail;
- break;
- }
-
- auto formatter = [[NSDateFormatter alloc] init];
- formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss.SSS";
- auto formattedDate = [formatter stringFromDate:[NSDate date]];
-
- int pid = [[NSProcessInfo processInfo] processIdentifier];
-
- auto tid = pthread_mach_thread_np(pthread_self());
-
- fprintf(stdout, "%s%s [%d:%u] [%s]: %s%s\n", loggingColor.UTF8String, formattedDate.UTF8String, pid, tid,
- component.UTF8String, message.UTF8String, kLoggingColorEnd.UTF8String);
+ LogMessage(type, component, message);
});
+
+ // We also have a second copy of the logging core floating around, so
+ // need to set up a logging redirect on that too.
+ chip::Logging::SetLogRedirectCallback(&LogRedirectCallback);
}
}
diff --git a/examples/dynamic-bridge-app/bridge-common/bridge-app.matter b/examples/dynamic-bridge-app/bridge-common/bridge-app.matter
index 7a6bea24441155..bc512081ede0c3 100644
--- a/examples/dynamic-bridge-app/bridge-common/bridge-app.matter
+++ b/examples/dynamic-bridge-app/bridge-common/bridge-app.matter
@@ -193,7 +193,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -226,19 +226,13 @@ client cluster Binding = 30 {
}
client cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -246,9 +240,15 @@ client cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -260,7 +260,7 @@ client cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -269,7 +269,7 @@ client cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -277,12 +277,12 @@ client cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -294,19 +294,13 @@ client cluster AccessControl = 31 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -314,9 +308,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -328,7 +328,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -337,7 +337,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -345,12 +345,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.matter b/examples/light-switch-app/light-switch-common/light-switch-app.matter
index f6d8f6bb5ae616..60163b655d90a8 100644
--- a/examples/light-switch-app/light-switch-common/light-switch-app.matter
+++ b/examples/light-switch-app/light-switch-common/light-switch-app.matter
@@ -92,12 +92,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -105,22 +105,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -131,7 +131,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -300,7 +300,7 @@ client cluster OnOff = 6 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -330,19 +330,13 @@ server cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -350,9 +344,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -364,7 +364,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -373,7 +373,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -381,12 +381,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -464,8 +464,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -557,22 +557,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1774,7 +1774,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.zap b/examples/light-switch-app/light-switch-common/light-switch-app.zap
index 09d6b7f97e2568..1c7a8c37ff26b6 100644
--- a/examples/light-switch-app/light-switch-common/light-switch-app.zap
+++ b/examples/light-switch-app/light-switch-common/light-switch-app.zap
@@ -1705,7 +1705,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1741,7 +1741,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/light-switch-app/nrfconnect/prj.conf b/examples/light-switch-app/nrfconnect/prj.conf
index 19f3cb266a6abc..23fa257975fe64 100644
--- a/examples/light-switch-app/nrfconnect/prj.conf
+++ b/examples/light-switch-app/nrfconnect/prj.conf
@@ -38,3 +38,6 @@ CONFIG_BT_DEVICE_NAME="MatterSwitch"
CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
diff --git a/examples/light-switch-app/nrfconnect/prj_no_dfu.conf b/examples/light-switch-app/nrfconnect/prj_no_dfu.conf
index 27475ce596444c..145cb9b50f835e 100644
--- a/examples/light-switch-app/nrfconnect/prj_no_dfu.conf
+++ b/examples/light-switch-app/nrfconnect/prj_no_dfu.conf
@@ -39,6 +39,9 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
+
# Disable Matter OTA DFU
CONFIG_CHIP_OTA_REQUESTOR=n
diff --git a/examples/light-switch-app/nrfconnect/prj_release.conf b/examples/light-switch-app/nrfconnect/prj_release.conf
index a55449c991b17c..520a280b1e18ab 100644
--- a/examples/light-switch-app/nrfconnect/prj_release.conf
+++ b/examples/light-switch-app/nrfconnect/prj_release.conf
@@ -41,6 +41,7 @@ CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_PM_DEVICE=y
# Disable all debug features
+CONFIG_USE_SEGGER_RTT=n
CONFIG_SHELL=n
CONFIG_OPENTHREAD_SHELL=n
CONFIG_CONSOLE=n
diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter
index 2c2635d0b86ca0..7b2c429fd448c4 100644
--- a/examples/lighting-app/lighting-common/lighting-app.matter
+++ b/examples/lighting-app/lighting-common/lighting-app.matter
@@ -57,12 +57,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -70,22 +70,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -96,7 +96,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -150,7 +150,7 @@ server cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -273,7 +273,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -286,19 +286,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -306,9 +300,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -320,7 +320,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -329,7 +329,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -337,12 +337,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -420,8 +420,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -513,22 +513,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1761,7 +1761,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/lighting-app/lighting-common/lighting-app.zap b/examples/lighting-app/lighting-common/lighting-app.zap
index 04d047e1c038c3..ff918d36e23dd4 100644
--- a/examples/lighting-app/lighting-common/lighting-app.zap
+++ b/examples/lighting-app/lighting-common/lighting-app.zap
@@ -1657,7 +1657,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1693,7 +1693,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/lighting-app/nrfconnect/prj.conf b/examples/lighting-app/nrfconnect/prj.conf
index 1a796988571cf5..ad67f13edf08e3 100644
--- a/examples/lighting-app/nrfconnect/prj.conf
+++ b/examples/lighting-app/nrfconnect/prj.conf
@@ -46,3 +46,6 @@ CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=1024
CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
diff --git a/examples/lighting-app/nrfconnect/prj_no_dfu.conf b/examples/lighting-app/nrfconnect/prj_no_dfu.conf
index 7fc72e8fcbd704..a2d0392c98b5a9 100644
--- a/examples/lighting-app/nrfconnect/prj_no_dfu.conf
+++ b/examples/lighting-app/nrfconnect/prj_no_dfu.conf
@@ -43,6 +43,9 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
+
# Stack size settings
CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=1024
diff --git a/examples/lighting-app/nrfconnect/prj_release.conf b/examples/lighting-app/nrfconnect/prj_release.conf
index 5ff25156b6861b..762b6d44f919c7 100644
--- a/examples/lighting-app/nrfconnect/prj_release.conf
+++ b/examples/lighting-app/nrfconnect/prj_release.conf
@@ -45,6 +45,7 @@ CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=1024
# Disable all debug features
+CONFIG_USE_SEGGER_RTT=n
CONFIG_SHELL=n
CONFIG_OPENTHREAD_SHELL=n
CONFIG_CONSOLE=n
diff --git a/examples/lighting-app/nxp/zap/lighting-on-off.matter b/examples/lighting-app/nxp/zap/lighting-on-off.matter
index af2b51c8fd8a7c..35d6253d4f3e75 100644
--- a/examples/lighting-app/nxp/zap/lighting-on-off.matter
+++ b/examples/lighting-app/nxp/zap/lighting-on-off.matter
@@ -58,12 +58,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -71,22 +71,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -97,7 +97,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -154,7 +154,7 @@ server cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -273,7 +273,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -289,19 +289,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -309,9 +303,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -327,7 +327,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -335,11 +335,11 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -409,8 +409,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -502,22 +502,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster GeneralCommissioning = 48 {
@@ -1229,7 +1229,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/lighting-app/nxp/zap/lighting-on-off.zap b/examples/lighting-app/nxp/zap/lighting-on-off.zap
index 482bbdc4c192c9..4046ea39646d67 100644
--- a/examples/lighting-app/nxp/zap/lighting-on-off.zap
+++ b/examples/lighting-app/nxp/zap/lighting-on-off.zap
@@ -1696,7 +1696,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1732,7 +1732,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/lighting-app/silabs/efr32/BUILD.gn b/examples/lighting-app/silabs/efr32/BUILD.gn
index 4c2341288f3e3d..fdcadf1feb5732 100644
--- a/examples/lighting-app/silabs/efr32/BUILD.gn
+++ b/examples/lighting-app/silabs/efr32/BUILD.gn
@@ -100,11 +100,6 @@ defines = []
# WiFi settings
if (chip_enable_wifi) {
- # disabling LCD for MG24 for wifi
- if (silabs_board == "BRD4186A" || silabs_board == "BRD4187A") {
- show_qr_code = false
- disable_lcd = true
- }
if (chip_default_wifi_ssid != "") {
defines += [
"CHIP_ONNETWORK_PAIRING=1",
diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter
index f325a5b3a7c55f..72510069747932 100644
--- a/examples/lock-app/lock-common/lock-app.matter
+++ b/examples/lock-app/lock-common/lock-app.matter
@@ -90,7 +90,7 @@ server cluster OnOff = 6 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -103,19 +103,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -123,9 +117,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -137,7 +137,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -146,7 +146,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -154,12 +154,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -237,8 +237,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -330,22 +330,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1917,7 +1917,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/lock-app/lock-common/lock-app.zap b/examples/lock-app/lock-common/lock-app.zap
index 0d4b608be89a9f..0c2ca2e2f67797 100644
--- a/examples/lock-app/lock-common/lock-app.zap
+++ b/examples/lock-app/lock-common/lock-app.zap
@@ -1405,7 +1405,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1441,7 +1441,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/lock-app/nrfconnect/main/AppTask.cpp b/examples/lock-app/nrfconnect/main/AppTask.cpp
index f767e5d52c6615..77d689971568c4 100644
--- a/examples/lock-app/nrfconnect/main/AppTask.cpp
+++ b/examples/lock-app/nrfconnect/main/AppTask.cpp
@@ -51,7 +51,7 @@
#include
#include
-LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
+LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL);
using namespace ::chip;
using namespace ::chip::app;
diff --git a/examples/lock-app/nrfconnect/main/ZclCallbacks.cpp b/examples/lock-app/nrfconnect/main/ZclCallbacks.cpp
index 24b6b7709fd9b8..48ab16bb839b7d 100644
--- a/examples/lock-app/nrfconnect/main/ZclCallbacks.cpp
+++ b/examples/lock-app/nrfconnect/main/ZclCallbacks.cpp
@@ -29,7 +29,7 @@ using namespace ::chip;
using namespace ::chip::app::Clusters;
using namespace ::chip::app::Clusters::DoorLock;
-LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
+LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL);
void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t type, uint16_t size,
uint8_t * value)
diff --git a/examples/lock-app/nrfconnect/main/main.cpp b/examples/lock-app/nrfconnect/main/main.cpp
index 0c3b58e3d4f196..93a0062a0ef219 100644
--- a/examples/lock-app/nrfconnect/main/main.cpp
+++ b/examples/lock-app/nrfconnect/main/main.cpp
@@ -21,7 +21,7 @@
#include
-LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);
+LOG_MODULE_REGISTER(app, CONFIG_CHIP_APP_LOG_LEVEL);
using namespace ::chip;
diff --git a/examples/lock-app/nrfconnect/prj.conf b/examples/lock-app/nrfconnect/prj.conf
index 676ae5a05f2599..6b4864a2a486b7 100644
--- a/examples/lock-app/nrfconnect/prj.conf
+++ b/examples/lock-app/nrfconnect/prj.conf
@@ -35,3 +35,6 @@ CONFIG_BT_DEVICE_NAME="MatterLock"
CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
diff --git a/examples/lock-app/nrfconnect/prj_no_dfu.conf b/examples/lock-app/nrfconnect/prj_no_dfu.conf
index 839f839fc2e74f..a53431aa2dd9d7 100644
--- a/examples/lock-app/nrfconnect/prj_no_dfu.conf
+++ b/examples/lock-app/nrfconnect/prj_no_dfu.conf
@@ -36,6 +36,9 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
+
# Disable Matter OTA DFU
CONFIG_CHIP_OTA_REQUESTOR=n
diff --git a/examples/lock-app/nrfconnect/prj_release.conf b/examples/lock-app/nrfconnect/prj_release.conf
index b41ed9ede98909..ba830806523ded 100644
--- a/examples/lock-app/nrfconnect/prj_release.conf
+++ b/examples/lock-app/nrfconnect/prj_release.conf
@@ -38,6 +38,7 @@ CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_PM_DEVICE=y
# Disable all debug features
+CONFIG_USE_SEGGER_RTT=n
CONFIG_SHELL=n
CONFIG_OPENTHREAD_SHELL=n
CONFIG_CONSOLE=n
diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter
index 68b7a88546071f..28341bb99c23f0 100644
--- a/examples/log-source-app/log-source-common/log-source-app.matter
+++ b/examples/log-source-app/log-source-common/log-source-app.matter
@@ -2,19 +2,13 @@
// It is for view/code review purposes only.
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -22,9 +16,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -36,7 +36,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -45,7 +45,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -53,12 +53,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
diff --git a/examples/ota-provider-app/ota-provider-common/OTAProviderExample.cpp b/examples/ota-provider-app/ota-provider-common/OTAProviderExample.cpp
index 41b5008fa5412c..e7715a9fb9357a 100644
--- a/examples/ota-provider-app/ota-provider-common/OTAProviderExample.cpp
+++ b/examples/ota-provider-app/ota-provider-common/OTAProviderExample.cpp
@@ -182,8 +182,8 @@ UserConsentSubject OTAProviderExample::GetUserConsentSubject(const app::CommandH
subject.fabricIndex = commandObj->GetSubjectDescriptor().fabricIndex;
subject.requestorNodeId = commandObj->GetSubjectDescriptor().subject;
subject.providerEndpointId = commandPath.mEndpointId;
- subject.requestorVendorId = commandData.vendorId;
- subject.requestorProductId = commandData.productId;
+ subject.requestorVendorId = commandData.vendorID;
+ subject.requestorProductId = commandData.productID;
subject.requestorCurrentVersion = commandData.softwareVersion;
subject.requestorTargetVersion = targetVersion;
if (commandData.metadataForProvider.HasValue())
@@ -341,7 +341,7 @@ void OTAProviderExample::HandleQueryImage(app::CommandHandler * commandObj, cons
if (!mCandidates.empty()) // If list of OTA candidates is supplied
{
OTAProviderExample::DeviceSoftwareVersionModel candidate;
- if (SelectOTACandidate(commandData.vendorId, commandData.productId, commandData.softwareVersion, candidate))
+ if (SelectOTACandidate(commandData.vendorID, commandData.productID, commandData.softwareVersion, candidate))
{
VerifyOrDie(sizeof(mSoftwareVersionString) > strlen(candidate.softwareVersionString));
diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
index 276b7a73991ce9..dafc45b9628fc9 100644
--- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
+++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
@@ -8,7 +8,7 @@ struct LabelStruct {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -24,19 +24,13 @@ server cluster Descriptor = 29 {
}
client cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -44,9 +38,15 @@ client cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -58,7 +58,7 @@ client cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -67,7 +67,7 @@ client cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -75,12 +75,12 @@ client cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -90,19 +90,13 @@ client cluster AccessControl = 31 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -110,9 +104,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -124,7 +124,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -133,7 +133,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -141,12 +141,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -225,8 +225,8 @@ server cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
diff --git a/examples/ota-requestor-app/mbed/README.md b/examples/ota-requestor-app/mbed/README.md
index 6e6fd542808811..38133986fda880 100644
--- a/examples/ota-requestor-app/mbed/README.md
+++ b/examples/ota-requestor-app/mbed/README.md
@@ -236,10 +236,10 @@ see how to use different CHIP tools to commission and control the application
within a WiFi network.
After commissioning is successful, announce OTA provider's presence using
-`OtaSoftwareUpdateRequestor` cluster with `AnnounceOtaProvider` command. On
+`OtaSoftwareUpdateRequestor` cluster with `AnnounceOTAProvider` command. On
receiving this command OTA requestor will query for OTA image:
- chip-device-ctrl > zcl OtaSoftwareUpdateRequestor AnnounceOtaProvider 1234 0 0 providerNodeId=1235 vendorId=9020 announcementReason=0
+ chip-device-ctrl > zcl OtaSoftwareUpdateRequestor AnnounceOTAProvider 1234 0 0 providerNodeId=1235 vendorId=9020 announcementReason=0
The OTA requestor should communicate with provider, download update image and
apply it.
diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
index 5e7c2196fc5ed3..00ec6a26d82721 100644
--- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
+++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
@@ -57,12 +57,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -70,22 +70,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -96,7 +96,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -150,7 +150,7 @@ server cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -170,7 +170,7 @@ server cluster OnOff = 6 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -186,19 +186,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -206,9 +200,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -220,7 +220,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -229,7 +229,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -237,12 +237,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -320,8 +320,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -413,22 +413,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1030,7 +1030,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap
index ffed1259cb4982..45c956b1da3a61 100644
--- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap
+++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap
@@ -1571,7 +1571,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1607,7 +1607,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/pigweed-app/nrfconnect/main/main.cpp b/examples/pigweed-app/nrfconnect/main/main.cpp
index 78c6212929e8c7..9abede4a6f0314 100644
--- a/examples/pigweed-app/nrfconnect/main/main.cpp
+++ b/examples/pigweed-app/nrfconnect/main/main.cpp
@@ -28,7 +28,7 @@
#include
#include
-LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);
+LOG_MODULE_REGISTER(app, CONFIG_CHIP_APP_LOG_LEVEL);
namespace {
LEDWidget sStatusLED;
diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter
index 7f0d172ef41925..383b1096765494 100644
--- a/examples/placeholder/linux/apps/app1/config.matter
+++ b/examples/placeholder/linux/apps/app1/config.matter
@@ -46,12 +46,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -59,22 +59,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -85,7 +85,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -247,7 +247,7 @@ client cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -308,7 +308,7 @@ server cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -418,7 +418,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter
index 7f0d172ef41925..383b1096765494 100644
--- a/examples/placeholder/linux/apps/app2/config.matter
+++ b/examples/placeholder/linux/apps/app2/config.matter
@@ -46,12 +46,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -59,22 +59,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -85,7 +85,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -247,7 +247,7 @@ client cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -308,7 +308,7 @@ server cluster OnOff = 6 {
readonly attribute int16u clusterRevision = 65533;
request struct OffWithEffectRequest {
- OnOffEffectIdentifier effectId = 0;
+ OnOffEffectIdentifier effectIdentifier = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}
@@ -418,7 +418,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
diff --git a/examples/platform/nrfconnect/Rpc.cpp b/examples/platform/nrfconnect/Rpc.cpp
index c9961063e0407f..5b76dc3f7e7d76 100644
--- a/examples/platform/nrfconnect/Rpc.cpp
+++ b/examples/platform/nrfconnect/Rpc.cpp
@@ -26,7 +26,7 @@
#include
-LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
+LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL);
#if defined(PW_RPC_ATTRIBUTE_SERVICE) && PW_RPC_ATTRIBUTE_SERVICE
#include "pigweed/rpc_services/Attributes.h"
diff --git a/examples/platform/nrfconnect/util/PWMDevice.cpp b/examples/platform/nrfconnect/util/PWMDevice.cpp
index b51d33c8e0ac7d..2d17d31e4e703e 100644
--- a/examples/platform/nrfconnect/util/PWMDevice.cpp
+++ b/examples/platform/nrfconnect/util/PWMDevice.cpp
@@ -26,7 +26,7 @@
#include
#include
-LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
+LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL);
int PWMDevice::Init(const pwm_dt_spec * aPWMDevice, uint8_t aMinLevel, uint8_t aMaxLevel, uint8_t aDefaultLevel)
{
diff --git a/examples/pump-app/nrfconnect/prj.conf b/examples/pump-app/nrfconnect/prj.conf
index 3195f884e65720..3013e7d7aec421 100644
--- a/examples/pump-app/nrfconnect/prj.conf
+++ b/examples/pump-app/nrfconnect/prj.conf
@@ -14,9 +14,6 @@
# limitations under the License.
#
-CONFIG_CHIP=y
-CONFIG_STD_CPP14=y
-
# This sample uses Kconfig.defaults to set options common for all
# samples. This file should contain only options specific for this sample
# or overrides of default values.
@@ -38,3 +35,6 @@ CONFIG_BT_DEVICE_NAME="MatterPump"
CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
diff --git a/examples/pump-app/nrfconnect/prj_no_dfu.conf b/examples/pump-app/nrfconnect/prj_no_dfu.conf
index 67c31871ce797f..a0d3f8b1a879c2 100644
--- a/examples/pump-app/nrfconnect/prj_no_dfu.conf
+++ b/examples/pump-app/nrfconnect/prj_no_dfu.conf
@@ -36,6 +36,9 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
+
# Disable Matter OTA DFU
CONFIG_CHIP_OTA_REQUESTOR=n
diff --git a/examples/pump-app/nrfconnect/prj_release.conf b/examples/pump-app/nrfconnect/prj_release.conf
index adb09f72ef3db2..540c77354fa82f 100644
--- a/examples/pump-app/nrfconnect/prj_release.conf
+++ b/examples/pump-app/nrfconnect/prj_release.conf
@@ -38,6 +38,7 @@ CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_PM_DEVICE=y
# Disable all debug features
+CONFIG_USE_SEGGER_RTT=n
CONFIG_SHELL=n
CONFIG_OPENTHREAD_SHELL=n
CONFIG_CONSOLE=n
diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter
index f48ce24db8d6b4..9f7d9dd521d959 100644
--- a/examples/pump-app/pump-common/pump-app.matter
+++ b/examples/pump-app/pump-common/pump-app.matter
@@ -184,7 +184,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -217,19 +217,13 @@ server cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -237,9 +231,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -251,7 +251,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -260,7 +260,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -268,12 +268,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -352,8 +352,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -445,7 +445,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
@@ -455,15 +455,15 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster GeneralCommissioning = 48 {
@@ -1301,7 +1301,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/pump-app/pump-common/pump-app.zap b/examples/pump-app/pump-common/pump-app.zap
index 934fe71be55faf..afde1ae3664bf4 100644
--- a/examples/pump-app/pump-common/pump-app.zap
+++ b/examples/pump-app/pump-common/pump-app.zap
@@ -1707,7 +1707,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1725,7 +1725,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/pump-controller-app/nrfconnect/prj.conf b/examples/pump-controller-app/nrfconnect/prj.conf
index 4a38ec1177c699..5b9c2baff8ee9e 100644
--- a/examples/pump-controller-app/nrfconnect/prj.conf
+++ b/examples/pump-controller-app/nrfconnect/prj.conf
@@ -35,3 +35,6 @@ CONFIG_BT_DEVICE_NAME="MatterPumpCtrl"
CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
diff --git a/examples/pump-controller-app/nrfconnect/prj_no_dfu.conf b/examples/pump-controller-app/nrfconnect/prj_no_dfu.conf
index dba7042ad82864..d6632fe9172638 100644
--- a/examples/pump-controller-app/nrfconnect/prj_no_dfu.conf
+++ b/examples/pump-controller-app/nrfconnect/prj_no_dfu.conf
@@ -37,6 +37,9 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
+
# Disable Matter OTA DFU
CONFIG_CHIP_OTA_REQUESTOR=n
diff --git a/examples/pump-controller-app/nrfconnect/prj_release.conf b/examples/pump-controller-app/nrfconnect/prj_release.conf
index 88ea95c777e1a1..fc3b092b655c8f 100644
--- a/examples/pump-controller-app/nrfconnect/prj_release.conf
+++ b/examples/pump-controller-app/nrfconnect/prj_release.conf
@@ -39,6 +39,7 @@ CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_PM_DEVICE=y
# Disable all debug features
+CONFIG_USE_SEGGER_RTT=n
CONFIG_SHELL=n
CONFIG_OPENTHREAD_SHELL=n
CONFIG_CONSOLE=n
diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
index b5e2093a66a48b..fbbb3ad0e1a546 100644
--- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
+++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
@@ -83,7 +83,7 @@ client cluster OnOff = 6 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -116,19 +116,13 @@ server cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -136,9 +130,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -150,7 +150,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -159,7 +159,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -167,12 +167,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -251,8 +251,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -344,7 +344,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
@@ -354,15 +354,15 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster GeneralCommissioning = 48 {
@@ -1157,7 +1157,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = true;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap b/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap
index dc3a4bc206d159..ba5eddb46d3f84 100644
--- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap
+++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap
@@ -1655,7 +1655,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1673,7 +1673,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
index 52b56ed2c4f91d..bf88563db716ce 100644
--- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
+++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
@@ -8,7 +8,7 @@ struct LabelStruct {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -21,19 +21,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -41,9 +35,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -55,7 +55,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -64,7 +64,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -72,12 +72,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter
index 60a9c708e1cfc0..28f3870a5a281c 100644
--- a/examples/thermostat/thermostat-common/thermostat.matter
+++ b/examples/thermostat/thermostat-common/thermostat.matter
@@ -86,12 +86,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -99,22 +99,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -125,7 +125,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -246,7 +246,7 @@ server cluster Scenes = 5 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -273,19 +273,13 @@ server cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -293,9 +287,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -307,7 +307,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -316,7 +316,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -324,12 +324,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -408,8 +408,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -501,22 +501,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1550,7 +1550,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/thermostat/thermostat-common/thermostat.zap b/examples/thermostat/thermostat-common/thermostat.zap
index d83a9d05c6b9bc..6047acaa680278 100644
--- a/examples/thermostat/thermostat-common/thermostat.zap
+++ b/examples/thermostat/thermostat-common/thermostat.zap
@@ -1623,7 +1623,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1675,7 +1675,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter
index 904b841097fd33..98b68bf8f34b43 100644
--- a/examples/tv-app/tv-common/tv-app.matter
+++ b/examples/tv-app/tv-common/tv-app.matter
@@ -154,7 +154,7 @@ server cluster LevelControl = 8 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -195,19 +195,13 @@ server cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -215,9 +209,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -229,7 +229,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -238,7 +238,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -246,12 +246,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -330,8 +330,8 @@ server cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
diff --git a/examples/tv-casting-app/android/args.gni b/examples/tv-casting-app/android/args.gni
index 802f54f8b49484..e3a20c5055dd91 100644
--- a/examples/tv-casting-app/android/args.gni
+++ b/examples/tv-casting-app/android/args.gni
@@ -29,3 +29,5 @@ chip_build_libshell = true
chip_enable_additional_data_advertising = true
chip_enable_rotating_device_id = true
+
+chip_config_network_layer_ble = false
diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge.xcodeproj/project.pbxproj b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge.xcodeproj/project.pbxproj
index d85d5a6f2d4f91..ef0579eca8eb50 100644
--- a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge.xcodeproj/project.pbxproj
+++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge.xcodeproj/project.pbxproj
@@ -26,6 +26,7 @@
3CCB8742286A593700771BAD /* ConversionUtils.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3CCB873C286A593700771BAD /* ConversionUtils.hpp */; };
3CCB8743286A593700771BAD /* CastingServerBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3CCB873D286A593700771BAD /* CastingServerBridge.mm */; };
3CCB8744286A593700771BAD /* ConversionUtils.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3CCB873E286A593700771BAD /* ConversionUtils.mm */; };
+ 3CE868F42946D76200FCB92B /* CommissionableDataProviderImpl.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3CE868F32946D76200FCB92B /* CommissionableDataProviderImpl.mm */; };
3CF8532728E37F1000F07B9F /* MatterError.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3CF8532628E37F1000F07B9F /* MatterError.mm */; };
/* End PBXBuildFile section */
@@ -59,6 +60,7 @@
3CCB873C286A593700771BAD /* ConversionUtils.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = ConversionUtils.hpp; sourceTree = ""; };
3CCB873D286A593700771BAD /* CastingServerBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CastingServerBridge.mm; sourceTree = ""; };
3CCB873E286A593700771BAD /* ConversionUtils.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ConversionUtils.mm; sourceTree = ""; };
+ 3CE868F32946D76200FCB92B /* CommissionableDataProviderImpl.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CommissionableDataProviderImpl.mm; sourceTree = ""; };
3CF8532528E37ED800F07B9F /* MatterError.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MatterError.h; sourceTree = ""; };
3CF8532628E37F1000F07B9F /* MatterError.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = MatterError.mm; sourceTree = ""; };
/* End PBXFileReference section */
@@ -125,6 +127,7 @@
3C26AC8B2926FE0C00BA6881 /* DeviceAttestationCredentialsProviderImpl.hpp */,
3C26AC8F2927008900BA6881 /* DeviceAttestationCredentialsProviderImpl.mm */,
3C0D9CDF2920A30C00D3332B /* CommissionableDataProviderImpl.hpp */,
+ 3CE868F32946D76200FCB92B /* CommissionableDataProviderImpl.mm */,
);
path = MatterTvCastingBridge;
sourceTree = "";
@@ -241,6 +244,7 @@
3CCB8744286A593700771BAD /* ConversionUtils.mm in Sources */,
3C4E53B028E4F28100F293E8 /* MediaPlaybackTypes.mm in Sources */,
3C66FBFC290327BB00B63FE7 /* AppParameters.mm in Sources */,
+ 3CE868F42946D76200FCB92B /* CommissionableDataProviderImpl.mm in Sources */,
3C26AC9329282B8100BA6881 /* DeviceAttestationCredentialsHolder.m in Sources */,
3C26AC902927008900BA6881 /* DeviceAttestationCredentialsProviderImpl.mm in Sources */,
3CCB873F286A593700771BAD /* DiscoveredNodeData.mm in Sources */,
diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/AppParameters.h b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/AppParameters.h
index 929722387a7388..9e445e25fa63d7 100644
--- a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/AppParameters.h
+++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/AppParameters.h
@@ -31,9 +31,9 @@
@property uint32_t spake2pIterationCount;
-@property NSData * spake2pSalt;
+@property NSData * spake2pSaltBase64;
-@property NSData * spake2pVerifier;
+@property NSData * spake2pVerifierBase64;
@property DeviceAttestationCredentialsHolder * deviceAttestationCredentials;
diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.h b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.h
index 8c8f8c83e71849..8f1d7d17bf95ac 100644
--- a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.h
+++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.h
@@ -54,7 +54,7 @@
@param clientQueue Queue to dispatch the call to the discoveredCommissionerHandler on
- @param discoveredCommissionerHandler Handler to call after a discovered commissioner has been retrieved
+ @param discoveredCommissionerHandler Handler called synchronously after a discovered commissioner has been retrieved
*/
- (void)getDiscoveredCommissioner:(int)index
clientQueue:(dispatch_queue_t _Nonnull)clientQueue
@@ -184,6 +184,16 @@
*/
- (void)disconnect:(dispatch_queue_t _Nonnull)clientQueue requestSentHandler:(nullable void (^)())requestSentHandler;
+/**
+ @brief Start the Matter server and reconnect to a previously connected Video Player (if any)
+ */
+- (void)startMatterServer;
+
+/**
+ @brief Stop the Matter server
+ */
+- (void)stopMatterServer;
+
/*!
@brief Send a ContentLauncher:LaunchURL request to a TV
diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.mm b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.mm
index d2620f6ca69e01..cd860847c4b300 100644
--- a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.mm
+++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.mm
@@ -38,10 +38,14 @@ @interface CastingServerBridge ()
@property OnboardingPayload * _Nonnull onboardingPayload;
-@property chip::DeviceLayer::CommissionableDataProviderImpl * commissionableDataProvider;
+@property CommissionableDataProviderImpl * commissionableDataProvider;
@property chip::Credentials::DeviceAttestationCredentialsProvider * deviceAttestationCredentialsProvider;
+@property chip::CommonCaseDeviceServerInitParams * serverInitParams;
+
+@property TargetVideoPlayerInfo * previouslyConnectedVideoPlayer;
+
// queue used to serialize all work performed by the CastingServerBridge
@property (atomic) dispatch_queue_t chipWorkQueue;
@@ -111,10 +115,15 @@ - (void)initApp:(AppParameters * _Nullable)appParameters
ChipLogProgress(AppServer, "CastingServerBridge().initApp() called");
CHIP_ERROR err = CHIP_NO_ERROR;
- _commissionableDataProvider = new chip::DeviceLayer::CommissionableDataProviderImpl();
+ _commissionableDataProvider = new CommissionableDataProviderImpl();
_deviceAttestationCredentialsProvider = chip::Credentials::Examples::GetExampleDACProvider();
+
_appParameters = appParameters;
AppParams cppAppParams;
+ uint32_t setupPasscode = CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE;
+ uint16_t setupDiscriminator = CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR;
+ uint32_t spake2pIterationCount;
+ chip::ByteSpan spake2pSaltSpan, spake2pVerifierSpan;
if (_appParameters != nil) {
err = [ConversionUtils convertToCppAppParamsInfoFrom:_appParameters outAppParams:cppAppParams];
if (err != CHIP_NO_ERROR) {
@@ -123,22 +132,31 @@ - (void)initApp:(AppParameters * _Nullable)appParameters
}
// set fields in commissionableDataProvider
- _commissionableDataProvider->SetSpake2pIterationCount(_appParameters.spake2pIterationCount);
- if (_appParameters.spake2pSalt != nil) {
- chip::ByteSpan spake2pSaltSpan
- = chip::ByteSpan(static_cast(_appParameters.spake2pSalt.bytes), _appParameters.spake2pSalt.length);
- _commissionableDataProvider->SetSpake2pSalt(spake2pSaltSpan);
+ if (_appParameters.onboardingPayload != nil) {
+ setupPasscode = _appParameters.onboardingPayload.setupPasscode > 0 ? _appParameters.onboardingPayload.setupPasscode
+ : CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE;
+ setupDiscriminator = _appParameters.onboardingPayload.setupDiscriminator > 0
+ ? _appParameters.onboardingPayload.setupDiscriminator
+ : CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR;
+ }
+ spake2pIterationCount = _appParameters.spake2pIterationCount;
+ if (_appParameters.spake2pSaltBase64 != nil) {
+ spake2pSaltSpan = chip::ByteSpan(
+ static_cast(_appParameters.spake2pSaltBase64.bytes), _appParameters.spake2pSaltBase64.length);
}
- if (_appParameters.spake2pVerifier != nil) {
- chip::ByteSpan spake2pVerifierSpan = chip::ByteSpan(
- static_cast(_appParameters.spake2pVerifier.bytes), _appParameters.spake2pVerifier.length);
- _commissionableDataProvider->SetSpake2pSalt(spake2pVerifierSpan);
+ if (_appParameters.spake2pVerifierBase64 != nil) {
+ chip::ByteSpan spake2pVerifierSpan
+ = chip::ByteSpan(static_cast(_appParameters.spake2pVerifierBase64.bytes),
+ _appParameters.spake2pVerifierBase64.length);
}
- if (_appParameters.onboardingPayload != nil) {
- _commissionableDataProvider->SetSetupPasscode(_appParameters.onboardingPayload.setupPasscode);
- _commissionableDataProvider->SetSetupDiscriminator(_appParameters.onboardingPayload.setupDiscriminator);
+ err = _commissionableDataProvider->Initialize(_appParameters.spake2pVerifierBase64 != nil ? &spake2pVerifierSpan : nil,
+ _appParameters.spake2pSaltBase64 != nil ? &spake2pSaltSpan : nil, spake2pIterationCount, setupPasscode,
+ setupDiscriminator);
+ if (err != CHIP_NO_ERROR) {
+ ChipLogError(AppServer, "Failed to initialize CommissionableDataProvider: %s", ErrorStr(err));
+ return;
}
if (_appParameters.deviceAttestationCredentials != nil) {
@@ -182,8 +200,6 @@ - (void)initApp:(AppParameters * _Nullable)appParameters
}
chip::DeviceLayer::SetCommissionableDataProvider(_commissionableDataProvider);
- uint32_t setupPasscode = 0;
- uint16_t setupDiscriminator = 0;
_commissionableDataProvider->GetSetupPasscode(setupPasscode);
_commissionableDataProvider->GetSetupDiscriminator(setupDiscriminator);
_onboardingPayload = [[OnboardingPayload alloc] initWithSetupPasscode:setupPasscode setupDiscriminator:setupDiscriminator];
@@ -199,14 +215,14 @@ - (void)initApp:(AppParameters * _Nullable)appParameters
}
// init app Server
- static chip::CommonCaseDeviceServerInitParams initParams;
- err = initParams.InitializeStaticResourcesBeforeServerInit();
+ _serverInitParams = new chip::CommonCaseDeviceServerInitParams();
+ err = _serverInitParams->InitializeStaticResourcesBeforeServerInit();
if (err != CHIP_NO_ERROR) {
ChipLogError(AppServer, "InitializeStaticResourcesBeforeServerInit failed: %s", ErrorStr(err));
return;
}
- err = chip::Server::GetInstance().Init(initParams);
+ err = chip::Server::GetInstance().Init(*_serverInitParams);
if (err != CHIP_NO_ERROR) {
ChipLogError(AppServer, "chip::Server init failed: %s", ErrorStr(err));
return;
@@ -261,7 +277,7 @@ - (void)getDiscoveredCommissioner:(int)index
{
ChipLogProgress(AppServer, "CastingServerBridge().getDiscoveredCommissioner() called");
- dispatch_async(_chipWorkQueue, ^{
+ dispatch_sync(_chipWorkQueue, ^{
chip::Optional associatedConnectableVideoPlayer;
DiscoveredNodeData * commissioner = nil;
const chip::Dnssd::DiscoveredNodeData * cppDiscoveredNodeData
@@ -275,7 +291,7 @@ - (void)getDiscoveredCommissioner:(int)index
}
}
- dispatch_async(clientQueue, ^{
+ dispatch_sync(clientQueue, ^{
discoveredCommissionerHandler(commissioner);
});
});
@@ -407,10 +423,9 @@ - (void)getActiveTargetVideoPlayers:(dispatch_queue_t _Nonnull)clientQueue
ChipLogProgress(AppServer, "CastingServerBridge().getActiveTargetVideoPlayers() called");
dispatch_async(_chipWorkQueue, ^{
- NSMutableArray * videoPlayers = nil;
+ NSMutableArray * videoPlayers = [NSMutableArray new];
TargetVideoPlayerInfo * cppTargetVideoPlayerInfo = CastingServer::GetInstance()->GetActiveTargetVideoPlayer();
- if (cppTargetVideoPlayerInfo != nullptr) {
- videoPlayers = [NSMutableArray new];
+ if (cppTargetVideoPlayerInfo != nullptr && cppTargetVideoPlayerInfo->IsInitialized()) {
videoPlayers[0] = [ConversionUtils convertToObjCVideoPlayerFrom:cppTargetVideoPlayerInfo];
}
@@ -495,6 +510,79 @@ - (void)shutdownAllSubscriptions:(dispatch_queue_t _Nonnull)clientQueue requestS
});
}
+- (void)startMatterServer
+{
+ ChipLogProgress(AppServer, "CastingServerBridge().startMatterServer() called");
+
+ dispatch_sync(_chipWorkQueue, ^{
+ // Initialize the Matter server
+ CHIP_ERROR err = chip::Server::GetInstance().Init(*self->_serverInitParams);
+ if (err != CHIP_NO_ERROR) {
+ ChipLogError(AppServer, "chip::Server init failed: %s", ErrorStr(err));
+ return;
+ }
+
+ // Now reconnect to the VideoPlayer the casting app was previously connected to (if any)
+ if (self->_previouslyConnectedVideoPlayer != nil) {
+ ChipLogProgress(
+ AppServer, "CastingServerBridge().startMatterServer() reconnecting to previously connected VideoPlayer...");
+ err = CastingServer::GetInstance()->VerifyOrEstablishConnection(
+ *(self->_previouslyConnectedVideoPlayer), [](TargetVideoPlayerInfo * cppTargetVideoPlayerInfo) {},
+ [](CHIP_ERROR err) {}, [](TargetEndpointInfo * cppTargetEndpointInfo) {});
+ }
+ });
+}
+
+- (void)stopMatterServer
+{
+ ChipLogProgress(AppServer, "CastingServerBridge().stopMatterServer() called");
+
+ dispatch_sync(_chipWorkQueue, ^{
+ // capture pointer to previouslyConnectedVideoPlayer, to be deleted
+ TargetVideoPlayerInfo * videoPlayerForDeletion
+ = self->_previouslyConnectedVideoPlayer == nil ? nil : self->_previouslyConnectedVideoPlayer;
+
+ // On shutting down the Matter server, the casting app will be automatically disconnected from any Video Players it was
+ // connected to. Save the VideoPlayer that the casting app was targetting and connected to, so we can reconnect to it on
+ // re-starting the Matter server.
+ TargetVideoPlayerInfo * currentTargetVideoPlayerInfo = CastingServer::GetInstance()->GetActiveTargetVideoPlayer();
+ if (currentTargetVideoPlayerInfo != nil && currentTargetVideoPlayerInfo->IsInitialized()
+ && currentTargetVideoPlayerInfo->GetOperationalDeviceProxy() != nil) {
+ self->_previouslyConnectedVideoPlayer = new TargetVideoPlayerInfo();
+ self->_previouslyConnectedVideoPlayer->Initialize(currentTargetVideoPlayerInfo->GetNodeId(),
+ currentTargetVideoPlayerInfo->GetFabricIndex(), nullptr, nullptr, currentTargetVideoPlayerInfo->GetVendorId(),
+ currentTargetVideoPlayerInfo->GetProductId(), currentTargetVideoPlayerInfo->GetDeviceType(),
+ currentTargetVideoPlayerInfo->GetDeviceName(), currentTargetVideoPlayerInfo->GetNumIPs(),
+ const_cast(currentTargetVideoPlayerInfo->GetIpAddresses()));
+
+ TargetEndpointInfo * prevEndpoints = self->_previouslyConnectedVideoPlayer->GetEndpoints();
+ if (prevEndpoints != nullptr) {
+ for (size_t i = 0; i < kMaxNumberOfEndpoints; i++) {
+ prevEndpoints[i].Reset();
+ }
+ }
+ TargetEndpointInfo * currentEndpoints = currentTargetVideoPlayerInfo->GetEndpoints();
+ for (size_t i = 0; i < kMaxNumberOfEndpoints && currentEndpoints[i].IsInitialized(); i++) {
+ prevEndpoints[i].Initialize(currentEndpoints[i].GetEndpointId());
+ chip::ClusterId * currentClusters = currentEndpoints[i].GetClusters();
+ for (size_t j = 0; j < kMaxNumberOfClustersPerEndpoint && currentClusters[j] != chip::kInvalidClusterId; j++) {
+ prevEndpoints[i].AddCluster(currentClusters[j]);
+ }
+ }
+ } else {
+ self->_previouslyConnectedVideoPlayer = nil;
+ }
+
+ // Now shutdown the Matter server
+ chip::Server::GetInstance().Shutdown();
+
+ // Delete the old previouslyConnectedVideoPlayer, if non-nil
+ if (videoPlayerForDeletion != nil) {
+ delete videoPlayerForDeletion;
+ }
+ });
+}
+
- (void)disconnect:(dispatch_queue_t _Nonnull)clientQueue requestSentHandler:(nullable void (^)())requestSentHandler
{
ChipLogProgress(AppServer, "CastingServerBridge().disconnect() called");
diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CommissionableDataProviderImpl.hpp b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CommissionableDataProviderImpl.hpp
index b05ce4aa89a4ef..979c7c72f5e057 100644
--- a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CommissionableDataProviderImpl.hpp
+++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CommissionableDataProviderImpl.hpp
@@ -1,6 +1,7 @@
-/**
+/*
*
- * Copyright (c) 2020-2022 Project CHIP Authors
+ * Copyright (c) 2022 Project CHIP Authors
+ * All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,166 +16,47 @@
* limitations under the License.
*/
-#ifndef CommissionableDataProviderImpl_h
-#define CommissionableDataProviderImpl_h
-
#pragma once
#include
-#include
+#include
#include
+#include
+#include
-namespace chip {
-namespace DeviceLayer {
-
-class CommissionableDataProviderImpl : public CommissionableDataProvider
+class CommissionableDataProviderImpl : public chip::DeviceLayer::CommissionableDataProvider
{
public:
- CommissionableDataProviderImpl() {}
-
- CHIP_ERROR GetSetupPasscode(uint32_t & setupPasscode) override
- {
- if (mSetupPasscode > 0)
- {
- setupPasscode = mSetupPasscode;
- }
- else
- {
- setupPasscode = kDefaultTestPasscode;
- }
-
- return CHIP_NO_ERROR;
- }
-
- CHIP_ERROR SetSetupPasscode(uint32_t setupPasscode) override
- {
- mSetupPasscode = setupPasscode;
- return CHIP_NO_ERROR;
- }
-
- CHIP_ERROR GetSetupDiscriminator(uint16_t & setupDiscriminator) override
- {
- if (mSetupDiscriminator > 0)
- {
- setupDiscriminator = mSetupDiscriminator;
- }
- else
- {
- setupDiscriminator = kDefaultTestDiscriminator;
- }
-
- return CHIP_NO_ERROR;
- }
-
+ CHIP_ERROR Initialize(chip::ByteSpan * spake2pVerifierBase64, chip::ByteSpan * spake2pSaltBase64,
+ uint32_t spake2pIterationCount, uint32_t setupPasscode, uint16_t discriminator);
+ CHIP_ERROR GetSetupDiscriminator(uint16_t & setupDiscriminator) override;
CHIP_ERROR SetSetupDiscriminator(uint16_t setupDiscriminator) override
{
- mSetupDiscriminator = setupDiscriminator;
- return CHIP_NO_ERROR;
- }
-
- CHIP_ERROR GetSpake2pIterationCount(uint32_t & iterationCount) override
- {
- if (mSpake2pIterationCount > 0)
- {
- iterationCount = mSpake2pIterationCount;
- }
- else
- {
- iterationCount = kDefaultTestVerifierIterationCount;
- }
-
- return CHIP_NO_ERROR;
- }
-
- CHIP_ERROR SetSpake2pIterationCount(uint32_t iterationCount)
- {
- mSpake2pIterationCount = iterationCount;
- return CHIP_NO_ERROR;
+ // We don't support overriding the discriminator post-init (it is deprecated!)
+ return CHIP_ERROR_NOT_IMPLEMENTED;
}
-
- CHIP_ERROR GetSpake2pSalt(MutableByteSpan & saltBuf) override
- {
- size_t saltLen = mSpake2pSalt.data() == nullptr ? sizeof(kDefaultTestVerifierSalt) : mSpake2pSalt.size();
- if (saltBuf.size() < saltLen)
- {
- return CHIP_ERROR_BUFFER_TOO_SMALL;
- }
-
- memcpy(saltBuf.data(), mSpake2pSalt.data() == nullptr ? kDefaultTestVerifierSalt : mSpake2pSalt.data(), saltLen);
- saltBuf.reduce_size(saltLen);
- return CHIP_NO_ERROR;
- }
-
- CHIP_ERROR SetSpake2pSalt(ByteSpan saltBuf)
- {
- size_t saltLen = saltBuf.size();
- if (chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length < saltLen)
- {
- return CHIP_ERROR_BUFFER_TOO_SMALL;
- }
-
- mSpake2pSalt = MutableByteSpan(mSpake2pSaltBuf, chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length);
-
- memcpy(mSpake2pSalt.data(), saltBuf.data(), saltLen);
- mSpake2pSalt.reduce_size(saltLen);
- return CHIP_NO_ERROR;
- }
-
- CHIP_ERROR GetSpake2pVerifier(MutableByteSpan & verifierBuf, size_t & outVerifierLen) override
- {
- outVerifierLen = mSpake2pVerifier.data() == nullptr ? sizeof(kDefaultTestVerifier) : mSpake2pVerifier.size();
- if (verifierBuf.size() < outVerifierLen)
- {
- return CHIP_ERROR_BUFFER_TOO_SMALL;
- }
- memcpy(verifierBuf.data(), mSpake2pVerifier.data() == nullptr ? kDefaultTestVerifier : mSpake2pVerifier.data(),
- outVerifierLen);
- verifierBuf.reduce_size(outVerifierLen);
- return CHIP_NO_ERROR;
- }
-
- CHIP_ERROR SetSpake2pVerifier(MutableByteSpan verifierBuf)
+ CHIP_ERROR GetSpake2pIterationCount(uint32_t & iterationCount) override;
+ CHIP_ERROR GetSpake2pSalt(chip::MutableByteSpan & saltBuf) override;
+ CHIP_ERROR GetSpake2pVerifier(chip::MutableByteSpan & verifierBuf, size_t & outVerifierLen) override;
+ CHIP_ERROR GetSetupPasscode(uint32_t & setupPasscode) override;
+ CHIP_ERROR SetSetupPasscode(uint32_t setupPasscode) override
{
- size_t inVerifierBufLen = verifierBuf.size();
- if (chip::Crypto::kSpake2p_VerifierSerialized_Length < inVerifierBufLen)
- {
- return CHIP_ERROR_BUFFER_TOO_SMALL;
- }
-
- mSpake2pVerifier = MutableByteSpan(mSpake2pSaltBuf, chip::Crypto::kSpake2p_VerifierSerialized_Length);
-
- memcpy(mSpake2pVerifier.data(), verifierBuf.data(), inVerifierBufLen);
- mSpake2pVerifier.reduce_size(inVerifierBufLen);
- return CHIP_NO_ERROR;
+ // We don't support overriding the passcode post-init (it is deprecated!)
+ return CHIP_ERROR_NOT_IMPLEMENTED;
}
private:
- static constexpr uint32_t kDefaultTestPasscode = 20202021;
- static constexpr uint16_t kDefaultTestDiscriminator = 3840;
- static constexpr uint32_t kDefaultTestVerifierIterationCount = 1000;
- static constexpr uint8_t kDefaultTestVerifierSalt[16] = {
- 0x53, 0x50, 0x41, 0x4b, 0x45, 0x32, 0x50, 0x20, 0x4b, 0x65, 0x79, 0x20, 0x53, 0x61, 0x6c, 0x74,
- };
- static constexpr uint8_t kDefaultTestVerifier[97] = {
- 0xb9, 0x61, 0x70, 0xaa, 0xe8, 0x03, 0x34, 0x68, 0x84, 0x72, 0x4f, 0xe9, 0xa3, 0xb2, 0x87, 0xc3, 0x03, 0x30, 0xc2, 0xa6,
- 0x60, 0x37, 0x5d, 0x17, 0xbb, 0x20, 0x5a, 0x8c, 0xf1, 0xae, 0xcb, 0x35, 0x04, 0x57, 0xf8, 0xab, 0x79, 0xee, 0x25, 0x3a,
- 0xb6, 0xa8, 0xe4, 0x6b, 0xb0, 0x9e, 0x54, 0x3a, 0xe4, 0x22, 0x73, 0x6d, 0xe5, 0x01, 0xe3, 0xdb, 0x37, 0xd4, 0x41, 0xfe,
- 0x34, 0x49, 0x20, 0xd0, 0x95, 0x48, 0xe4, 0xc1, 0x82, 0x40, 0x63, 0x0c, 0x4f, 0xf4, 0x91, 0x3c, 0x53, 0x51, 0x38, 0x39,
- 0xb7, 0xc0, 0x7f, 0xcc, 0x06, 0x27, 0xa1, 0xb8, 0x57, 0x3a, 0x14, 0x9f, 0xcd, 0x1f, 0xa4, 0x66, 0xcf,
- };
-
- uint32_t mSetupPasscode = 0;
- uint16_t mSetupDiscriminator = 0;
- uint32_t mSpake2pIterationCount = 0;
-
- uint8_t mSpake2pSaltBuf[chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length];
- MutableByteSpan mSpake2pSalt;
-
- MutableByteSpan mSpake2pVerifier;
- uint8_t mSpake2pVerifierBuf[chip::Crypto::kSpake2p_VerifierSerialized_Length];
+ friend CommissionableDataProviderImpl & CommissionableDataProviderMgrImpl();
+ static CommissionableDataProviderImpl sInstance;
+ bool mFirstUpdated = false;
+ std::vector mSerializedPaseVerifier;
+ std::vector mPaseSalt;
+ uint32_t mPaseIterationCount = 0;
+ chip::Optional mSetupPasscode;
+ uint16_t mDiscriminator = 0;
};
-} // namespace DeviceLayer
-} // namespace chip
-
-#endif /* CommissionableDataProviderImpl_h */
+inline CommissionableDataProviderImpl & CommissionableDataProviderMgrImpl()
+{
+ return CommissionableDataProviderImpl::sInstance;
+}
diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CommissionableDataProviderImpl.mm b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CommissionableDataProviderImpl.mm
new file mode 100644
index 00000000000000..c1e7c6ef9b6120
--- /dev/null
+++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CommissionableDataProviderImpl.mm
@@ -0,0 +1,205 @@
+/*
+ *
+ * Copyright (c) 2022 Project CHIP Authors
+ * All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "CommissionableDataProviderImpl.hpp"
+
+#include
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+using namespace chip;
+using namespace chip::Crypto;
+
+namespace {
+
+CHIP_ERROR GeneratePaseSalt(std::vector & spake2pSaltVector)
+{
+ constexpr size_t kSaltLen = kSpake2p_Max_PBKDF_Salt_Length;
+ spake2pSaltVector.resize(kSaltLen);
+ return DRBG_get_bytes(spake2pSaltVector.data(), spake2pSaltVector.size());
+}
+
+} // namespace
+
+CommissionableDataProviderImpl CommissionableDataProviderImpl::sInstance;
+
+CHIP_ERROR CommissionableDataProviderImpl::Initialize(chip::ByteSpan * spake2pVerifierBase64, chip::ByteSpan * spake2pSaltBase64,
+ uint32_t spake2pIterationCount, uint32_t setupPasscode, uint16_t discriminator)
+{
+ VerifyOrReturnLogError(discriminator <= chip::kMaxDiscriminatorValue, CHIP_ERROR_INVALID_ARGUMENT);
+
+ if (spake2pIterationCount == 0) {
+ spake2pIterationCount = CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_ITERATION_COUNT;
+ }
+ VerifyOrReturnLogError(
+ static_cast(spake2pIterationCount) >= kSpake2p_Min_PBKDF_Iterations, CHIP_ERROR_INVALID_ARGUMENT);
+ VerifyOrReturnLogError(
+ static_cast(spake2pIterationCount) <= kSpake2p_Max_PBKDF_Iterations, CHIP_ERROR_INVALID_ARGUMENT);
+
+ const bool havePaseVerifier = (spake2pVerifierBase64 != nullptr);
+ const bool havePaseSalt = (spake2pSaltBase64 != nullptr);
+ VerifyOrReturnLogError(!havePaseVerifier || (havePaseVerifier && havePaseSalt), CHIP_ERROR_INVALID_ARGUMENT);
+
+ CHIP_ERROR err;
+ // read verifier from paramter if provided
+ Spake2pVerifier providedVerifier;
+ std::vector serializedSpake2pVerifier(kSpake2p_VerifierSerialized_Length);
+ if (havePaseVerifier) {
+ size_t maxBase64Size = BASE64_ENCODED_LEN(chip::Crypto::kSpake2p_VerifierSerialized_Length);
+ VerifyOrReturnLogError(static_cast(spake2pVerifierBase64->size()) <= maxBase64Size, CHIP_ERROR_INVALID_ARGUMENT);
+
+ size_t decodedLen = chip::Base64Decode32(reinterpret_cast(spake2pVerifierBase64->data()),
+ static_cast(spake2pVerifierBase64->size()), reinterpret_cast(serializedSpake2pVerifier.data()));
+ VerifyOrReturnLogError(decodedLen == chip::Crypto::kSpake2p_VerifierSerialized_Length, CHIP_ERROR_INVALID_ARGUMENT);
+
+ chip::MutableByteSpan verifierSpan { serializedSpake2pVerifier.data(), decodedLen };
+ err = providedVerifier.Deserialize(verifierSpan);
+ VerifyOrReturnLogError(err == CHIP_NO_ERROR, err);
+
+ ChipLogProgress(Support, "Got externally provided verifier, using it.");
+ }
+
+ // read salt from paramter if provided or generate one
+ std::vector spake2pSalt(chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length);
+ if (!havePaseSalt) {
+ ChipLogProgress(Support, "CommissionableDataProviderImpl didn't get a PASE salt, generating one.");
+ err = GeneratePaseSalt(spake2pSalt);
+ VerifyOrReturnLogError(err == CHIP_NO_ERROR, err);
+ } else {
+ size_t maxBase64Size = BASE64_ENCODED_LEN(chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length);
+ VerifyOrReturnLogError(static_cast(spake2pSaltBase64->size()) <= maxBase64Size, CHIP_ERROR_INVALID_ARGUMENT);
+
+ size_t decodedLen = chip::Base64Decode32(reinterpret_cast(spake2pSaltBase64->data()),
+ static_cast(spake2pSaltBase64->size()), reinterpret_cast(spake2pSalt.data()));
+ VerifyOrReturnLogError(decodedLen >= chip::Crypto::kSpake2p_Min_PBKDF_Salt_Length
+ && decodedLen <= chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length,
+ CHIP_ERROR_INVALID_ARGUMENT);
+ spake2pSalt.resize(decodedLen);
+ }
+
+ // generate verifier from passcode if provided
+ const bool havePasscode = (setupPasscode > kMinSetupPasscode && setupPasscode < kMaxSetupPasscode);
+ Spake2pVerifier passcodeVerifier;
+ std::vector serializedPasscodeVerifier(kSpake2p_VerifierSerialized_Length);
+ chip::MutableByteSpan saltSpan { spake2pSalt.data(), spake2pSalt.size() };
+ if (havePasscode) {
+ uint32_t u32SetupPasscode = static_cast(setupPasscode);
+ err = passcodeVerifier.Generate(spake2pIterationCount, saltSpan, u32SetupPasscode);
+ VerifyOrReturnLogError(err == CHIP_NO_ERROR, err);
+
+ chip::MutableByteSpan verifierSpan { serializedPasscodeVerifier.data(), serializedPasscodeVerifier.size() };
+ err = passcodeVerifier.Serialize(verifierSpan);
+ VerifyOrReturnLogError(err == CHIP_NO_ERROR, err);
+ }
+
+ // Make sure we actually have a verifier
+ VerifyOrReturnLogError(havePasscode || havePaseVerifier, CHIP_ERROR_INVALID_ARGUMENT);
+
+ // If both passcode and external verifier were provided, validate they match, otherwise
+ // it's ambiguous.
+ if (havePasscode && havePaseVerifier) {
+ VerifyOrReturnLogError(serializedPasscodeVerifier == serializedSpake2pVerifier, CHIP_ERROR_INVALID_ARGUMENT);
+ ChipLogProgress(Support, "Validated externally provided passcode matches the one generated from provided passcode.");
+ }
+
+ // External PASE verifier takes precedence when present (even though it is identical to passcode-based
+ // one when the latter is present).
+ if (havePaseVerifier) {
+ mSerializedPaseVerifier = std::move(serializedSpake2pVerifier);
+ } else {
+ mSerializedPaseVerifier = std::move(serializedPasscodeVerifier);
+ }
+ mDiscriminator = discriminator;
+ mPaseSalt = std::move(spake2pSalt);
+ mPaseIterationCount = spake2pIterationCount;
+ if (havePasscode) {
+ mSetupPasscode.SetValue(setupPasscode);
+ }
+
+ // Set to global CommissionableDataProvider once success first time
+ if (!mFirstUpdated) {
+ DeviceLayer::SetCommissionableDataProvider(this);
+ }
+ mFirstUpdated = true;
+
+ return CHIP_NO_ERROR;
+}
+
+CHIP_ERROR CommissionableDataProviderImpl::GetSetupDiscriminator(uint16_t & setupDiscriminator)
+{
+ VerifyOrReturnError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE);
+ setupDiscriminator = mDiscriminator;
+ return CHIP_NO_ERROR;
+}
+
+CHIP_ERROR CommissionableDataProviderImpl::GetSpake2pIterationCount(uint32_t & iterationCount)
+{
+ ChipLogProgress(AppServer, "CommissionableDataProviderImpl::GetSpake2pIterationCount called");
+ VerifyOrReturnLogError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE);
+ iterationCount = mPaseIterationCount;
+ return CHIP_NO_ERROR;
+}
+
+CHIP_ERROR CommissionableDataProviderImpl::GetSpake2pSalt(chip::MutableByteSpan & saltBuf)
+{
+ ChipLogProgress(AppServer, "CommissionableDataProviderImpl::GetSpake2pSalt called");
+ VerifyOrReturnError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE);
+
+ VerifyOrReturnError(saltBuf.size() >= kSpake2p_Max_PBKDF_Salt_Length, CHIP_ERROR_BUFFER_TOO_SMALL);
+ memcpy(saltBuf.data(), mPaseSalt.data(), mPaseSalt.size());
+ saltBuf.reduce_size(mPaseSalt.size());
+
+ return CHIP_NO_ERROR;
+}
+
+CHIP_ERROR CommissionableDataProviderImpl::GetSpake2pVerifier(chip::MutableByteSpan & verifierBuf, size_t & outVerifierLen)
+{
+ ChipLogProgress(AppServer, "CommissionableDataProviderImpl::GetSpake2pVerifier called");
+ VerifyOrReturnError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE);
+
+ // By now, serialized verifier from Init should be correct size
+ VerifyOrReturnError(mSerializedPaseVerifier.size() == kSpake2p_VerifierSerialized_Length, CHIP_ERROR_INTERNAL);
+
+ outVerifierLen = mSerializedPaseVerifier.size();
+ VerifyOrReturnError(verifierBuf.size() >= outVerifierLen, CHIP_ERROR_BUFFER_TOO_SMALL);
+ memcpy(verifierBuf.data(), mSerializedPaseVerifier.data(), mSerializedPaseVerifier.size());
+ verifierBuf.reduce_size(mSerializedPaseVerifier.size());
+
+ return CHIP_NO_ERROR;
+}
+
+CHIP_ERROR CommissionableDataProviderImpl::GetSetupPasscode(uint32_t & setupPasscode)
+{
+ ChipLogProgress(AppServer, "CommissionableDataProviderImpl::GetSetupPasscode called");
+ VerifyOrReturnError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE);
+
+ // Pretend not implemented if we don't have a passcode value externally set
+ if (!mSetupPasscode.HasValue()) {
+ return CHIP_ERROR_NOT_IMPLEMENTED;
+ }
+
+ setupPasscode = mSetupPasscode.Value();
+ ChipLogProgress(AppServer, "CommissionableDataProviderImpl::GetSetupPasscode returning value %d", setupPasscode);
+ return CHIP_NO_ERROR;
+}
diff --git a/examples/tv-casting-app/darwin/TvCasting/TvCasting/TvCastingApp.swift b/examples/tv-casting-app/darwin/TvCasting/TvCasting/TvCastingApp.swift
index daef2e730d5e3a..322f1a1108d15b 100644
--- a/examples/tv-casting-app/darwin/TvCasting/TvCasting/TvCastingApp.swift
+++ b/examples/tv-casting-app/darwin/TvCasting/TvCasting/TvCastingApp.swift
@@ -22,6 +22,8 @@ import os.log
struct TvCastingApp: App {
let Log = Logger(subsystem: "com.matter.casting",
category: "TvCastingApp")
+ @State
+ var firstAppActivation: Bool = true
var body: some Scene {
WindowGroup {
@@ -49,6 +51,36 @@ struct TvCastingApp: App {
})
}
})
+ .onReceive(NotificationCenter.default.publisher(for: UIApplication.willResignActiveNotification)) { _ in
+ self.Log.info("TvCastingApp: UIApplication.willResignActiveNotification")
+ if let castingServerBridge = CastingServerBridge.getSharedInstance()
+ {
+ castingServerBridge.stopMatterServer()
+ }
+ }
+ .onReceive(NotificationCenter.default.publisher(for: UIApplication.didBecomeActiveNotification)) { _ in
+ self.Log.info("TvCastingApp: UIApplication.didBecomeActiveNotification")
+ if(!firstAppActivation)
+ {
+ if let castingServerBridge = CastingServerBridge.getSharedInstance()
+ {
+ castingServerBridge.startMatterServer()
+ }
+ }
+ firstAppActivation = false
+ }
+ .onReceive(NotificationCenter.default.publisher(for: UIApplication.didEnterBackgroundNotification)) { _ in
+ self.Log.info("TvCastingApp: UIApplication.didEnterBackgroundNotification")
+ }
+ .onReceive(NotificationCenter.default.publisher(for: UIApplication.didFinishLaunchingNotification)) { _ in
+ self.Log.info("TvCastingApp: UIApplication.didFinishLaunchingNotification")
+ }
+ .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in
+ self.Log.info("TvCastingApp: UIApplication.willEnterForegroundNotification")
+ }
+ .onReceive(NotificationCenter.default.publisher(for: UIApplication.willTerminateNotification)) { _ in
+ self.Log.info("TvCastingApp: UIApplication.willTerminateNotification")
+ }
}
}
}
diff --git a/examples/tv-casting-app/darwin/args.gni b/examples/tv-casting-app/darwin/args.gni
index 1171f4d8398a89..64353389c5285f 100644
--- a/examples/tv-casting-app/darwin/args.gni
+++ b/examples/tv-casting-app/darwin/args.gni
@@ -29,3 +29,5 @@ chip_build_libshell = true
chip_enable_additional_data_advertising = true
chip_enable_rotating_device_id = true
+
+chip_config_network_layer_ble = false
diff --git a/examples/tv-casting-app/tv-casting-common/BUILD.gn b/examples/tv-casting-app/tv-casting-common/BUILD.gn
index 37572da1d394e4..4d797a9c5b02cf 100644
--- a/examples/tv-casting-app/tv-casting-common/BUILD.gn
+++ b/examples/tv-casting-app/tv-casting-common/BUILD.gn
@@ -43,6 +43,7 @@ chip_data_model("tv-casting-common") {
"${chip_root}/examples/chip-tool/commands/common/Commands.cpp",
"${chip_root}/examples/chip-tool/commands/common/Commands.h",
"${chip_root}/examples/chip-tool/commands/common/CredentialIssuerCommands.h",
+ "${chip_root}/examples/chip-tool/commands/common/HexConversion.h",
"${chip_root}/src/controller/ExamplePersistentStorage.cpp",
"${chip_root}/src/controller/ExamplePersistentStorage.h",
"${chip_root}/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp",
diff --git a/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h b/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h
index b8daebc0a86f5e..e11b96824bcd5a 100644
--- a/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h
+++ b/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h
@@ -47,6 +47,10 @@
#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_NAME 1
+#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
+
+#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
+
#define CHIP_DEVICE_CONFIG_DEVICE_NAME "Test TV casting app"
#define CHIP_DEVICE_CONFIG_ENABLE_PAIRING_AUTOSTART 0
diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
index 90e17e0de986d1..ea6c92a294542b 100644
--- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
+++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
@@ -51,12 +51,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -64,22 +64,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -90,7 +90,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -519,7 +519,7 @@ server cluster BinaryInputBasic = 15 {
client cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -533,7 +533,7 @@ client cluster Descriptor = 29 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -560,19 +560,13 @@ server cluster Binding = 30 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -580,9 +574,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -594,7 +594,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -603,7 +603,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -611,12 +611,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -695,8 +695,8 @@ server cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter
index 8f2177004bedff..578b658092fabc 100644
--- a/examples/window-app/common/window-app.matter
+++ b/examples/window-app/common/window-app.matter
@@ -63,12 +63,12 @@ server cluster Groups = 4 {
readonly attribute int16u clusterRevision = 65533;
request struct AddGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
request struct ViewGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct GetGroupMembershipRequest {
@@ -76,22 +76,22 @@ server cluster Groups = 4 {
}
request struct RemoveGroupRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
}
request struct AddGroupIfIdentifyingRequest {
- group_id groupId = 0;
+ group_id groupID = 0;
CHAR_STRING groupName = 1;
}
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
CHAR_STRING groupName = 2;
}
@@ -102,7 +102,7 @@ server cluster Groups = 4 {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
- group_id groupId = 1;
+ group_id groupID = 1;
}
fabric command access(invoke: manage) AddGroup(AddGroupRequest): AddGroupResponse = 0;
@@ -226,7 +226,7 @@ server cluster Scenes = 5 {
server cluster Descriptor = 29 {
struct DeviceTypeStruct {
- devtype_id type = 0;
+ devtype_id deviceType = 0;
int16u revision = 1;
}
@@ -242,19 +242,13 @@ server cluster Descriptor = 29 {
}
server cluster AccessControl = 31 {
- enum AuthMode : ENUM8 {
+ enum AccessControlEntryAuthModeEnum : ENUM8 {
kPase = 1;
kCase = 2;
kGroup = 3;
}
- enum ChangeTypeEnum : ENUM8 {
- kChanged = 0;
- kAdded = 1;
- kRemoved = 2;
- }
-
- enum Privilege : ENUM8 {
+ enum AccessControlEntryPrivilegeEnum : ENUM8 {
kView = 1;
kProxyView = 2;
kOperate = 3;
@@ -262,9 +256,15 @@ server cluster AccessControl = 31 {
kAdminister = 5;
}
- fabric_scoped struct AccessControlEntry {
- fabric_sensitive Privilege privilege = 1;
- fabric_sensitive AuthMode authMode = 2;
+ enum ChangeTypeEnum : ENUM8 {
+ kChanged = 0;
+ kAdded = 1;
+ kRemoved = 2;
+ }
+
+ fabric_scoped struct AccessControlEntryStruct {
+ fabric_sensitive AccessControlEntryPrivilegeEnum privilege = 1;
+ fabric_sensitive AccessControlEntryAuthModeEnum authMode = 2;
nullable fabric_sensitive int64u subjects[] = 3;
nullable fabric_sensitive Target targets[] = 4;
fabric_idx fabricIndex = 254;
@@ -276,7 +276,7 @@ server cluster AccessControl = 31 {
nullable devtype_id deviceType = 2;
}
- fabric_scoped struct ExtensionEntry {
+ fabric_scoped struct AccessControlExtensionStruct {
fabric_sensitive octet_string<128> data = 1;
fabric_idx fabricIndex = 254;
}
@@ -285,7 +285,7 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable AccessControlEntry latestValue = 4;
+ nullable AccessControlEntryStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
@@ -293,12 +293,12 @@ server cluster AccessControl = 31 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
- nullable ExtensionEntry latestValue = 4;
+ nullable AccessControlExtensionStruct latestValue = 4;
fabric_idx fabricIndex = 254;
}
- attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
- attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
+ attribute access(read: administer, write: administer) AccessControlEntryStruct acl[] = 0;
+ attribute access(read: administer, write: administer) AccessControlExtensionStruct extension[] = 1;
readonly attribute int16u subjectsPerAccessControlEntry = 2;
readonly attribute int16u targetsPerAccessControlEntry = 3;
readonly attribute int16u accessControlEntriesPerFabric = 4;
@@ -381,8 +381,8 @@ client cluster OtaSoftwareUpdateProvider = 41 {
readonly attribute int16u clusterRevision = 65533;
request struct QueryImageRequest {
- vendor_id vendorId = 0;
- INT16U productId = 1;
+ vendor_id vendorID = 0;
+ INT16U productID = 1;
INT32U softwareVersion = 2;
OTADownloadProtocol protocolsSupported[] = 3;
optional INT16U hardwareVersion = 4;
@@ -474,22 +474,22 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
nullable INT64S platformCode = 3;
}
- attribute ProviderLocation defaultOtaProviders[] = 0;
+ attribute ProviderLocation defaultOTAProviders[] = 0;
readonly attribute boolean updatePossible = 1;
readonly attribute OTAUpdateStateEnum updateState = 2;
readonly attribute nullable int8u updateStateProgress = 3;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
- node_id providerNodeId = 0;
- vendor_id vendorId = 1;
+ request struct AnnounceOTAProviderRequest {
+ node_id providerNodeID = 0;
+ vendor_id vendorID = 1;
OTAAnnouncementReason announcementReason = 2;
optional OCTET_STRING<512> metadataForNode = 3;
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
@@ -1637,7 +1637,7 @@ endpoint 0 {
}
server cluster OtaSoftwareUpdateRequestor {
- callback attribute defaultOtaProviders;
+ callback attribute defaultOTAProviders;
ram attribute updatePossible default = 1;
ram attribute updateState;
ram attribute updateStateProgress;
diff --git a/examples/window-app/common/window-app.zap b/examples/window-app/common/window-app.zap
index 705e782125e759..0e0e1180486cf1 100644
--- a/examples/window-app/common/window-app.zap
+++ b/examples/window-app/common/window-app.zap
@@ -1737,7 +1737,7 @@
"enabled": 0,
"commands": [
{
- "name": "AnnounceOtaProvider",
+ "name": "AnnounceOTAProvider",
"code": 0,
"mfgCode": null,
"source": "client",
@@ -1773,7 +1773,7 @@
"enabled": 1,
"attributes": [
{
- "name": "DefaultOtaProviders",
+ "name": "DefaultOTAProviders",
"code": 0,
"mfgCode": null,
"side": "server",
diff --git a/examples/window-app/nrfconnect/prj.conf b/examples/window-app/nrfconnect/prj.conf
index a284009a305d99..3dc711bce86098 100644
--- a/examples/window-app/nrfconnect/prj.conf
+++ b/examples/window-app/nrfconnect/prj.conf
@@ -46,3 +46,6 @@ CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=1024
CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
diff --git a/examples/window-app/nrfconnect/prj_no_dfu.conf b/examples/window-app/nrfconnect/prj_no_dfu.conf
index 3f55608bc1357e..d2da9b1a184eaa 100644
--- a/examples/window-app/nrfconnect/prj_no_dfu.conf
+++ b/examples/window-app/nrfconnect/prj_no_dfu.conf
@@ -52,6 +52,9 @@ CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
+# Reduce application size
+CONFIG_USE_SEGGER_RTT=n
+
# Disable Matter OTA DFU
CONFIG_CHIP_OTA_REQUESTOR=n
diff --git a/examples/window-app/nrfconnect/prj_release.conf b/examples/window-app/nrfconnect/prj_release.conf
index c801e2f86bb9a7..336eb9ea95169f 100644
--- a/examples/window-app/nrfconnect/prj_release.conf
+++ b/examples/window-app/nrfconnect/prj_release.conf
@@ -54,6 +54,7 @@ CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=1024
CONFIG_PM_DEVICE=y
# Disable all debug features
+CONFIG_USE_SEGGER_RTT=n
CONFIG_SHELL=n
CONFIG_OPENTHREAD_SHELL=n
CONFIG_CONSOLE=n
diff --git a/examples/window-app/silabs/efr32/BUILD.gn b/examples/window-app/silabs/efr32/BUILD.gn
index 930d7254239415..7b832a852375df 100644
--- a/examples/window-app/silabs/efr32/BUILD.gn
+++ b/examples/window-app/silabs/efr32/BUILD.gn
@@ -94,11 +94,6 @@ defines = []
# WiFi settings
if (chip_enable_wifi) {
- # disabling LCD for MG24 for wifi
- if (silabs_board == "BRD4186C" || silabs_board == "BRD4187C") {
- show_qr_code = false
- disable_lcd = true
- }
if (chip_default_wifi_ssid != "") {
defines += [
"CHIP_ONNETWORK_PAIRING=1",
diff --git a/scripts/idl/README.md b/scripts/idl/README.md
index 78ee9325ddf2e4..ac3ddf517f8277 100644
--- a/scripts/idl/README.md
+++ b/scripts/idl/README.md
@@ -60,7 +60,7 @@ server cluster AccessControl = 31 {
// request structures are regular structures that are used
// as command inputs. Special tagging to make the use clear.
- request struct AnnounceOtaProviderRequest {}
+ request struct AnnounceOTAProviderRequest {}
request struct ConnectNetworkRequest {
OCTET_STRING networkID = 0;
INT64U breadcrumb = 1;
@@ -109,7 +109,7 @@ server cluster AccessControl = 31 {
// IDLs specifically do not define a structure for DefaultSuccess.
//
// which is considered an internal type.
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 1;
+ command AnnounceOTAProvider(AnnounceOTAProviderRequest): DefaultSuccess = 1;
// Some commands may take no inputs at all
command On(): DefaultSuccess = 2;
diff --git a/scripts/idl/tests/inputs/large_all_clusters_app.matter b/scripts/idl/tests/inputs/large_all_clusters_app.matter
index 47810281dfd37f..32eac2423ee3da 100644
--- a/scripts/idl/tests/inputs/large_all_clusters_app.matter
+++ b/scripts/idl/tests/inputs/large_all_clusters_app.matter
@@ -720,7 +720,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
+ request struct AnnounceOTAProviderRequest {
node_id providerNodeId = 0;
vendor_id vendorId = 1;
OTAAnnouncementReason announcementReason = 2;
@@ -728,7 +728,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
diff --git a/scripts/idl/tests/inputs/large_lighting_app.matter b/scripts/idl/tests/inputs/large_lighting_app.matter
index 67b2390fe614b7..5ebc3616898784 100644
--- a/scripts/idl/tests/inputs/large_lighting_app.matter
+++ b/scripts/idl/tests/inputs/large_lighting_app.matter
@@ -515,7 +515,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
- request struct AnnounceOtaProviderRequest {
+ request struct AnnounceOTAProviderRequest {
node_id providerNodeId = 0;
vendor_id vendorId = 1;
OTAAnnouncementReason announcementReason = 2;
@@ -523,7 +523,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
endpoint_no endpoint = 4;
}
- command AnnounceOtaProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
+ command AnnounceOTAProvider(AnnounceOtaProviderRequest): DefaultSuccess = 0;
}
server cluster LocalizationConfiguration = 43 {
diff --git a/scripts/tests/yamltests/fixes.py b/scripts/tests/yamltests/fixes.py
index a0126b003f9a2e..676739d5ae3f6b 100644
--- a/scripts/tests/yamltests/fixes.py
+++ b/scripts/tests/yamltests/fixes.py
@@ -54,8 +54,6 @@ def try_apply_yaml_float_written_as_strings(value):
return value
-# TODO(thampson) This method is a clone of the method in
-# src/controller/python/chip/yaml/format_converter.py and should eventually be removed in that file.
def convert_yaml_octet_string_to_bytes(s: str) -> bytes:
'''Convert YAML octet string body to bytes.
diff --git a/src/app/clusters/access-control-server/access-control-server.cpp b/src/app/clusters/access-control-server/access-control-server.cpp
index 9ea30029c9e30a..47b7a6168e4d74 100644
--- a/src/app/clusters/access-control-server/access-control-server.cpp
+++ b/src/app/clusters/access-control-server/access-control-server.cpp
@@ -82,7 +82,7 @@ class AccessControlAttribute : public AttributeAccessInterface, public EntryList
CHIP_ERROR WriteExtension(const ConcreteDataAttributePath & aPath, AttributeValueDecoder & aDecoder);
} sAttribute;
-CHIP_ERROR LogExtensionChangedEvent(const AccessControlCluster::Structs::ExtensionEntry::Type & item,
+CHIP_ERROR LogExtensionChangedEvent(const AccessControlCluster::Structs::AccessControlExtensionStruct::Type & item,
const Access::SubjectDescriptor & subjectDescriptor,
AccessControlCluster::ChangeTypeEnum changeType)
{
@@ -207,7 +207,7 @@ CHIP_ERROR AccessControlAttribute::ReadExtension(AttributeValueEncoder & aEncode
continue;
}
ReturnErrorOnFailure(errStorage);
- AccessControlCluster::Structs::ExtensionEntry::Type item = {
+ AccessControlCluster::Structs::AccessControlExtensionStruct::Type item = {
.data = ByteSpan(buffer, size),
.fabricIndex = fabric.GetFabricIndex(),
};
@@ -306,7 +306,7 @@ CHIP_ERROR AccessControlAttribute::WriteExtension(const ConcreteDataAttributePat
if (!aPath.IsListItemOperation())
{
- DataModel::DecodableList list;
+ DataModel::DecodableList list;
ReturnErrorOnFailure(aDecoder.Decode(list));
size_t count = 0;
@@ -317,7 +317,7 @@ CHIP_ERROR AccessControlAttribute::WriteExtension(const ConcreteDataAttributePat
ReturnErrorCodeIf(errStorage == CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND, CHIP_NO_ERROR);
ReturnErrorOnFailure(storage.SyncDeleteKeyValue(
DefaultStorageKeyAllocator::AccessControlExtensionEntry(accessingFabricIndex).KeyName()));
- AccessControlCluster::Structs::ExtensionEntry::Type item = {
+ AccessControlCluster::Structs::AccessControlExtensionStruct::Type item = {
.data = ByteSpan(buffer, size),
.fabricIndex = accessingFabricIndex,
};
@@ -355,7 +355,7 @@ CHIP_ERROR AccessControlAttribute::WriteExtension(const ConcreteDataAttributePat
else if (aPath.mListOp == ConcreteDataAttributePath::ListOperation::AppendItem)
{
ReturnErrorCodeIf(errStorage != CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND, CHIP_IM_GLOBAL_STATUS(ConstraintError));
- AccessControlCluster::Structs::ExtensionEntry::DecodableType item;
+ AccessControlCluster::Structs::AccessControlExtensionStruct::DecodableType item;
ReturnErrorOnFailure(aDecoder.Decode(item));
// TODO(#13590): generated code doesn't automatically handle max length so do it manually
ReturnErrorCodeIf(item.data.size() > kExtensionDataMaxLength, CHIP_IM_GLOBAL_STATUS(ConstraintError));
diff --git a/src/app/clusters/descriptor/descriptor.cpp b/src/app/clusters/descriptor/descriptor.cpp
index e14ea6daf40462..fbd6574f06a59e 100644
--- a/src/app/clusters/descriptor/descriptor.cpp
+++ b/src/app/clusters/descriptor/descriptor.cpp
@@ -120,8 +120,8 @@ CHIP_ERROR DescriptorAttrAccess::ReadDeviceAttribute(EndpointId endpoint, Attrib
for (auto & deviceType : deviceTypeList)
{
- deviceStruct.type = deviceType.deviceId;
- deviceStruct.revision = deviceType.deviceVersion;
+ deviceStruct.deviceType = deviceType.deviceId;
+ deviceStruct.revision = deviceType.deviceVersion;
ReturnErrorOnFailure(encoder.Encode(deviceStruct));
}
diff --git a/src/app/clusters/groups-server/groups-server.cpp b/src/app/clusters/groups-server/groups-server.cpp
index 588220e0dc371f..815687605193f4 100644
--- a/src/app/clusters/groups-server/groups-server.cpp
+++ b/src/app/clusters/groups-server/groups-server.cpp
@@ -143,8 +143,8 @@ bool emberAfGroupsClusterAddGroupCallback(app::CommandHandler * commandObj, cons
auto fabricIndex = commandObj->GetAccessingFabricIndex();
Groups::Commands::AddGroupResponse::Type response;
- response.groupId = commandData.groupId;
- response.status = GroupAdd(fabricIndex, commandPath.mEndpointId, commandData.groupId, commandData.groupName);
+ response.groupID = commandData.groupID;
+ response.status = GroupAdd(fabricIndex, commandPath.mEndpointId, commandData.groupID, commandData.groupName);
commandObj->AddResponse(commandPath, response);
return true;
}
@@ -153,7 +153,7 @@ bool emberAfGroupsClusterViewGroupCallback(app::CommandHandler * commandObj, con
const Commands::ViewGroup::DecodableType & commandData)
{
auto fabricIndex = commandObj->GetAccessingFabricIndex();
- auto groupId = commandData.groupId;
+ auto groupId = commandData.groupID;
GroupDataProvider * provider = GetGroupDataProvider();
GroupDataProvider::GroupInfo info;
Groups::Commands::ViewGroupResponse::Type response;
@@ -170,7 +170,7 @@ bool emberAfGroupsClusterViewGroupCallback(app::CommandHandler * commandObj, con
response.groupName = CharSpan(info.name, strnlen(info.name, GroupDataProvider::GroupInfo::kGroupNameMax));
status = EMBER_ZCL_STATUS_SUCCESS;
exit:
- response.groupId = groupId;
+ response.groupID = groupId;
response.status = status;
commandObj->AddResponse(commandPath, response);
return true;
@@ -289,10 +289,10 @@ bool emberAfGroupsClusterRemoveGroupCallback(app::CommandHandler * commandObj, c
#ifdef EMBER_AF_PLUGIN_SCENES
// If a group is, removed the scenes associated with that group SHOULD be removed.
- emberAfScenesClusterRemoveScenesInGroupCallback(commandPath.mEndpointId, commandData.groupId);
+ emberAfScenesClusterRemoveScenesInGroupCallback(commandPath.mEndpointId, commandData.groupID);
#endif
- response.groupId = commandData.groupId;
- response.status = GroupRemove(fabricIndex, commandPath.mEndpointId, commandData.groupId);
+ response.groupID = commandData.groupID;
+ response.status = GroupRemove(fabricIndex, commandPath.mEndpointId, commandData.groupID);
commandObj->AddResponse(commandPath, response);
return true;
@@ -342,7 +342,7 @@ bool emberAfGroupsClusterAddGroupIfIdentifyingCallback(app::CommandHandler * com
const Commands::AddGroupIfIdentifying::DecodableType & commandData)
{
auto fabricIndex = commandObj->GetAccessingFabricIndex();
- auto groupId = commandData.groupId;
+ auto groupId = commandData.groupID;
auto groupName = commandData.groupName;
auto endpointId = commandPath.mEndpointId;
diff --git a/src/app/clusters/on-off-server/on-off-server.cpp b/src/app/clusters/on-off-server/on-off-server.cpp
index 260051d636a78c..4fa560a30b902d 100644
--- a/src/app/clusters/on-off-server/on-off-server.cpp
+++ b/src/app/clusters/on-off-server/on-off-server.cpp
@@ -351,7 +351,7 @@ bool OnOffServer::toggleCommand(const app::ConcreteCommandPath & commandPath)
bool OnOffServer::offWithEffectCommand(app::CommandHandler * commandObj, const app::ConcreteCommandPath & commandPath,
const Commands::OffWithEffect::DecodableType & commandData)
{
- OnOffEffectIdentifier effectId = commandData.effectId;
+ OnOffEffectIdentifier effectId = commandData.effectIdentifier;
uint8_t effectVariant = commandData.effectVariant;
chip::EndpointId endpoint = commandPath.mEndpointId;
EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS;
diff --git a/src/app/clusters/ota-provider/ota-provider.cpp b/src/app/clusters/ota-provider/ota-provider.cpp
index da21de71399c92..c55641b7b4cbd8 100644
--- a/src/app/clusters/ota-provider/ota-provider.cpp
+++ b/src/app/clusters/ota-provider/ota-provider.cpp
@@ -148,8 +148,8 @@ bool emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(app::CommandHandl
const app::ConcreteCommandPath & commandPath,
const Commands::QueryImage::DecodableType & commandData)
{
- auto & vendorId = commandData.vendorId;
- auto & productId = commandData.productId;
+ auto & vendorId = commandData.vendorID;
+ auto & productId = commandData.productID;
auto & hardwareVersion = commandData.hardwareVersion;
auto & softwareVersion = commandData.softwareVersion;
auto & protocolsSupported = commandData.protocolsSupported;
diff --git a/src/app/clusters/ota-requestor/DefaultOTARequestor.cpp b/src/app/clusters/ota-requestor/DefaultOTARequestor.cpp
index e339659b716019..a8e29660aedc80 100644
--- a/src/app/clusters/ota-requestor/DefaultOTARequestor.cpp
+++ b/src/app/clusters/ota-requestor/DefaultOTARequestor.cpp
@@ -327,7 +327,7 @@ void DefaultOTARequestor::Reset()
}
void DefaultOTARequestor::HandleAnnounceOTAProvider(app::CommandHandler * commandObj, const app::ConcreteCommandPath & commandPath,
- const AnnounceOtaProvider::DecodableType & commandData)
+ const AnnounceOTAProvider::DecodableType & commandData)
{
VerifyOrReturn(commandObj != nullptr, ChipLogError(SoftwareUpdate, "Invalid commandObj, cannot handle AnnounceOTAProvider"));
@@ -335,13 +335,13 @@ void DefaultOTARequestor::HandleAnnounceOTAProvider(app::CommandHandler * comman
ChipLogProgress(SoftwareUpdate, "OTA Requestor received AnnounceOTAProvider");
- ProviderLocationType providerLocation = { .providerNodeID = commandData.providerNodeId,
+ ProviderLocationType providerLocation = { .providerNodeID = commandData.providerNodeID,
.endpoint = commandData.endpoint,
.fabricIndex = commandObj->GetAccessingFabricIndex() };
ChipLogDetail(SoftwareUpdate, " FabricIndex: %u", providerLocation.fabricIndex);
ChipLogDetail(SoftwareUpdate, " ProviderNodeID: 0x" ChipLogFormatX64, ChipLogValueX64(providerLocation.providerNodeID));
- ChipLogDetail(SoftwareUpdate, " VendorID: 0x%x", commandData.vendorId);
+ ChipLogDetail(SoftwareUpdate, " VendorID: 0x%x", commandData.vendorID);
ChipLogDetail(SoftwareUpdate, " AnnouncementReason: %u", to_underlying(announcementReason));
if (commandData.metadataForNode.HasValue())
{
@@ -737,9 +737,9 @@ CHIP_ERROR DefaultOTARequestor::SendQueryImageRequest(Messaging::ExchangeManager
uint16_t vendorId;
ReturnErrorOnFailure(DeviceLayer::GetDeviceInstanceInfoProvider()->GetVendorId(vendorId));
- args.vendorId = static_cast(vendorId);
+ args.vendorID = static_cast(vendorId);
- ReturnErrorOnFailure(DeviceLayer::GetDeviceInstanceInfoProvider()->GetProductId(args.productId));
+ ReturnErrorOnFailure(DeviceLayer::GetDeviceInstanceInfoProvider()->GetProductId(args.productID));
ReturnErrorOnFailure(DeviceLayer::ConfigurationMgr().GetSoftwareVersion(args.softwareVersion));
diff --git a/src/app/clusters/ota-requestor/DefaultOTARequestor.h b/src/app/clusters/ota-requestor/DefaultOTARequestor.h
index 938f2be59f671a..32de9772743491 100644
--- a/src/app/clusters/ota-requestor/DefaultOTARequestor.h
+++ b/src/app/clusters/ota-requestor/DefaultOTARequestor.h
@@ -44,7 +44,7 @@ class DefaultOTARequestor : public OTARequestorInterface, public BDXDownloader::
void HandleAnnounceOTAProvider(
app::CommandHandler * commandObj, const app::ConcreteCommandPath & commandPath,
- const app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::DecodableType & commandData) override;
+ const app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOTAProvider::DecodableType & commandData) override;
// Application API to send the QueryImage command and start the image update process with the next available Provider
CHIP_ERROR TriggerImmediateQuery(FabricIndex fabricIndex) override;
diff --git a/src/app/clusters/ota-requestor/OTARequestorInterface.h b/src/app/clusters/ota-requestor/OTARequestorInterface.h
index bd09f833971cc0..d81b67424f0b60 100644
--- a/src/app/clusters/ota-requestor/OTARequestorInterface.h
+++ b/src/app/clusters/ota-requestor/OTARequestorInterface.h
@@ -154,7 +154,7 @@ class OTARequestorInterface
*/
virtual void HandleAnnounceOTAProvider(
chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath,
- const chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::DecodableType & commandData) = 0;
+ const chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOTAProvider::DecodableType & commandData) = 0;
// Destructor
virtual ~OTARequestorInterface() = default;
diff --git a/src/app/clusters/ota-requestor/ota-requestor-server.cpp b/src/app/clusters/ota-requestor/ota-requestor-server.cpp
index 06adf80e4de07f..b5611b7d57c70f 100644
--- a/src/app/clusters/ota-requestor/ota-requestor-server.cpp
+++ b/src/app/clusters/ota-requestor/ota-requestor-server.cpp
@@ -62,7 +62,7 @@ CHIP_ERROR OtaSoftwareUpdateRequestorAttrAccess::Read(const ConcreteReadAttribut
{
switch (aPath.mAttributeId)
{
- case Attributes::DefaultOtaProviders::Id:
+ case Attributes::DefaultOTAProviders::Id:
return ReadDefaultOtaProviders(aEncoder);
default:
break;
@@ -75,7 +75,7 @@ CHIP_ERROR OtaSoftwareUpdateRequestorAttrAccess::Write(const ConcreteDataAttribu
{
switch (aPath.mAttributeId)
{
- case Attributes::DefaultOtaProviders::Id: {
+ case Attributes::DefaultOTAProviders::Id: {
return WriteDefaultOtaProviders(aPath, aDecoder);
}
default:
@@ -258,9 +258,9 @@ void OtaRequestorServerOnDownloadError(uint32_t softwareVersion, uint64_t bytesD
// -----------------------------------------------------------------------------
// Callbacks implementation
-bool emberAfOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderCallback(
+bool emberAfOtaSoftwareUpdateRequestorClusterAnnounceOTAProviderCallback(
chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath,
- const chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::DecodableType & commandData)
+ const chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOTAProvider::DecodableType & commandData)
{
auto & metadataForNode = commandData.metadataForNode;
diff --git a/src/app/server/AclStorage.cpp b/src/app/server/AclStorage.cpp
index 9fdb412ed523ec..62b90ebab3e98c 100644
--- a/src/app/server/AclStorage.cpp
+++ b/src/app/server/AclStorage.cpp
@@ -25,8 +25,8 @@ using namespace chip::Access;
using Entry = AccessControl::Entry;
using EntryListener = AccessControl::EntryListener;
-using StagingAuthMode = Clusters::AccessControl::AuthMode;
-using StagingPrivilege = Clusters::AccessControl::Privilege;
+using StagingAuthMode = Clusters::AccessControl::AccessControlEntryAuthModeEnum;
+using StagingPrivilege = Clusters::AccessControl::AccessControlEntryPrivilegeEnum;
using StagingTarget = Clusters::AccessControl::Structs::Target::Type;
using Target = AccessControl::Entry::Target;
diff --git a/src/app/server/AclStorage.h b/src/app/server/AclStorage.h
index 72e9dd4706ac76..bb12737328375e 100644
--- a/src/app/server/AclStorage.h
+++ b/src/app/server/AclStorage.h
@@ -53,7 +53,7 @@ class AclStorage
class DecodableEntry
{
using Entry = Access::AccessControl::Entry;
- using StagingEntry = Clusters::AccessControl::Structs::AccessControlEntry::DecodableType;
+ using StagingEntry = Clusters::AccessControl::Structs::AccessControlEntryStruct::DecodableType;
public:
DecodableEntry() = default;
@@ -93,7 +93,7 @@ class AclStorage
class EncodableEntry
{
using Entry = Access::AccessControl::Entry;
- using StagingEntry = Clusters::AccessControl::Structs::AccessControlEntry::Type;
+ using StagingEntry = Clusters::AccessControl::Structs::AccessControlEntryStruct::Type;
using StagingTarget = Clusters::AccessControl::Structs::Target::Type;
public:
diff --git a/src/app/server/DefaultAclStorage.cpp b/src/app/server/DefaultAclStorage.cpp
index 61a06000412e7e..d36aaca31b8c3d 100644
--- a/src/app/server/DefaultAclStorage.cpp
+++ b/src/app/server/DefaultAclStorage.cpp
@@ -26,8 +26,8 @@ using namespace chip::Access;
using EncodableEntry = AclStorage::EncodableEntry;
using Entry = AccessControl::Entry;
using EntryListener = AccessControl::EntryListener;
-using StagingAuthMode = Clusters::AccessControl::AuthMode;
-using StagingPrivilege = Clusters::AccessControl::Privilege;
+using StagingAuthMode = Clusters::AccessControl::AccessControlEntryAuthModeEnum;
+using StagingPrivilege = Clusters::AccessControl::AccessControlEntryPrivilegeEnum;
using StagingTarget = Clusters::AccessControl::Structs::Target::Type;
using Target = AccessControl::Entry::Target;
diff --git a/src/app/tests/BUILD.gn b/src/app/tests/BUILD.gn
index d11f29a66c72c2..6afc8f8e2615fc 100644
--- a/src/app/tests/BUILD.gn
+++ b/src/app/tests/BUILD.gn
@@ -54,6 +54,18 @@ source_set("binding-test-srcs") {
]
}
+source_set("client-monitoring-test-srcs") {
+ sources = [
+ "${chip_root}/src/app/util/ClientMonitoringRegistrationTable.cpp",
+ "${chip_root}/src/app/util/ClientMonitoringRegistrationTable.h",
+ ]
+
+ public_deps = [
+ "${chip_root}/src/app/common:cluster-objects",
+ "${chip_root}/src/lib/core",
+ ]
+}
+
source_set("ota-requestor-test-srcs") {
sources = [
"${chip_root}/src/app/clusters/ota-requestor/DefaultOTARequestorStorage.cpp",
@@ -77,6 +89,7 @@ chip_test_suite("tests") {
"TestAttributeValueEncoder.cpp",
"TestBindingTable.cpp",
"TestBuilderParser.cpp",
+ "TestClientMonitoringRegistrationTable.cpp",
"TestClusterInfo.cpp",
"TestCommandInteraction.cpp",
"TestCommandPathParams.cpp",
@@ -117,6 +130,7 @@ chip_test_suite("tests") {
public_deps = [
":binding-test-srcs",
+ ":client-monitoring-test-srcs",
":ota-requestor-test-srcs",
"${chip_root}/src/app",
"${chip_root}/src/app/common:cluster-objects",
diff --git a/src/app/tests/TestAttributeValueDecoder.cpp b/src/app/tests/TestAttributeValueDecoder.cpp
index 04f65d0171bc63..0f01d506752ba6 100644
--- a/src/app/tests/TestAttributeValueDecoder.cpp
+++ b/src/app/tests/TestAttributeValueDecoder.cpp
@@ -66,8 +66,8 @@ void TestOverwriteFabricIndexInStruct(nlTestSuite * aSuite, void * aContext)
{
TestSetup setup;
CHIP_ERROR err;
- Clusters::AccessControl::Structs::ExtensionEntry::Type item;
- Clusters::AccessControl::Structs::ExtensionEntry::DecodableType decodeItem;
+ Clusters::AccessControl::Structs::AccessControlExtensionStruct::Type item;
+ Clusters::AccessControl::Structs::AccessControlExtensionStruct::DecodableType decodeItem;
Access::SubjectDescriptor subjectDescriptor = { .fabricIndex = kTestFabricIndex };
item.fabricIndex = 0;
@@ -99,7 +99,7 @@ void TestOverwriteFabricIndexInListOfStructs(nlTestSuite * aSuite, void * aConte
{
TestSetup setup;
CHIP_ERROR err;
- Clusters::AccessControl::Structs::ExtensionEntry::Type items[kTestListElements];
+ Clusters::AccessControl::Structs::AccessControlExtensionStruct::Type items[kTestListElements];
Clusters::AccessControl::Attributes::Extension::TypeInfo::DecodableType decodeItems;
Access::SubjectDescriptor subjectDescriptor = { .fabricIndex = kTestFabricIndex };
@@ -108,7 +108,7 @@ void TestOverwriteFabricIndexInListOfStructs(nlTestSuite * aSuite, void * aConte
items[i].fabricIndex = i;
}
- err = setup.Encode(DataModel::List(items));
+ err = setup.Encode(DataModel::List(items));
NL_TEST_ASSERT(aSuite, err == CHIP_NO_ERROR);
TLV::TLVReader reader;
diff --git a/src/app/tests/TestAttributeValueEncoder.cpp b/src/app/tests/TestAttributeValueEncoder.cpp
index a75c692428f963..8c044929ad21d6 100644
--- a/src/app/tests/TestAttributeValueEncoder.cpp
+++ b/src/app/tests/TestAttributeValueEncoder.cpp
@@ -254,7 +254,7 @@ void TestEncodeEmptyList2(nlTestSuite * aSuite, void * aContext)
void TestEncodeFabricScoped(nlTestSuite * aSuite, void * aContext)
{
TestSetup test(aSuite, kTestFabricIndex);
- Clusters::AccessControl::Structs::ExtensionEntry::Type items[3];
+ Clusters::AccessControl::Structs::AccessControlExtensionStruct::Type items[3];
items[0].fabricIndex = 1;
items[1].fabricIndex = 2;
items[2].fabricIndex = 3;
diff --git a/src/app/tests/TestClientMonitoringRegistrationTable.cpp b/src/app/tests/TestClientMonitoringRegistrationTable.cpp
new file mode 100644
index 00000000000000..a05d9e6d490615
--- /dev/null
+++ b/src/app/tests/TestClientMonitoringRegistrationTable.cpp
@@ -0,0 +1,141 @@
+/*
+ *
+ * Copyright (c) 2022 Project CHIP Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+using chip::ClientMonitoringRegistrationTable;
+using chip::NullOptional;
+
+namespace {
+
+constexpr chip::FabricIndex kTestFabricIndex = 1;
+constexpr uint64_t kTestICid = 10;
+constexpr chip::NodeId kTestClientNodeId = 11;
+
+constexpr chip::FabricIndex kTestFabricIndex_2 = 2;
+constexpr uint64_t kTestICid_2 = 20;
+constexpr chip::NodeId kTestClientNodeId_2 = 21;
+
+void TestDefaultClientValues(nlTestSuite * aSuite, void * aContext)
+{
+ chip::TestPersistentStorageDelegate testStorage;
+ ClientMonitoringRegistrationTable registration(testStorage);
+
+ NL_TEST_ASSERT(aSuite, !registration.GetClientRegistrationEntry().IsValid());
+ NL_TEST_ASSERT(aSuite, registration.GetClientRegistrationEntry().clientNodeId == chip::kUndefinedFabricIndex);
+ NL_TEST_ASSERT(aSuite, registration.GetClientRegistrationEntry().ICid == chip::kUndefinedNodeId);
+ NL_TEST_ASSERT(aSuite, registration.GetClientRegistrationEntry().fabricIndex == chip::kInvalidIcId);
+}
+
+void TestLoadFromStorageEmptyValue(nlTestSuite * aSuite, void * aContext)
+{
+ chip::TestPersistentStorageDelegate testStorage;
+ ClientMonitoringRegistrationTable registration(testStorage);
+
+ CHIP_ERROR err = registration.LoadFromStorage(kTestFabricIndex);
+ NL_TEST_ASSERT(aSuite, err == CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND);
+}
+
+void TestSaveAndLoadRegistrationValue(nlTestSuite * aSuite, void * aContext)
+{
+ chip::TestPersistentStorageDelegate testStorage;
+ ClientMonitoringRegistrationTable savedRegistration(testStorage);
+ ClientMonitoringRegistrationTable loadedRegistration(testStorage);
+
+ savedRegistration.GetClientRegistrationEntry().clientNodeId = kTestClientNodeId;
+ savedRegistration.GetClientRegistrationEntry().ICid = kTestICid;
+ savedRegistration.GetClientRegistrationEntry().fabricIndex = kTestFabricIndex;
+
+ CHIP_ERROR err = savedRegistration.SaveToStorage();
+ NL_TEST_ASSERT(aSuite, err == CHIP_NO_ERROR);
+
+ err = loadedRegistration.LoadFromStorage(kTestFabricIndex);
+ NL_TEST_ASSERT(aSuite, err == CHIP_NO_ERROR);
+
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().clientNodeId == kTestClientNodeId);
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().ICid == kTestICid);
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().fabricIndex == kTestFabricIndex);
+}
+
+void TestSaveLoadRegistrationValueForMultipleFabrics(nlTestSuite * aSuite, void * aContexT)
+{
+ chip::TestPersistentStorageDelegate testStorage;
+ ClientMonitoringRegistrationTable savedRegistration(testStorage);
+ ClientMonitoringRegistrationTable loadedRegistration(testStorage);
+
+ savedRegistration.GetClientRegistrationEntry().clientNodeId = kTestClientNodeId;
+ savedRegistration.GetClientRegistrationEntry().ICid = kTestICid;
+ savedRegistration.GetClientRegistrationEntry().fabricIndex = kTestFabricIndex;
+
+ CHIP_ERROR err = savedRegistration.SaveToStorage();
+ NL_TEST_ASSERT(aSuite, err == CHIP_NO_ERROR);
+
+ savedRegistration.GetClientRegistrationEntry().clientNodeId = kTestClientNodeId_2;
+ savedRegistration.GetClientRegistrationEntry().ICid = kTestICid_2;
+ savedRegistration.GetClientRegistrationEntry().fabricIndex = kTestFabricIndex_2;
+
+ err = savedRegistration.SaveToStorage();
+ NL_TEST_ASSERT(aSuite, err == CHIP_NO_ERROR);
+
+ err = loadedRegistration.LoadFromStorage(kTestFabricIndex);
+ NL_TEST_ASSERT(aSuite, err == CHIP_NO_ERROR);
+
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().clientNodeId == kTestClientNodeId);
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().ICid == kTestICid);
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().fabricIndex == kTestFabricIndex);
+
+ err = loadedRegistration.LoadFromStorage(kTestFabricIndex_2);
+ NL_TEST_ASSERT(aSuite, err == CHIP_NO_ERROR);
+
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().clientNodeId == kTestClientNodeId_2);
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().ICid == kTestICid_2);
+ NL_TEST_ASSERT(aSuite, loadedRegistration.GetClientRegistrationEntry().fabricIndex == kTestFabricIndex_2);
+}
+
+void TestSaveAllInvalidRegistrationValues(nlTestSuite * aSuite, void * context)
+{
+ chip::TestPersistentStorageDelegate testStorage;
+ ClientMonitoringRegistrationTable registration(testStorage);
+
+ CHIP_ERROR err = registration.SaveToStorage();
+ NL_TEST_ASSERT(aSuite, err == CHIP_ERROR_INCORRECT_STATE);
+}
+
+} // namespace
+
+int TestClientMonitoringRegistrationTable()
+{
+ static nlTest sTests[] = { NL_TEST_DEF("TestDefaultClientValues", TestDefaultClientValues),
+ NL_TEST_DEF("TestLoadFromStorageEmptyValue", TestLoadFromStorageEmptyValue),
+ NL_TEST_DEF("TestSaveAndLoadRegistrationValue", TestSaveAndLoadRegistrationValue),
+ NL_TEST_DEF("TestSaveAllInvalidRegistrationValues", TestSaveAllInvalidRegistrationValues),
+ NL_TEST_DEF("TestSaveLoadRegistrationValueForMultipleFabrics",
+ TestSaveLoadRegistrationValueForMultipleFabrics),
+ NL_TEST_SENTINEL() };
+
+ nlTestSuite cmSuite = { "TestClientMonitoringRegistrationTable", &sTests[0], nullptr, nullptr };
+
+ nlTestRunner(&cmSuite, nullptr);
+ return (nlTestRunnerStats(&cmSuite));
+}
+
+CHIP_REGISTER_TEST_SUITE(TestClientMonitoringRegistrationTable)
diff --git a/src/app/tests/suites/OTA_SuccessfulTransfer.yaml b/src/app/tests/suites/OTA_SuccessfulTransfer.yaml
index 4e186d4fd5b815..ed31f4b232c93d 100644
--- a/src/app/tests/suites/OTA_SuccessfulTransfer.yaml
+++ b/src/app/tests/suites/OTA_SuccessfulTransfer.yaml
@@ -144,7 +144,7 @@ tests:
- label: "Send an announce OTA provider command to the requestor"
cluster: "OTA Software Update Requestor"
- command: "AnnounceOtaProvider"
+ command: "AnnounceOTAProvider"
arguments:
values:
- name: "providerNodeId"
diff --git a/src/app/tests/suites/TestArmFailSafe.yaml b/src/app/tests/suites/TestArmFailSafe.yaml
index 599164d74ecd0f..4ab62383d6b6d3 100644
--- a/src/app/tests/suites/TestArmFailSafe.yaml
+++ b/src/app/tests/suites/TestArmFailSafe.yaml
@@ -45,13 +45,13 @@ tests:
command: "ArmFailSafe"
arguments:
values:
- - name: "expiryLengthSeconds"
+ - name: "ExpiryLengthSeconds"
value: 0
- - name: "breadcrumb"
+ - name: "Breadcrumb"
value: 0
response:
values:
- - name: "errorCode"
+ - name: "ErrorCode"
value: 0
- label: "Reads NodeLabel mandatory attribute of target device"
diff --git a/src/app/tests/suites/TestDescriptorCluster.yaml b/src/app/tests/suites/TestDescriptorCluster.yaml
index d49accc2f68cba..4b146ba502db3b 100644
--- a/src/app/tests/suites/TestDescriptorCluster.yaml
+++ b/src/app/tests/suites/TestDescriptorCluster.yaml
@@ -32,7 +32,7 @@ tests:
command: "readAttribute"
attribute: "DeviceTypeList"
response:
- value: [{ type: 22, revision: 1 }]
+ value: [{ DeviceType: 22, Revision: 1 }]
- label: "Read attribute Server list"
command: "readAttribute"
diff --git a/src/app/tests/suites/TestGeneralCommissioning.yaml b/src/app/tests/suites/TestGeneralCommissioning.yaml
index dbd7072d3e8b39..b42e6cb263e98e 100644
--- a/src/app/tests/suites/TestGeneralCommissioning.yaml
+++ b/src/app/tests/suites/TestGeneralCommissioning.yaml
@@ -92,7 +92,7 @@ tests:
command: "CommissioningComplete"
response:
values:
- - name: errorCode
+ - name: ErrorCode
value: 3 # NoFailSafe
- label: "Check Breadcrumb was not touched by invalid CommissioningComplete"
@@ -115,13 +115,13 @@ tests:
command: "ArmFailSafe"
arguments:
values:
- - name: expiryLengthSeconds
+ - name: ExpiryLengthSeconds
value: 10
- - name: breadcrumb
+ - name: Breadcrumb
value: 5000
response:
values:
- - name: errorCode
+ - name: ErrorCode
value: 4 # BusyWithOtherAdmin
- label:
@@ -162,13 +162,13 @@ tests:
command: "ArmFailSafe"
arguments:
values:
- - name: expiryLengthSeconds
+ - name: ExpiryLengthSeconds
value: 500
- - name: breadcrumb
+ - name: Breadcrumb
value: 2
response:
values:
- - name: errorCode
+ - name: ErrorCode
value: 0 # OK
- label: "Check Breadcrumb was properly set by ArmFailSafe"
@@ -182,13 +182,13 @@ tests:
identity: "beta"
arguments:
values:
- - name: expiryLengthSeconds
+ - name: ExpiryLengthSeconds
value: 10
- - name: breadcrumb
+ - name: Breadcrumb
value: 5000
response:
values:
- - name: errorCode
+ - name: ErrorCode
value: 4 # BusyWithOtherAdmin
- label:
@@ -204,7 +204,7 @@ tests:
identity: "beta"
response:
values:
- - name: errorCode
+ - name: ErrorCode
value: 2 # InvalidAuthentication
- label:
@@ -219,7 +219,7 @@ tests:
command: "CommissioningComplete"
response:
values:
- - name: errorCode
+ - name: ErrorCode
value: 0 # Ok
- label: "Check Breadcrumb was reset to 0 by CommissioningComplete"
@@ -232,13 +232,13 @@ tests:
command: "ArmFailSafe"
arguments:
values:
- - name: expiryLengthSeconds
+ - name: ExpiryLengthSeconds
value: 500
- - name: breadcrumb
+ - name: Breadcrumb
value: 3
response:
values:
- - name: errorCode
+ - name: ErrorCode
value: 0 # OK
- label: "Check Breadcrumb was set by arming fail-safe again"
@@ -251,13 +251,13 @@ tests:
command: "ArmFailSafe"
arguments:
values:
- - name: expiryLengthSeconds
+ - name: ExpiryLengthSeconds
value: 0
- - name: breadcrumb
+ - name: Breadcrumb
value: 4
response:
values:
- - name: errorCode
+ - name: ErrorCode
value: 0 # OK
- label: "Check Breadcrumb was reset by expiring the fail-safe"
diff --git a/src/app/tests/suites/TestGroupDemoConfig.yaml b/src/app/tests/suites/TestGroupDemoConfig.yaml
index 97277f16be6526..284eb1686d953b 100644
--- a/src/app/tests/suites/TestGroupDemoConfig.yaml
+++ b/src/app/tests/suites/TestGroupDemoConfig.yaml
@@ -71,15 +71,15 @@ tests:
endpoint: 1
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- - name: "groupName"
+ - name: "GroupName"
value: "Group #1"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- label: "Install ACLs"
diff --git a/src/app/tests/suites/TestGroupKeyManagementCluster.yaml b/src/app/tests/suites/TestGroupKeyManagementCluster.yaml
index d7e9d95b24cf0a..f388434370cb6a 100644
--- a/src/app/tests/suites/TestGroupKeyManagementCluster.yaml
+++ b/src/app/tests/suites/TestGroupKeyManagementCluster.yaml
@@ -155,15 +155,15 @@ tests:
command: "AddGroup"
arguments:
values:
- - name: "GroupId"
+ - name: "GroupID"
value: 0x0101
- name: "GroupName"
value: "Group #1"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "GroupId"
+ - name: "GroupID"
value: 0x0101
- label: "Add Group 2"
@@ -172,15 +172,15 @@ tests:
command: "AddGroup"
arguments:
values:
- - name: "GroupId"
+ - name: "GroupID"
value: 0x0102
- name: "GroupName"
value: "Group #2"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "GroupId"
+ - name: "GroupID"
value: 0x0102
- label: "Read GroupTable"
@@ -246,13 +246,13 @@ tests:
command: "RemoveGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- label: "Read GroupTable 2"
diff --git a/src/app/tests/suites/TestGroupMessaging.yaml b/src/app/tests/suites/TestGroupMessaging.yaml
index 1cd3fc9ba2ef31..f13d2d0f65f706 100644
--- a/src/app/tests/suites/TestGroupMessaging.yaml
+++ b/src/app/tests/suites/TestGroupMessaging.yaml
@@ -94,15 +94,15 @@ tests:
endpoint: 1
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- - name: "groupName"
+ - name: "GroupName"
value: "Group #1"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- label: "Add Group 2 (endpoint 0)"
@@ -111,15 +111,15 @@ tests:
endpoint: 0
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- - name: "groupName"
+ - name: "GroupName"
value: "Group #2"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- label: "Install ACLs"
@@ -347,15 +347,15 @@ tests:
endpoint: 1
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- - name: "groupName"
+ - name: "GroupName"
value: "Group #1"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- label: "Add Group 2 (endpoint 0) for gamma"
@@ -365,15 +365,15 @@ tests:
endpoint: 0
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- - name: "groupName"
+ - name: "GroupName"
value: "Group #2"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- label: "Install ACLs for gamma"
diff --git a/src/app/tests/suites/TestGroupsCluster.yaml b/src/app/tests/suites/TestGroupsCluster.yaml
index 326dcbbdf1cc3c..f584899e9334ec 100644
--- a/src/app/tests/suites/TestGroupsCluster.yaml
+++ b/src/app/tests/suites/TestGroupsCluster.yaml
@@ -32,41 +32,41 @@ tests:
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x87
- - name: "groupId"
+ - name: "GroupID"
value: 0
- label: "View First Group (not found)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x8B
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- label: "Add First Group (no keys)"
command: "AddGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- - name: "groupName"
+ - name: "GroupName"
value: "Group #1"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x7e
- - name: "groupId"
+ - name: "GroupId"
value: 0x0101
- label: "Add KeySet"
@@ -104,99 +104,99 @@ tests:
command: "AddGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- - name: "groupName"
+ - name: "GroupName"
value: "Group #1"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- label: "View First Group (new)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- - name: "groupName"
+ - name: "GroupName"
value: "Group #1"
- label: "View Second Group (not found)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x8B
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- label: "Get Group Membership 1 (all)"
command: "GetGroupMembership"
arguments:
values:
- - name: "groupList"
+ - name: "GroupList"
value: []
response:
values:
- - name: "capacity"
+ - name: "Capacity"
value: null
- - name: "groupList"
+ - name: "GroupList"
value: [0x0101]
- label: "Add Second Group (new)"
command: "AddGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- - name: "groupName"
+ - name: "GroupName"
value: "Group #2"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- label: "View Second Group (new)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- - name: "groupName"
+ - name: "GroupName"
value: "Group #2"
- label: "View Group 3 (not found)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x8B
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
- label: "Add Group 3 (new)"
@@ -205,58 +205,58 @@ tests:
command: "AddGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
- - name: "groupName"
+ - name: "GroupName"
value: "Group #3"
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
- label: "View First Group (existing)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- - name: "groupName"
+ - name: "GroupName"
value: "Group #1"
- label: "View Second Group (existing)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- - name: "groupName"
+ - name: "GroupName"
value: "Group #2"
- label: "Get Group Membership 2"
command: "GetGroupMembership"
arguments:
values:
- - name: "groupList"
+ - name: "GroupList"
value: [0x0102, 0x0103, 0x7fff]
response:
values:
- - name: "capacity"
+ - name: "Capacity"
value: null
- - name: "groupList"
+ - name: "GroupList"
value: [0x0102]
- label: "View Group 3 (new)"
@@ -265,82 +265,82 @@ tests:
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
- - name: "groupName"
+ - name: "GroupName"
value: "Group #3"
- label: "Remove Group 0 (invalid)"
command: "RemoveGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x87
- - name: "groupId"
+ - name: "GroupID"
value: 0
- label: "Remove Group 4 (not found)"
command: "RemoveGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0104
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x8B
- - name: "groupId"
+ - name: "GroupID"
value: 0x0104
- label: "Remove Second Group (existing)"
command: "RemoveGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- label: "View First Group (not removed)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- - name: "groupName"
+ - name: "GroupName"
value: "Group #1"
- label: "View Second Group (removed)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x8B
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- label: "View Group 3 (not removed)"
@@ -349,28 +349,28 @@ tests:
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
response:
values:
- - name: "status"
+ - name: "Status"
value: 0
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
- - name: "groupName"
+ - name: "GroupName"
value: "Group #3"
- label: "Get Group Membership 3"
command: "GetGroupMembership"
arguments:
values:
- - name: "groupList"
+ - name: "GroupList"
value: [0x01, 0x0101, 0x0102, 0x03]
response:
values:
- - name: "capacity"
+ - name: "Capacity"
value: null
- - name: "groupList"
+ - name: "GroupList"
value: [0x0101]
- label: "Remove All"
@@ -380,50 +380,50 @@ tests:
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x8B
- - name: "groupId"
+ - name: "GroupID"
value: 0x0101
- label: "View Second Group (still removed)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x8B
- - name: "groupId"
+ - name: "GroupID"
value: 0x0102
- label: "View Group 3 (removed)"
command: "ViewGroup"
arguments:
values:
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
response:
values:
- - name: "status"
+ - name: "Status"
value: 0x8B
- - name: "groupId"
+ - name: "GroupID"
value: 0x7fff
- label: "Get Group Membership 4"
command: "GetGroupMembership"
arguments:
values:
- - name: "groupList"
+ - name: "GroupList"
value: [0x01, 0x0101, 0x0102, 0x03, 0x7fff]
response:
values:
- - name: "capacity"
+ - name: "Capacity"
value: null
- - name: "groupList"
+ - name: "GroupList"
value: []
diff --git a/src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml b/src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml
index 07db427d472984..910874922978be 100644
--- a/src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml
+++ b/src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml
@@ -218,8 +218,8 @@ tests:
[1657719097.788236][4548:4554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
[1657719097.788325][4548:4554] CHIP:TOO: AddGroupResponse: {
- [1657719097.788366][4548:4554] CHIP:TOO: status: 0
- [1657719097.788393][4548:4554] CHIP:TOO: groupId: 1
+ [1657719097.788366][4548:4554] CHIP:TOO: Status: 0
+ [1657719097.788393][4548:4554] CHIP:TOO: GroupID: 1
[1657719097.788418][4548:4554] CHIP:TOO: }
@@ -231,8 +231,8 @@ tests:
[1657717342.599740][3368:3373] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
[1657717342.599891][3368:3373] CHIP:TOO: AddGroupResponse: {
- [1657717342.599959][3368:3373] CHIP:TOO: status: 0
- [1657717342.600007][3368:3373] CHIP:TOO: groupId: 1
+ [1657717342.599959][3368:3373] CHIP:TOO: Status: 0
+ [1657717342.600007][3368:3373] CHIP:TOO: GroupID: 1
[1657717342.600054][3368:3373] CHIP:TOO: }
[1657717342.600130][3368:3373] CHIP:DMG: ICR moving
diff --git a/src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml b/src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml
index c6b9bd69fcedb0..b069dd829746c4 100644
--- a/src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml
+++ b/src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml
@@ -184,8 +184,8 @@ tests:
[1657719097.788236][4548:4554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
[1657719097.788325][4548:4554] CHIP:TOO: AddGroupResponse: {
- [1657719097.788366][4548:4554] CHIP:TOO: status: 0
- [1657719097.788393][4548:4554] CHIP:TOO: groupId: 1
+ [1657719097.788366][4548:4554] CHIP:TOO: Status: 0
+ [1657719097.788393][4548:4554] CHIP:TOO: GroupID: 1
[1657719097.788418][4548:4554] CHIP:TOO: }
@@ -197,8 +197,8 @@ tests:
[1657719097.788236][4548:4554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
[1657719097.788325][4548:4554] CHIP:TOO: AddGroupResponse: {
- [1657719097.788366][4548:4554] CHIP:TOO: status: 0
- [1657719097.788393][4548:4554] CHIP:TOO: groupId: 1
+ [1657719097.788366][4548:4554] CHIP:TOO: Status: 0
+ [1657719097.788393][4548:4554] CHIP:TOO: GroupID: 1
[1657719097.788418][4548:4554] CHIP:TOO: }
diff --git a/src/app/tests/suites/certification/Test_TC_G_2_2.yaml b/src/app/tests/suites/certification/Test_TC_G_2_2.yaml
index 1ff8701e3631d2..c2022b922e4f9f 100644
--- a/src/app/tests/suites/certification/Test_TC_G_2_2.yaml
+++ b/src/app/tests/suites/certification/Test_TC_G_2_2.yaml
@@ -186,8 +186,8 @@ tests:
[1651218084.427102][2526:2531] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1651218084.427203][2526:2531] CHIP:TOO: AddGroupResponse: {
- [1651218084.427241][2526:2531] CHIP:TOO: status: 0
- [1651218084.427264][2526:2531] CHIP:TOO: groupId: 1
+ [1651218084.427241][2526:2531] CHIP:TOO: Status: 0
+ [1651218084.427264][2526:2531] CHIP:TOO: GroupID: 1
[1651218084.427314][2526:2531] CHIP:TOO: }
disabled: true
@@ -222,8 +222,8 @@ tests:
[1653484028.897698][11275:11280] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653484028.897804][11275:11280] CHIP:TOO: AddGroupResponse: {
- [1653484028.897851][11275:11280] CHIP:TOO: status: 0
- [1653484028.897884][11275:11280] CHIP:TOO: groupId: 2
+ [1653484028.897851][11275:11280] CHIP:TOO: Status: 0
+ [1653484028.897884][11275:11280] CHIP:TOO: GroupID: 2
[1653484028.897917][11275:11280] CHIP:TOO: }
disabled: true
@@ -265,8 +265,8 @@ tests:
[1653484116.857523][11289:11294] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653484116.857675][11289:11294] CHIP:TOO: AddGroupResponse: {
- [1653484116.857739][11289:11294] CHIP:TOO: status: 0
- [1653484116.857787][11289:11294] CHIP:TOO: groupId: 3
+ [1653484116.857739][11289:11294] CHIP:TOO: Status: 0
+ [1653484116.857787][11289:11294] CHIP:TOO: GroupID: 3
[1653484116.857834][11289:11294] CHIP:TOO: }
disabled: true
@@ -315,8 +315,8 @@ tests:
[1653484187.170553][11306:11311] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653484187.170637][11306:11311] CHIP:TOO: AddGroupResponse: {
- [1653484187.170677][11306:11311] CHIP:TOO: status: 137
- [1653484187.170702][11306:11311] CHIP:TOO: groupId: 4
+ [1653484187.170677][11306:11311] CHIP:TOO: Status: 137
+ [1653484187.170702][11306:11311] CHIP:TOO: GroupID: 4
[1653484187.170727][11306:11311] CHIP:TOO: }
disabled: true
@@ -365,8 +365,8 @@ tests:
[1653484439.884144][11341:11346] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653484439.884258][11341:11346] CHIP:TOO: AddGroupResponse: {
- [1653484439.884310][11341:11346] CHIP:TOO: status: 135
- [1653484439.884346][11341:11346] CHIP:TOO: groupId: 0
+ [1653484439.884310][11341:11346] CHIP:TOO: Status: 135
+ [1653484439.884346][11341:11346] CHIP:TOO: GroupID: 0
[1653484439.884383][11341:11346] CHIP:TOO: }
disabled: true
@@ -381,8 +381,8 @@ tests:
[1658302176.951047][2747:2752] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
[1658302176.951103][2747:2752] CHIP:TOO: AddGroupResponse: {
- [1658302176.951140][2747:2752] CHIP:TOO: status: 126
- [1658302176.951166][2747:2752] CHIP:TOO: groupId: 5
+ [1658302176.951140][2747:2752] CHIP:TOO: Status: 126
+ [1658302176.951166][2747:2752] CHIP:TOO: GroupID: 5
[1658302176.951189][2747:2752] CHIP:TOO: }
disabled: true
@@ -397,9 +397,9 @@ tests:
1653484504.667714][11349:11354] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1653484504.667841][11349:11354] CHIP:TOO: ViewGroupResponse: {
- [1653484504.667927][11349:11354] CHIP:TOO: status: 0
- [1653484504.667974][11349:11354] CHIP:TOO: groupId: 1
- [1653484504.668018][11349:11354] CHIP:TOO: groupName: grp1
+ [1653484504.667927][11349:11354] CHIP:TOO: Status: 0
+ [1653484504.667974][11349:11354] CHIP:TOO: GroupID: 1
+ [1653484504.668018][11349:11354] CHIP:TOO: GroupName: grp1
[1653484504.668064][11349:11354] CHIP:TOO: }
disabled: true
@@ -414,9 +414,9 @@ tests:
[1653484611.595344][11412:11417] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1653484611.595454][11412:11417] CHIP:TOO: ViewGroupResponse: {
- [1653484611.595501][11412:11417] CHIP:TOO: status: 135
- [1653484611.595534][11412:11417] CHIP:TOO: groupId: 0
- [1653484611.595565][11412:11417] CHIP:TOO: groupName:
+ [1653484611.595501][11412:11417] CHIP:TOO: Status: 135
+ [1653484611.595534][11412:11417] CHIP:TOO: GroupID: 0
+ [1653484611.595565][11412:11417] CHIP:TOO: GroupName:
[1653484611.595599][11412:11417] CHIP:TOO: }
disabled: true
@@ -431,8 +431,8 @@ tests:
[1653484876.432744][11451:11456] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0003
[1653484876.432915][11451:11456] CHIP:TOO: RemoveGroupResponse: {
- [1653484876.432989][11451:11456] CHIP:TOO: status: 0
- [1653484876.433044][11451:11456] CHIP:TOO: groupId: 1
+ [1653484876.432989][11451:11456] CHIP:TOO: Status: 0
+ [1653484876.433044][11451:11456] CHIP:TOO: GroupID: 1
[1653484876.433098][11451:11456] CHIP:TOO: }
disabled: true
@@ -447,9 +447,9 @@ tests:
[1653484952.142387][11458:11463] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1653484952.142476][11458:11463] CHIP:TOO: ViewGroupResponse: {
- [1653484952.142516][11458:11463] CHIP:TOO: status: 139
- [1653484952.142541][11458:11463] CHIP:TOO: groupId: 1
- [1653484952.142566][11458:11463] CHIP:TOO: groupName:
+ [1653484952.142516][11458:11463] CHIP:TOO: Status: 139
+ [1653484952.142541][11458:11463] CHIP:TOO: GroupID: 1
+ [1653484952.142566][11458:11463] CHIP:TOO: GroupName:
[1653484952.142592][11458:11463] CHIP:TOO: }
disabled: true
@@ -489,8 +489,8 @@ tests:
[1653485045.328766][11473:11478] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0003
[1653485045.328896][11473:11478] CHIP:TOO: RemoveGroupResponse: {
- [1653485045.328954][11473:11478] CHIP:TOO: status: 135
- [1653485045.328994][11473:11478] CHIP:TOO: groupId: 0
+ [1653485045.328954][11473:11478] CHIP:TOO: Status: 135
+ [1653485045.328994][11473:11478] CHIP:TOO: GroupID: 0
[1653485045.329036][11473:11478] CHIP:TOO: }
disabled: true
@@ -505,8 +505,8 @@ tests:
[1653485126.672869][11483:11488] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0003
[1653485126.672969][11483:11488] CHIP:TOO: RemoveGroupResponse: {
- [1653485126.673015][11483:11488] CHIP:TOO: status: 139
- [1653485126.673045][11483:11488] CHIP:TOO: groupId: 52
+ [1653485126.673015][11483:11488] CHIP:TOO: Status: 139
+ [1653485126.673045][11483:11488] CHIP:TOO: GroupID: 52
[1653485126.673075][11483:11488] CHIP:TOO: }
disabled: true
@@ -559,9 +559,9 @@ tests:
[1653559917.259920][3227:3232] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1653559917.259993][3227:3232] CHIP:TOO: ViewGroupResponse: {
- [1653559917.260040][3227:3232] CHIP:TOO: status: 139
- [1653559917.260075][3227:3232] CHIP:TOO: groupId: 1
- [1653559917.260107][3227:3232] CHIP:TOO: groupName:
+ [1653559917.260040][3227:3232] CHIP:TOO: Status: 139
+ [1653559917.260075][3227:3232] CHIP:TOO: GroupID: 1
+ [1653559917.260107][3227:3232] CHIP:TOO: GroupName:
[1653559917.260138][3227:3232] CHIP:TOO: }
disabled: true
diff --git a/src/app/tests/suites/certification/Test_TC_G_2_3.yaml b/src/app/tests/suites/certification/Test_TC_G_2_3.yaml
index 899cf13ebeaf26..5b4fb88b13eff9 100644
--- a/src/app/tests/suites/certification/Test_TC_G_2_3.yaml
+++ b/src/app/tests/suites/certification/Test_TC_G_2_3.yaml
@@ -235,8 +235,8 @@ tests:
[1653552285.195099][2464:2469] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653552285.197783][2464:2469] CHIP:TOO: AddGroupResponse: {
- [1653552285.197849][2464:2469] CHIP:TOO: status: 0
- [1653552285.197877][2464:2469] CHIP:TOO: groupId: 2
+ [1653552285.197849][2464:2469] CHIP:TOO: Status: 0
+ [1653552285.197877][2464:2469] CHIP:TOO: GroupID: 2
[1653552285.197933][2464:2469] CHIP:TOO: }
disabled: true
@@ -269,8 +269,8 @@ tests:
[1653552417.870291][2482:2487] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653552417.870407][2482:2487] CHIP:TOO: AddGroupResponse: {
- [1653552417.870462][2482:2487] CHIP:TOO: status: 0
- [1653552417.870500][2482:2487] CHIP:TOO: groupId: 3
+ [1653552417.870462][2482:2487] CHIP:TOO: Status: 0
+ [1653552417.870500][2482:2487] CHIP:TOO: GroupID: 3
[1653552417.870539][2482:2487] CHIP:TOO: }
disabled: true
@@ -312,8 +312,8 @@ tests:
[1653552493.052711][2501:2506] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0002
[1653552493.052792][2501:2506] CHIP:TOO: GetGroupMembershipResponse: {
- [1653552493.052819][2501:2506] CHIP:TOO: capacity: null
- [1653552493.052870][2501:2506] CHIP:TOO: groupList: 2 entries
+ [1653552493.052819][2501:2506] CHIP:TOO: Capacity: null
+ [1653552493.052870][2501:2506] CHIP:TOO: GroupList: 2 entries
[1653552493.052922][2501:2506] CHIP:TOO: [1]: 2
[1653552493.052950][2501:2506] CHIP:TOO: [2]: 3
[1653552493.052978][2501:2506] CHIP:TOO: }
@@ -330,8 +330,8 @@ tests:
[1653294426.515523][3638:3643] CHIP:TOO: GetGroupMembershipResponse: {
- [1653294426.515571][3638:3643] CHIP:TOO: capacity: null
- [1653294426.515649][3638:3643] CHIP:TOO: groupList: 1 entries
+ [1653294426.515571][3638:3643] CHIP:TOO: Capacity: null
+ [1653294426.515649][3638:3643] CHIP:TOO: GroupList: 1 entries
[1653294426.515737][3638:3643] CHIP:TOO: [1]: 2
[1653294426.515916][3638:3643] CHIP:TOO: }
disabled: true
@@ -348,8 +348,8 @@ tests:
Verify "grouplist entries" on the TH(Chip-tool) Log:
[1653294490.030740][3646:3651] CHIP:TOO: GetGroupMembershipResponse: {
- [1653294490.030775][3646:3651] CHIP:TOO: capacity: null
- [1653294490.030838][3646:3651] CHIP:TOO: groupList: 2 entries
+ [1653294490.030775][3646:3651] CHIP:TOO: Capacity: null
+ [1653294490.030838][3646:3651] CHIP:TOO: GroupList: 2 entries
[1653294490.030907][3646:3651] CHIP:TOO: [1]: 2
[1653294490.030943][3646:3651] CHIP:TOO: [2]: 3
[1653294490.030979][3646:3651] CHIP:TOO: }
diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml
index c43a0ceacc8e61..970d252bbc6029 100644
--- a/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml
+++ b/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml
@@ -64,7 +64,7 @@ tests:
PICS: OO.S.C40.Rsp
arguments:
values:
- - name: "EffectId"
+ - name: "EffectIdentifier"
value: 0
- name: "EffectVariant"
value: 0
@@ -122,7 +122,7 @@ tests:
PICS: OO.S.C40.Rsp
arguments:
values:
- - name: "EffectId"
+ - name: "EffectIdentifier"
value: 0
- name: "EffectVariant"
value: 0
@@ -180,7 +180,7 @@ tests:
PICS: OO.S.C40.Rsp
arguments:
values:
- - name: "EffectId"
+ - name: "EffectIdentifier"
value: 1
- name: "EffectVariant"
value: 0
@@ -416,7 +416,7 @@ tests:
PICS: OO.S.C40.Rsp
arguments:
values:
- - name: "EffectId"
+ - name: "EffectIdentifier"
value: 0
- name: "EffectVariant"
value: 0
diff --git a/src/app/tests/suites/certification/Test_TC_SC_5_1.yaml b/src/app/tests/suites/certification/Test_TC_SC_5_1.yaml
index 91fcdcf8911002..ab5035d6a97d64 100644
--- a/src/app/tests/suites/certification/Test_TC_SC_5_1.yaml
+++ b/src/app/tests/suites/certification/Test_TC_SC_5_1.yaml
@@ -126,8 +126,8 @@ tests:
[1651218084.427102][2526:2531] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1651218084.427203][2526:2531] CHIP:TOO: AddGroupResponse: {
- [1651218084.427241][2526:2531] CHIP:TOO: status: 0
- [1651218084.427264][2526:2531] CHIP:TOO: groupId: 1
+ [1651218084.427241][2526:2531] CHIP:TOO: Status: 0
+ [1651218084.427264][2526:2531] CHIP:TOO: GroupID: 1
[1651218084.427314][2526:2531] CHIP:TOO: }
disabled: true
@@ -141,8 +141,8 @@ tests:
[1651218576.149152][2635:2640] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1651218576.149231][2635:2640] CHIP:TOO: ViewGroupResponse: {
- [1651218576.149265][2635:2640] CHIP:TOO: status: 0
- [1651218576.149289][2635:2640] CHIP:TOO: groupId: 1
+ [1651218576.149265][2635:2640] CHIP:TOO: Status: 0
+ [1651218576.149289][2635:2640] CHIP:TOO: GroupID: 1
[1651218576.149311][2635:2640] CHIP:TOO: groupName: grp1
[1651218576.149335][2635:2640] CHIP:TOO: }
disabled: true
@@ -158,8 +158,8 @@ tests:
[1651218576.149152][2635:2640] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1651218576.149231][2635:2640] CHIP:TOO: ViewGroupResponse: {
- [1651218576.149265][2635:2640] CHIP:TOO: status: 0
- [1651218576.149289][2635:2640] CHIP:TOO: groupId: 1
+ [1651218576.149265][2635:2640] CHIP:TOO: Status: 0
+ [1651218576.149289][2635:2640] CHIP:TOO: GroupID: 1
[1651218576.149311][2635:2640] CHIP:TOO: groupName: grp1
[1651218576.149335][2635:2640] CHIP:TOO: }
disabled: true
diff --git a/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml b/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml
index b3d5cf344862ad..d1fc484a21ec0b 100644
--- a/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml
+++ b/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml
@@ -44,7 +44,7 @@ tests:
verify on chip-tool logs:
- [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries
+ [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOTAProviders: 1 entries
[1651277342848] [26860:35431852] CHIP: [TOO] [1]: {
[1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 1
[1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0
@@ -72,7 +72,7 @@ tests:
verify on chip-tool logs:
- [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries
+ [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOTAProviders: 1 entries
[1651277342848] [26860:35431852] CHIP: [TOO] [1]: {
[1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 1
[1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0
@@ -83,7 +83,7 @@ tests:
verify on chip-tool logs:
- [1651277543492] [26864:35434761] CHIP: [TOO] DefaultOtaProviders: 1 entries
+ [1651277543492] [26864:35434761] CHIP: [TOO] DefaultOTAProviders: 1 entries
[1651277543492] [26864:35434761] CHIP: [TOO] [1]: {
[1651277543492] [26864:35434761] CHIP: [TOO] ProviderNodeID: 5
[1651277543492] [26864:35434761] CHIP: [TOO] Endpoint: 0
@@ -108,7 +108,7 @@ tests:
verify on chip-tool logs:
- [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries
+ [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOTAProviders: 1 entries
[1651277342848] [26860:35431852] CHIP: [TOO] [1]: {
[1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 10
[1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0
@@ -119,7 +119,7 @@ tests:
verify on chip-tool logs:
- [1651277543492] [26864:35434761] CHIP: [TOO] DefaultOtaProviders: 1 entries
+ [1651277543492] [26864:35434761] CHIP: [TOO] DefaultOTAProviders: 1 entries
[1651277543492] [26864:35434761] CHIP: [TOO] [1]: {
[1651277543492] [26864:35434761] CHIP: [TOO] ProviderNodeID: 5
[1651277543492] [26864:35434761] CHIP: [TOO] Endpoint: 0
@@ -144,7 +144,7 @@ tests:
verify on chip-tool logs:
- [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries
+ [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOTAProviders: 1 entries
[1651277342848] [26860:35431852] CHIP: [TOO] [1]: {
[1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 10
[1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0
@@ -155,7 +155,7 @@ tests:
verify on chip-tool logs:
- [1651280268033] [27804:35481732] CHIP: [TOO] DefaultOtaProviders: 0 entries
+ [1651280268033] [27804:35481732] CHIP: [TOO] DefaultOTAProviders: 0 entries
disabled: true
- label:
diff --git a/src/app/tests/suites/commands/interaction_model/InteractionModel.cpp b/src/app/tests/suites/commands/interaction_model/InteractionModel.cpp
index fdd6dc6e9ed536..ad4bf1603a258d 100644
--- a/src/app/tests/suites/commands/interaction_model/InteractionModel.cpp
+++ b/src/app/tests/suites/commands/interaction_model/InteractionModel.cpp
@@ -37,8 +37,11 @@ CHIP_ERROR InteractionModel::ReadAttribute(const char * identity, EndpointId end
dataVersions.Value().push_back(dataVersion.Value());
}
- return InteractionModelReports::ReadAttribute(device, endpointIds, clusterIds, attributeIds, Optional(fabricFiltered),
- dataVersions);
+ InteractionModelReports::ResetOptions();
+ InteractionModelReports::SetFabricFiltered(fabricFiltered);
+ InteractionModelReports::SetDataVersions(dataVersions);
+
+ return InteractionModelReports::ReadAttribute(device, endpointIds, clusterIds, attributeIds);
}
CHIP_ERROR InteractionModel::ReadEvent(const char * identity, EndpointId endpointId, ClusterId clusterId, EventId eventId,
@@ -50,8 +53,12 @@ CHIP_ERROR InteractionModel::ReadEvent(const char * identity, EndpointId endpoin
std::vector endpointIds = { endpointId };
std::vector clusterIds = { clusterId };
std::vector eventIds = { eventId };
- return InteractionModelReports::ReadEvent(device, endpointIds, clusterIds, eventIds, Optional(fabricFiltered),
- eventNumber);
+
+ InteractionModelReports::ResetOptions();
+ InteractionModelReports::SetFabricFiltered(fabricFiltered);
+ InteractionModelReports::SetEventNumber(eventNumber);
+
+ return InteractionModelReports::ReadEvent(device, endpointIds, clusterIds, eventIds);
}
CHIP_ERROR InteractionModel::SubscribeAttribute(const char * identity, EndpointId endpointId, ClusterId clusterId,
@@ -72,9 +79,15 @@ CHIP_ERROR InteractionModel::SubscribeAttribute(const char * identity, EndpointI
dataVersions.Value().push_back(dataVersion.Value());
}
- return InteractionModelReports::SubscribeAttribute(device, endpointIds, clusterIds, attributeIds, minInterval, maxInterval,
- Optional(fabricFiltered), dataVersions, keepSubscriptions,
- autoResubscribe);
+ InteractionModelReports::ResetOptions();
+ InteractionModelReports::SetMinInterval(minInterval);
+ InteractionModelReports::SetMaxInterval(maxInterval);
+ InteractionModelReports::SetFabricFiltered(fabricFiltered);
+ InteractionModelReports::SetDataVersions(dataVersions);
+ InteractionModelReports::SetKeepSubscriptions(keepSubscriptions);
+ InteractionModelReports::SetAutoResubscribe(autoResubscribe);
+
+ return InteractionModelReports::SubscribeAttribute(device, endpointIds, clusterIds, attributeIds);
}
CHIP_ERROR InteractionModel::SubscribeEvent(const char * identity, EndpointId endpointId, ClusterId clusterId, EventId eventId,
@@ -88,9 +101,16 @@ CHIP_ERROR InteractionModel::SubscribeEvent(const char * identity, EndpointId en
std::vector endpointIds = { endpointId };
std::vector clusterIds = { clusterId };
std::vector eventIds = { eventId };
- return InteractionModelReports::SubscribeEvent(device, endpointIds, clusterIds, eventIds, minInterval, maxInterval,
- Optional(fabricFiltered), eventNumber, keepSubscriptions, NullOptional,
- autoResubscribe);
+
+ InteractionModelReports::ResetOptions();
+ SetMinInterval(minInterval);
+ SetMaxInterval(maxInterval);
+ SetFabricFiltered(fabricFiltered);
+ SetEventNumber(eventNumber);
+ SetKeepSubscriptions(keepSubscriptions);
+ SetAutoResubscribe(autoResubscribe);
+
+ return InteractionModelReports::SubscribeEvent(device, endpointIds, clusterIds, eventIds);
}
void InteractionModel::Shutdown()
@@ -281,15 +301,11 @@ CHIP_ERROR InteractionModelConfig::GetAttributePaths(std::vector end
CHIP_ERROR InteractionModelReports::ReportAttribute(DeviceProxy * device, std::vector endpointIds,
std::vector clusterIds, std::vector attributeIds,
- ReadClient::InteractionType interactionType, uint16_t minInterval,
- uint16_t maxInterval, const Optional & fabricFiltered,
- const Optional> & dataVersions,
- const Optional & keepSubscriptions,
- const Optional & autoResubscribe)
+ ReadClient::InteractionType interactionType)
{
InteractionModelConfig::AttributePathsConfig pathsConfig;
ReturnErrorOnFailure(
- InteractionModelConfig::GetAttributePaths(endpointIds, clusterIds, attributeIds, dataVersions, pathsConfig));
+ InteractionModelConfig::GetAttributePaths(endpointIds, clusterIds, attributeIds, mDataVersions, pathsConfig));
ChipLogProgress(chipTool,
"Sending %sAttribute to:", interactionType == ReadClient::InteractionType::Subscribe ? "Subscribe" : "Read");
@@ -300,12 +316,12 @@ CHIP_ERROR InteractionModelReports::ReportAttribute(DeviceProxy * device, std::v
params.mpAttributePathParamsList = pathsConfig.attributePathParams.get();
params.mAttributePathParamsListSize = pathsConfig.count;
- if (fabricFiltered.HasValue())
+ if (mFabricFiltered.HasValue())
{
- params.mIsFabricFiltered = fabricFiltered.Value();
+ params.mIsFabricFiltered = mFabricFiltered.Value();
}
- if (dataVersions.HasValue())
+ if (mDataVersions.HasValue())
{
params.mpDataVersionFilterList = pathsConfig.dataVersionFilter.get();
params.mDataVersionFilterListSize = pathsConfig.count;
@@ -313,11 +329,11 @@ CHIP_ERROR InteractionModelReports::ReportAttribute(DeviceProxy * device, std::v
if (interactionType == ReadClient::InteractionType::Subscribe)
{
- params.mMinIntervalFloorSeconds = minInterval;
- params.mMaxIntervalCeilingSeconds = maxInterval;
- if (keepSubscriptions.HasValue())
+ params.mMinIntervalFloorSeconds = mMinInterval;
+ params.mMaxIntervalCeilingSeconds = mMaxInterval;
+ if (mKeepSubscriptions.HasValue())
{
- params.mKeepSubscriptions = keepSubscriptions.Value();
+ params.mKeepSubscriptions = mKeepSubscriptions.Value();
}
}
@@ -327,10 +343,10 @@ CHIP_ERROR InteractionModelReports::ReportAttribute(DeviceProxy * device, std::v
{
ReturnErrorOnFailure(client->SendRequest(params));
}
- else if (autoResubscribe.ValueOr(false))
+ else if (mAutoResubscribe.ValueOr(false))
{
pathsConfig.attributePathParams.release();
- if (dataVersions.HasValue())
+ if (mDataVersions.HasValue())
{
pathsConfig.dataVersionFilter.release();
}
@@ -348,16 +364,12 @@ CHIP_ERROR InteractionModelReports::ReportAttribute(DeviceProxy * device, std::v
CHIP_ERROR InteractionModelReports::ReportEvent(DeviceProxy * device, std::vector endpointIds,
std::vector clusterIds, std::vector eventIds,
- ReadClient::InteractionType interactionType, uint16_t minInterval,
- uint16_t maxInterval, const Optional & fabricFiltered,
- const Optional & eventNumber, const Optional & keepSubscriptions,
- const Optional> & isUrgents,
- const Optional & autoResubscribe)
+ chip::app::ReadClient::InteractionType interactionType)
{
const size_t clusterCount = clusterIds.size();
const size_t eventCount = eventIds.size();
const size_t endpointCount = endpointIds.size();
- const size_t isUrgentCount = isUrgents.HasValue() ? isUrgents.Value().size() : 0;
+ const size_t isUrgentCount = mIsUrgents.HasValue() ? mIsUrgents.Value().size() : 0;
VerifyOrReturnError(clusterCount > 0 && clusterCount <= kMaxAllowedPaths, CHIP_ERROR_INVALID_ARGUMENT);
VerifyOrReturnError(eventCount > 0 && eventCount <= kMaxAllowedPaths, CHIP_ERROR_INVALID_ARGUMENT);
@@ -426,37 +438,37 @@ CHIP_ERROR InteractionModelReports::ReportEvent(DeviceProxy * device, std::vecto
eventPathParams[i].mEndpointId = endpointId;
}
- if (isUrgents.HasValue() && isUrgents.Value().size() > i)
+ if (mIsUrgents.HasValue() && mIsUrgents.Value().size() > i)
{
- eventPathParams[i].mIsUrgentEvent = isUrgents.Value().at(i);
+ eventPathParams[i].mIsUrgentEvent = mIsUrgents.Value().at(i);
}
}
ReadPrepareParams params(device->GetSecureSession().Value());
params.mpEventPathParamsList = eventPathParams.get();
params.mEventPathParamsListSize = pathsCount;
- params.mEventNumber = eventNumber;
+ params.mEventNumber = mEventNumber;
params.mpAttributePathParamsList = nullptr;
params.mAttributePathParamsListSize = 0;
- if (fabricFiltered.HasValue())
+ if (mFabricFiltered.HasValue())
{
- params.mIsFabricFiltered = fabricFiltered.Value();
+ params.mIsFabricFiltered = mFabricFiltered.Value();
}
if (interactionType == ReadClient::InteractionType::Subscribe)
{
- params.mMinIntervalFloorSeconds = minInterval;
- params.mMaxIntervalCeilingSeconds = maxInterval;
- if (keepSubscriptions.HasValue())
+ params.mMinIntervalFloorSeconds = mMinInterval;
+ params.mMaxIntervalCeilingSeconds = mMaxInterval;
+ if (mKeepSubscriptions.HasValue())
{
- params.mKeepSubscriptions = keepSubscriptions.Value();
+ params.mKeepSubscriptions = mKeepSubscriptions.Value();
}
}
auto client = std::make_unique(InteractionModelEngine::GetInstance(), device->GetExchangeManager(),
mBufferedReadAdapter, interactionType);
- if (autoResubscribe.ValueOr(false))
+ if (mAutoResubscribe.ValueOr(false))
{
eventPathParams.release();
ReturnErrorOnFailure(client->SendAutoResubscribeRequest(std::move(params)));
@@ -479,11 +491,7 @@ void InteractionModelReports::CleanupReadClient(ReadClient * aReadClient)
CHIP_ERROR InteractionModelReports::ReportAll(chip::DeviceProxy * device, std::vector endpointIds,
std::vector clusterIds, std::vector attributeIds,
std::vector eventIds,
- chip::app::ReadClient::InteractionType interactionType, uint16_t minInterval,
- uint16_t maxInterval, const chip::Optional & fabricFiltered,
- const chip::Optional> & dataVersions,
- const chip::Optional & eventNumber,
- const chip::Optional & keepSubscriptions)
+ chip::app::ReadClient::InteractionType interactionType)
{
const size_t endpointCount = endpointIds.size();
const size_t clusterCount = clusterIds.size();
@@ -578,22 +586,22 @@ CHIP_ERROR InteractionModelReports::ReportAll(chip::DeviceProxy * device, std::v
ReadPrepareParams params(device->GetSecureSession().Value());
params.mpEventPathParamsList = eventPathParams;
params.mEventPathParamsListSize = eventCount;
- params.mEventNumber = eventNumber;
+ params.mEventNumber = mEventNumber;
params.mpAttributePathParamsList = attributePathParams;
params.mAttributePathParamsListSize = attributeCount;
- if (fabricFiltered.HasValue())
+ if (mFabricFiltered.HasValue())
{
- params.mIsFabricFiltered = fabricFiltered.Value();
+ params.mIsFabricFiltered = mFabricFiltered.Value();
}
if (interactionType == ReadClient::InteractionType::Subscribe)
{
- params.mMinIntervalFloorSeconds = minInterval;
- params.mMaxIntervalCeilingSeconds = maxInterval;
- if (keepSubscriptions.HasValue())
+ params.mMinIntervalFloorSeconds = mMinInterval;
+ params.mMaxIntervalCeilingSeconds = mMaxInterval;
+ if (mKeepSubscriptions.HasValue())
{
- params.mKeepSubscriptions = keepSubscriptions.Value();
+ params.mKeepSubscriptions = mKeepSubscriptions.Value();
}
}
diff --git a/src/app/tests/suites/commands/interaction_model/InteractionModel.h b/src/app/tests/suites/commands/interaction_model/InteractionModel.h
index c16318070a68ae..83a0d6fff769b6 100644
--- a/src/app/tests/suites/commands/interaction_model/InteractionModel.h
+++ b/src/app/tests/suites/commands/interaction_model/InteractionModel.h
@@ -49,91 +49,59 @@ class InteractionModelConfig
class InteractionModelReports
{
public:
- InteractionModelReports(chip::app::ReadClient::Callback * callback) : mBufferedReadAdapter(*callback) {}
+ InteractionModelReports(chip::app::ReadClient::Callback * callback) : mBufferedReadAdapter(*callback) { ResetOptions(); }
protected:
CHIP_ERROR ReadAttribute(chip::DeviceProxy * device, std::vector endpointIds,
- std::vector clusterIds, std::vector attributeIds,
- const chip::Optional & fabricFiltered = chip::Optional(true),
- const chip::Optional> & dataVersions = chip::NullOptional)
+ std::vector clusterIds, std::vector attributeIds)
{
- return ReportAttribute(device, endpointIds, clusterIds, attributeIds, chip::app::ReadClient::InteractionType::Read, 0, 0,
- fabricFiltered, dataVersions, chip::NullOptional, chip::NullOptional);
+ return ReportAttribute(device, endpointIds, clusterIds, attributeIds, chip::app::ReadClient::InteractionType::Read);
}
CHIP_ERROR SubscribeAttribute(chip::DeviceProxy * device, std::vector endpointIds,
- std::vector clusterIds, std::vector attributeIds,
- uint16_t minInterval, uint16_t maxInterval, const chip::Optional & fabricFiltered,
- const chip::Optional> & dataVersions,
- const chip::Optional & keepSubscriptions, const chip::Optional & autoResubscribe)
+ std::vector clusterIds, std::vector attributeIds)
{
- return ReportAttribute(device, endpointIds, clusterIds, attributeIds, chip::app::ReadClient::InteractionType::Subscribe,
- minInterval, maxInterval, fabricFiltered, dataVersions, keepSubscriptions, autoResubscribe);
+ return ReportAttribute(device, endpointIds, clusterIds, attributeIds, chip::app::ReadClient::InteractionType::Subscribe);
}
CHIP_ERROR ReportAttribute(chip::DeviceProxy * device, std::vector endpointIds,
std::vector clusterIds, std::vector attributeIds,
- chip::app::ReadClient::InteractionType interactionType, uint16_t minInterval, uint16_t maxInterval,
- const chip::Optional & fabricFiltered,
- const chip::Optional> & dataVersions,
- const chip::Optional & keepSubscriptions, const chip::Optional & autoResubscribe);
+ chip::app::ReadClient::InteractionType interactionType);
CHIP_ERROR ReadEvent(chip::DeviceProxy * device, std::vector endpointIds,
- std::vector clusterIds, std::vector eventIds,
- const chip::Optional & fabricFiltered = chip::Optional(true),
- const chip::Optional & eventNumber = chip::NullOptional)
+ std::vector clusterIds, std::vector eventIds)
{
- return ReportEvent(device, endpointIds, clusterIds, eventIds, chip::app::ReadClient::InteractionType::Read, 0, 0,
- fabricFiltered, eventNumber, chip::NullOptional, chip::NullOptional, chip::NullOptional);
+ return ReportEvent(device, endpointIds, clusterIds, eventIds, chip::app::ReadClient::InteractionType::Read);
}
CHIP_ERROR SubscribeEvent(chip::DeviceProxy * device, std::vector endpointIds,
- std::vector clusterIds, std::vector eventIds, uint16_t minInterval,
- uint16_t maxInterval, const chip::Optional & fabricFiltered,
- const chip::Optional & eventNumber, const chip::Optional & keepSubscriptions,
- const chip::Optional> & isUrgents, const chip::Optional & autoResubscribe)
+ std::vector clusterIds, std::vector eventIds)
{
- return ReportEvent(device, endpointIds, clusterIds, eventIds, chip::app::ReadClient::InteractionType::Subscribe,
- minInterval, maxInterval, fabricFiltered, eventNumber, keepSubscriptions, isUrgents, autoResubscribe);
+ return ReportEvent(device, endpointIds, clusterIds, eventIds, chip::app::ReadClient::InteractionType::Subscribe);
}
CHIP_ERROR ReportEvent(chip::DeviceProxy * device, std::vector endpointIds,
std::vector clusterIds, std::vector eventIds,
- chip::app::ReadClient::InteractionType interactionType, uint16_t minInterval, uint16_t maxInterval,
- const chip::Optional & fabricFiltered, const chip::Optional & eventNumber,
- const chip::Optional & keepSubscriptions, const chip::Optional> & isUrgents,
- const chip::Optional & autoResubscribe);
+ chip::app::ReadClient::InteractionType interactionType);
CHIP_ERROR ReadAll(chip::DeviceProxy * device, std::vector endpointIds,
std::vector clusterIds, std::vector attributeIds,
- std::vector eventIds,
- const chip::Optional & fabricFiltered = chip::Optional(true),
- const chip::Optional> & dataVersions = chip::NullOptional,
- const chip::Optional & eventNumber = chip::NullOptional)
+ std::vector eventIds)
{
- return ReportAll(device, endpointIds, clusterIds, attributeIds, eventIds, chip::app::ReadClient::InteractionType::Read, 0,
- 0, fabricFiltered, dataVersions, eventNumber);
+ return ReportAll(device, endpointIds, clusterIds, attributeIds, eventIds, chip::app::ReadClient::InteractionType::Read);
}
CHIP_ERROR SubscribeAll(chip::DeviceProxy * device, std::vector endpointIds,
std::vector clusterIds, std::vector