diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b9336dc0fb3603..5834fa152089ba 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -118,12 +118,11 @@ jobs: uses: actions/checkout@v2 with: submodules: true - #- name: Initialize CodeQL - # if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }} - # uses: github/codeql-action/init@v1 - # with: - # languages: "cpp" - + - name: Initialize CodeQL + if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }} + uses: github/codeql-action/init@v1 + with: + languages: "cpp" - name: Bootstrap timeout-minutes: 10 run: scripts/build/gn_bootstrap.sh @@ -136,7 +135,7 @@ jobs: .environment/gn_out/.ninja_log .environment/pigweed-venv/*.log - name: Setup and Build Simulated Device - timeout-minutes: 5 + timeout-minutes: 20 run: | BUILD_TYPE=simulated GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false' @@ -144,7 +143,7 @@ jobs: CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS" scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE" - name: Setup Build, Run Build and Run Tests - timeout-minutes: 50 + timeout-minutes: 80 run: | for BUILD_TYPE in fake gcc_release clang mbedtls; do case $BUILD_TYPE in @@ -188,15 +187,15 @@ jobs: # - name: Upload Code Coverage # if: ${{ contains('main', env.BUILD_TYPE) }} # run: bash <(curl -s https://codecov.io/bash) - # - name: Remove third_party binaries for CodeQL Analysis - # run: find out -type d -name "third_party" -exec rm -rf {} + - # - name: Remove dbus binaries for CodeQL Analysis - # run: find out -type d -name "dbus" -exec rm -rf {} + - # - name: Remove nrfxlib binaries for CodeQL Analysis - # run: find . -type d -name "nrfxlib" -exec rm -rf {} + - # - name: Perform CodeQL Analysis - # if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }} - # uses: github/codeql-action/analyze@v1 + - name: Remove third_party binaries for CodeQL Analysis + run: find out -type d -name "third_party" -exec rm -rf {} + + - name: Remove dbus binaries for CodeQL Analysis + run: find out -type d -name "dbus" -exec rm -rf {} + + - name: Remove nrfxlib binaries for CodeQL Analysis + run: find . -type d -name "nrfxlib" -exec rm -rf {} + + - name: Perform CodeQL Analysis + if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }} + uses: github/codeql-action/analyze@v1 build_linux_python_lib: name: Build on Linux (python_lib) timeout-minutes: 60 @@ -241,7 +240,7 @@ jobs: scripts/run_in_build_env.sh '(cd src/controller/python/test/unit_tests/ && python3 -m unittest -v)' build_darwin: name: Build on Darwin (clang, python_lib, simulated) - timeout-minutes: 90 + timeout-minutes: 120 runs-on: macos-latest if: github.actor != 'restyled-io[bot]' @@ -250,6 +249,11 @@ jobs: uses: actions/checkout@v2 with: submodules: true + - name: Initialize CodeQL + if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }} + uses: github/codeql-action/init@v1 + with: + languages: "cpp" - name: Setup Environment run: brew install openssl pkg-config - name: Try to ensure the directory for diagnostic log collection exists @@ -275,7 +279,7 @@ jobs: .environment/gn_out/.ninja_log .environment/pigweed-venv/*.log - name: Setup and Build Simulated Device - timeout-minutes: 5 + timeout-minutes: 20 run: | BUILD_TYPE=simulated GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false' @@ -283,7 +287,7 @@ jobs: CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS" scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE" - name: Setup Build, Run Build and Run Tests - timeout-minutes: 75 + timeout-minutes: 80 # Just go ahead and do the "all" build; on Darwin that's fairly # fast. If this ever becomes slow, we can think about ways to do # the examples-linux-standalone.yaml tests on darwin without too @@ -304,6 +308,9 @@ jobs: with: name: crash-log-darwin path: ~/Library/Logs/DiagnosticReports/ + - name: Perform CodeQL Analysis + if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }} + uses: github/codeql-action/analyze@v1 # TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227 # TODO https://github.com/project-chip/connectedhomeip/issues/1512 # - name: Run Code Coverage diff --git a/BUILD.gn b/BUILD.gn index 85f7dfc9dd2208..258ea4852ff27f 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -47,12 +47,15 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") { "$dir_pw_doctor/py", "$dir_pw_env_setup/py", "$dir_pw_hdlc/py", + "$dir_pw_log:protos.python", "$dir_pw_module/py", "$dir_pw_protobuf/py", "$dir_pw_protobuf_compiler/py", "$dir_pw_rpc/py", "$dir_pw_status/py", "$dir_pw_toolchain/py", + "$dir_pw_trace/py", + "$dir_pw_trace_tokenized/py", "$dir_pw_unit_test/py", "$dir_pw_watch/py", "integrations/mobly:chip_mobly", diff --git a/config/esp32/components/chip/CMakeLists.txt b/config/esp32/components/chip/CMakeLists.txt index 94153fa20085ac..2fcfd0a899cf58 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -80,9 +80,11 @@ if(CONFIG_ENABLE_PW_RPC) string(APPEND chip_gn_args "import(\"//build_overrides/pigweed.gni\")\n") chip_gn_arg_append("remove_default_configs" "[\"//third_party/connectedhomeip/third_party/pigweed/repo/pw_build:cpp17\"]") chip_gn_arg_append("chip_build_pw_rpc_lib" "true") + chip_gn_arg_append("chip_build_pw_trace_lib" "true") chip_gn_arg_append("pw_log_BACKEND" "\"//third_party/connectedhomeip/third_party/pigweed/repo/pw_log_basic\"") chip_gn_arg_append("pw_assert_BACKEND" "\"//third_party/connectedhomeip/third_party/pigweed/repo/pw_assert_log\"") chip_gn_arg_append("pw_sys_io_BACKEND" "\"//third_party/connectedhomeip/examples/platform/esp32/pw_sys_io:pw_sys_io_esp32\"") + chip_gn_arg_append("pw_trace_BACKEND" "\"//third_party/connectedhomeip/third_party/pigweed/repo/pw_trace_tokenized\"") chip_gn_arg_append("dir_pw_third_party_nanopb" "\"//third_party/connectedhomeip/third_party/nanopb/repo\"") chip_gn_arg_append("pw_build_LINK_DEPS" "[\"\$dir_pw_assert:impl\", \"\$dir_pw_log:impl\"]") endif() diff --git a/config/esp32/components/chip/component.mk b/config/esp32/components/chip/component.mk index 21339e3bc3f95c..6b8714b1db620e 100644 --- a/config/esp32/components/chip/component.mk +++ b/config/esp32/components/chip/component.mk @@ -140,6 +140,7 @@ endif echo "pw_log_BACKEND = \"//third_party/connectedhomeip/third_party/pigweed/repo/pw_log_basic\"" >> $(OUTPUT_DIR)/args.gn ;\ echo "pw_assert_BACKEND = \"//third_party/connectedhomeip/third_party/pigweed/repo/pw_assert_log\"" >> $(OUTPUT_DIR)/args.gn ;\ echo "pw_sys_io_BACKEND = \"//third_party/connectedhomeip/examples/platform/esp32/pw_sys_io:pw_sys_io_esp32\"" >> $(OUTPUT_DIR)/args.gn ;\ + echo "pw_trace_BACKEND = \"//third_party/connectedhomeip/third_party/pigweed/repo/pw_trace_tokenized\"" >> $(OUTPUT_DIR)/args.gn ;\ echo "dir_pw_third_party_nanopb = \"//third_party/connectedhomeip/third_party/nanopb/repo\"" >>$(OUTPUT_DIR)/args.gn ;\ fi if [[ "$(CONFIG_ENABLE_CHIP_SHELL)" = "y" ]]; then \ diff --git a/config/qpg/chip-gn/BUILD.gn b/config/qpg/chip-gn/BUILD.gn index 1db20a55b9f9fa..8c3a56ea45c53b 100644 --- a/config/qpg/chip-gn/BUILD.gn +++ b/config/qpg/chip-gn/BUILD.gn @@ -26,8 +26,6 @@ declare_args() { examples_plat_dir = "//examples/platform/qpg" qpg_sdk("sdk") { - sources = [ "//examples/platform/qpg/app/include/Service.h" ] - include_dirs = [ "//src/platform/qpg", "${examples_plat_dir}/project_include", diff --git a/examples/all-clusters-app/esp32/README.md b/examples/all-clusters-app/esp32/README.md index 15dce596e041e0..1f4ca1ca5a630e 100644 --- a/examples/all-clusters-app/esp32/README.md +++ b/examples/all-clusters-app/esp32/README.md @@ -195,7 +195,7 @@ remote device, as well as the network credentials to use. The command below uses the default values hard-coded into the debug versions of the ESP32 all-clusters-app to commission it onto a Wi-Fi network: - $ .out/debug/chip-tool pairing ble-wifi 12344321 ${SSID} ${PASSWORD} 20202021 3840 + $ ./out/debug/chip-tool pairing ble-wifi 12344321 ${SSID} ${PASSWORD} 20202021 3840 Parameters: @@ -210,7 +210,7 @@ Parameters: To use the Client to send Matter commands, run the built executable and pass it the target cluster name, the target command name as well as an endpoint id. - $ .out/debug/chip-tool onoff on 12344321 1 + $ ./out/debug/chip-tool onoff on 12344321 1 The client will send a single command packet and then exit. diff --git a/examples/bridge-app/esp32/README.md b/examples/bridge-app/esp32/README.md index 96e1a60f3ffb98..3e04f1bb30aad2 100644 --- a/examples/bridge-app/esp32/README.md +++ b/examples/bridge-app/esp32/README.md @@ -227,7 +227,7 @@ remote device, as well as the network credentials to use. The command below uses the default values hard-coded into the debug versions of the ESP32 all-clusters-app to commission it onto a Wi-Fi network: - $ .out/debug/chip-tool pairing ble-wifi 12344321 ${SSID} ${PASSWORD} 20202021 3840 + $ ./out/debug/chip-tool pairing ble-wifi 12344321 ${SSID} ${PASSWORD} 20202021 3840 Parameters: @@ -242,6 +242,6 @@ Parameters: To use the Client to send Matter commands, run the built executable and pass it the target cluster name, the target command name as well as an endpoint id. - $ .out/debug/chip-tool onoff on 12344321 1 + $ ./out/debug/chip-tool onoff on 12344321 2 The client will send a single command packet and then exit. diff --git a/examples/chip-tool/templates/partials/test_cluster.zapt b/examples/chip-tool/templates/partials/test_cluster.zapt index 360fa4656998a8..c8bfeaa1e72242 100644 --- a/examples/chip-tool/templates/partials/test_cluster.zapt +++ b/examples/chip-tool/templates/partials/test_cluster.zapt @@ -13,6 +13,23 @@ class {{filename}}: public TestCommand {{/chip_tests_config}} } + ~{{filename}}() + { + {{#chip_tests_items}} + {{#chip_tests_item_response_parameters}} + {{#if saveAs}} + {{#if (isString type)}} + if ({{saveAs}}Buffer != nullptr) + { + chip::Platform::MemoryFree({{saveAs}}Buffer); + {{saveAs}}Buffer = nullptr; + } + {{/if}} + {{/if}} + {{/chip_tests_item_response_parameters}} + {{/chip_tests_items}} + } + /////////// TestCommand Interface ///////// void NextTest() override { @@ -75,6 +92,7 @@ class {{filename}}: public TestCommand {{#chip_tests_items}} {{#chip_tests_item_response_parameters}} {{#if saveAs}} + {{~#if (isString type)}}{{#if (isOctetString type)}}uint8_t{{else}}char{{/if}} * {{saveAs}}Buffer = nullptr;{{/if~}} {{chipType}} {{saveAs}}; {{/if}} {{/chip_tests_item_response_parameters}} @@ -145,7 +163,7 @@ class {{filename}}: public TestCommand (static_cast<{{filename}} *>(context))->{{>successResponse}}({{#chip_tests_item_response_parameters}}{{#not_first}}, {{/not_first}}{{asLowerCamelCase name}}{{/chip_tests_item_response_parameters}}); } - {{#if isSubscribeAttribute}} + {{#if isSubscribe}} static void {{> staticSubscriptionEstablished}}({{> staticSubscriptionEstablishedArguments}}) { (static_cast<{{filename}} *>(context))->{{> subscriptionEstablished}}(); @@ -258,6 +276,10 @@ class {{filename}}: public TestCommand {{~#if isGroupCommand}}, {{>staticDoneResponse}}{{/if~}} )); {{> maybeWait }} + {{else if isReadEvent}} + ReturnErrorOnFailure(cluster.ReadEvent<{{zapTypeToDecodableClusterObjectType event ns=cluster isArgument=true}}>(this, {{>staticSuccessResponse}}, {{>staticFailureResponse}})); + {{else if isSubscribeEvent}} + ReturnErrorOnFailure(cluster.SubscribeEvent<{{zapTypeToDecodableClusterObjectType event ns=cluster isArgument=true}}>(this, {{>staticSuccessResponse}}, {{>staticFailureResponse}}, minIntervalArgument, maxIntervalArgument, {{>staticSubscriptionEstablished}})); {{else if isReadAttribute}} ReturnErrorOnFailure(cluster.ReadAttribute({{#chip_tests_item_parameters}}{{asLowerCamelCase name}}Argument, {{/chip_tests_item_parameters}}this, {{>staticSuccessResponse}}, {{>staticFailureResponse}})); {{else if isSubscribeAttribute}} @@ -288,7 +310,7 @@ class {{filename}}: public TestCommand {{/if}} } - {{#if isSubscribeAttribute}} + {{#if isSubscribe}} void {{>successResponse}}({{> subscribeResponseArguments attr=attributeObject}}) { {{#if response.error}} @@ -353,8 +375,18 @@ class {{filename}}: public TestCommand {{/if}} {{#if saveAs}} + {{#if (isString type)}} + if ({{saveAs}}Buffer != nullptr) + { + chip::Platform::MemoryFree({{saveAs}}Buffer); + } + {{saveAs}}Buffer = static_cast<{{#if (isOctetString type)}}uint8_t{{else}}char{{/if}} *>(chip::Platform::MemoryAlloc({{>item}}.size())); + memcpy({{saveAs}}Buffer, {{>item}}.data(), {{>item}}.size()); + {{saveAs}} = {{chipType}}({{saveAs}}Buffer, {{>item}}.size()); + {{else}} {{saveAs}} = {{>item}}; {{/if}} + {{/if}} {{/chip_tests_item_response_parameters}} {{#unless async}}NextTest();{{/unless}} {{/if}} diff --git a/examples/chip-tool/templates/partials/test_cluster_command_value.zapt b/examples/chip-tool/templates/partials/test_cluster_command_value.zapt index 53c59106296911..5cbf0d57c3915c 100644 --- a/examples/chip-tool/templates/partials/test_cluster_command_value.zapt +++ b/examples/chip-tool/templates/partials/test_cluster_command_value.zapt @@ -35,7 +35,10 @@ {{else}} {{container}} = - {{#if_chip_enum type}} + {{~#if (chip_tests_variables_has definedValue)~}} + {{definedValue}}; + {{else~}} + {{~#if_chip_enum type~}} static_cast<{{zapTypeToEncodableClusterObjectType type ns=ns}}>({{definedValue}}); {{else if (isCharString type)}} chip::Span("{{definedValue}}garbage: not in length on purpose", {{utf8StringLength definedValue}}); @@ -49,6 +52,8 @@ {{else}} {{asTypedLiteral definedValue type}}; {{/if_is_bitmap}} - {{/if_chip_enum}} + {{/if_chip_enum~}} + {{~/if~}} + {{/if_is_struct}} {{/if}} diff --git a/examples/chip-tool/templates/partials/test_cluster_value_equals.zapt b/examples/chip-tool/templates/partials/test_cluster_value_equals.zapt index 2f2d6b8a80415e..179e3cda27a993 100644 --- a/examples/chip-tool/templates/partials/test_cluster_value_equals.zapt +++ b/examples/chip-tool/templates/partials/test_cluster_value_equals.zapt @@ -17,6 +17,12 @@ {{/each}} VerifyOrReturn(CheckNoMoreListItems("{{label}}", iter_{{depth}}, {{expected.length}})); } +{{else if isEvent}} + {{#zcl_events_fields_by_event_name type}} + {{#if (hasProperty ../expected label)}} + {{>valueEquals label=(concat ../label "." (asLowerCamelCase label)) actual=(concat ../actual "." (asLowerCamelCase label)) expected=(lookup ../expected label) depth=(incrementDepth depth)}} + {{/if}} + {{/zcl_events_fields_by_event_name}} {{else}} {{#if_is_struct type}} {{! Iterate over the actual types in the struct, so we pick up the right @@ -31,7 +37,8 @@ than "global") that are not present in the struct ? }} {{else}} VerifyOrReturn(CheckValue{{#if (isString type)}}AsString{{/if}}("{{label}}", {{actual}}, - {{~#if (isOctetString type)}}chip::ByteSpan(chip::Uint8::from_const_char("{{octetStringEscapedForCLiteral expected}}"), {{expected.length}}) + {{~#if (chip_tests_variables_has expected)}}{{expected}} + {{else if (isOctetString type)}}chip::ByteSpan(chip::Uint8::from_const_char("{{octetStringEscapedForCLiteral expected}}"), {{expected.length}}) {{else if (isCharString type)}}chip::CharSpan("{{expected}}", {{utf8StringLength expected}}) {{else if (chip_tests_config_has expected)}}m{{asUpperCamelCase expected}}.HasValue() ? m{{asUpperCamelCase expected}}.Value() : {{asTypedLiteral (chip_tests_config_get_default_value expected) (chip_tests_config_get_type expected)}} {{else}}{{asTypedLiteral expected type}} diff --git a/examples/lighting-app/esp32/README.md b/examples/lighting-app/esp32/README.md index 99a847938d8d63..534e6ec3df0c16 100644 --- a/examples/lighting-app/esp32/README.md +++ b/examples/lighting-app/esp32/README.md @@ -9,6 +9,7 @@ This example demonstrates the Matter Lighting application on ESP platforms. - [Building the Example Application](#building-the-example-application) - [Commissioning over BLE using chip-tool](#commissioning-over-ble-using-chip-tool) - [Cluster Control](#cluster-control) +- [Steps to Try Lighting app OTA Requestor](#steps-to-try-lighting-app-ota-requestor) --- @@ -122,3 +123,41 @@ make sure the IDF_PATH has been exported(See the manual setup steps above). control the color attributes: $ ./out/debug/chip-tool colorcontrol move-to-hue-and-saturation 240 100 0 0 0 12345 1 + +# Steps to Try Lighting app OTA Requestor + +Before moving ahead, make sure your device is commissioned and running. + +- Build the Linux OTA Provider + +``` +scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug chip_config_network_layer_ble=false +``` + +- Run the Linux OTA Provider with OTA image. + +``` +./out/debug/chip-ota-provider-app -f hello-world.bin +``` + +hello-world.bin can be obtained from compiling the hello-world ESP-IDF example. + +- Provision the Linux OTA Provider using chip-tool + +``` +./out/debug/chip-tool pairing onnetwork 12345 20202021 +``` + +## Query for an OTA Image + +After commissioning is successful, press Enter in requestor device console and +type below query. + +``` +>matter ota query 1 12345 0 +``` + +## Apply update + +Once transfer is complete, reboot the device manually to boot from upgraded OTA +image. diff --git a/examples/lighting-app/esp32/main/CMakeLists.txt b/examples/lighting-app/esp32/main/CMakeLists.txt index fa544eadb52424..4413f141070491 100644 --- a/examples/lighting-app/esp32/main/CMakeLists.txt +++ b/examples/lighting-app/esp32/main/CMakeLists.txt @@ -48,13 +48,15 @@ idf_component_register(PRIV_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/occupancy-sensor-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/on-off-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/operational-credentials-server" + "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ota-requestor" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/power-source-configuration-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/software-diagnostics-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/switch-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/thread-network-diagnostics-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/user-label-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/wifi-network-diagnostics-server" - PRIV_REQUIRES chip QRCode bt led_strip) + "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ota-requestor" + PRIV_REQUIRES chip QRCode bt led_strip app_update) set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 17) target_compile_options(${COMPONENT_LIB} PRIVATE "-DLWIP_IPV6_SCOPES=0" "-DCHIP_HAVE_CONFIG_H") diff --git a/examples/lighting-app/esp32/main/main.cpp b/examples/lighting-app/esp32/main/main.cpp index 5a703183850757..b26a2fa6afd2e6 100644 --- a/examples/lighting-app/esp32/main/main.cpp +++ b/examples/lighting-app/esp32/main/main.cpp @@ -26,22 +26,46 @@ #include "freertos/task.h" #include "nvs_flash.h" #include "shell_extension/launch.h" +#include +#include #include #include #include #include +#include +#include using namespace ::chip; using namespace ::chip::Credentials; using namespace ::chip::DeviceManager; using namespace ::chip::DeviceLayer; +#if CONFIG_ENABLE_OTA_REQUESTOR +OTARequestor gRequestorCore; +GenericOTARequestorDriver gRequestorUser; +BDXDownloader gDownloader; +OTAImageProcessorImpl gImageProcessor; +#endif + LEDWidget AppLED; static const char * TAG = "light-app"; static DeviceCallbacks EchoCallbacks; +static void InitOTARequestor(void) +{ +#if CONFIG_ENABLE_OTA_REQUESTOR + SetRequestorInstance(&gRequestorCore); + gRequestorCore.SetServerInstance(&Server::GetInstance()); + gRequestorCore.SetOtaRequestorDriver(&gRequestorUser); + gImageProcessor.SetOTADownloader(&gDownloader); + gDownloader.SetImageProcessorDelegate(&gImageProcessor); + gRequestorUser.Init(&gRequestorCore, &gImageProcessor); + gRequestorCore.SetBDXDownloader(&gDownloader); +#endif +} + static void InitServer(intptr_t context) { // Print QR Code URL @@ -82,5 +106,7 @@ extern "C" void app_main() AppLED.Init(); + InitOTARequestor(); + chip::DeviceLayer::PlatformMgr().ScheduleWork(InitServer, reinterpret_cast(nullptr)); } diff --git a/examples/lighting-app/esp32/partitions.csv b/examples/lighting-app/esp32/partitions.csv index b338ff11a11589..9c801081f71c04 100644 --- a/examples/lighting-app/esp32/partitions.csv +++ b/examples/lighting-app/esp32/partitions.csv @@ -1,6 +1,7 @@ # Name, Type, SubType, Offset, Size, Flags # Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap nvs, data, nvs, , 0x6000, +otadata, data, ota, , 0x2000, phy_init, data, phy, , 0x1000, -# Factory partition size about 1.9MB -factory, app, factory, , 1945K, +ota_0, app, ota_0, , 1500K, +ota_1, app, ota_1, , 1500K, diff --git a/examples/lighting-app/esp32/sdkconfig.defaults b/examples/lighting-app/esp32/sdkconfig.defaults index 85e84a2001e385..23a3766c340c04 100644 --- a/examples/lighting-app/esp32/sdkconfig.defaults +++ b/examples/lighting-app/esp32/sdkconfig.defaults @@ -39,3 +39,7 @@ CONFIG_PARTITION_TABLE_FILENAME="partitions.csv" #enable lwIP route hooks CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT=y CONFIG_LWIP_HOOK_ND6_GET_GW_DEFAULT=y + +# Serial Flasher config +CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y +CONFIG_ESPTOOLPY_FLASHSIZE="4MB" diff --git a/examples/lighting-app/lighting-common/lighting-app.zap b/examples/lighting-app/lighting-common/lighting-app.zap index 1ba6d25d72e9d9..0fdfa137b28bc5 100644 --- a/examples/lighting-app/lighting-common/lighting-app.zap +++ b/examples/lighting-app/lighting-common/lighting-app.zap @@ -1305,14 +1305,14 @@ "code": 65533, "mfgCode": null, "side": "client", - "included": 0, + "included": 1, "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, + "defaultValue": "0x0001", + "reportable": 1, + "minInterval": 0, + "maxInterval": 65344, "reportableChange": 0 } ] @@ -1342,7 +1342,204 @@ "outgoing": 0 } ], - "attributes": [] + "attributes": [ + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "included": 0, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 0, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "FeatureMap", + "code": 65532, + "mfgCode": null, + "side": "server", + "included": 0, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 0, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "ClusterRevision", + "code": 65533, + "mfgCode": null, + "side": "server", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0x0001", + "reportable": 1, + "minInterval": 0, + "maxInterval": 65344, + "reportableChange": 0 + } + ] + }, + { + "name": "OTA Software Update Requestor", + "code": 42, + "mfgCode": null, + "define": "OTA_REQUESTOR_CLUSTER", + "side": "client", + "enabled": 0, + "commands": [ + { + "name": "AnnounceOtaProvider", + "code": 0, + "mfgCode": null, + "source": "client", + "incoming": 1, + "outgoing": 0 + } + ], + "attributes": [ + { + "name": "ClusterRevision", + "code": 65533, + "mfgCode": null, + "side": "client", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "1", + "reportable": 1, + "minInterval": 0, + "maxInterval": 65344, + "reportableChange": 0 + } + ] + }, + { + "name": "OTA Software Update Requestor", + "code": 42, + "mfgCode": null, + "define": "OTA_REQUESTOR_CLUSTER", + "side": "server", + "enabled": 1, + "commands": [], + "attributes": [ + { + "name": "DefaultOtaProviders", + "code": 0, + "mfgCode": null, + "side": "server", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "UpdatePossible", + "code": 1, + "mfgCode": null, + "side": "server", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "1", + "reportable": 1, + "minInterval": 0, + "maxInterval": 65344, + "reportableChange": 0 + }, + { + "name": "UpdateState", + "code": 2, + "mfgCode": null, + "side": "server", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 1, + "minInterval": 0, + "maxInterval": 65344, + "reportableChange": 0 + }, + { + "name": "UpdateStateProgress", + "code": 3, + "mfgCode": null, + "side": "server", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "included": 0, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 0, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "FeatureMap", + "code": 65532, + "mfgCode": null, + "side": "server", + "included": 0, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 0, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "ClusterRevision", + "code": 65533, + "mfgCode": null, + "side": "server", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "1", + "reportable": 1, + "minInterval": 0, + "maxInterval": 65344, + "reportableChange": 0 + } + ] }, { "name": "Localization Configuration", diff --git a/examples/lighting-app/mbed/CMakeLists.txt b/examples/lighting-app/mbed/CMakeLists.txt index f623512804b86a..5a4fdf42a2d176 100644 --- a/examples/lighting-app/mbed/CMakeLists.txt +++ b/examples/lighting-app/mbed/CMakeLists.txt @@ -42,6 +42,7 @@ target_include_directories(${APP_TARGET} PRIVATE ${CHIP_ROOT}/third_party/nlio/repo/include ) +# TODO - re-use chip_data_model.cmake to add cluster implementations. target_sources(${APP_TARGET} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/main/AppTask.cpp ${CMAKE_CURRENT_SOURCE_DIR}/main/LightingManager.cpp @@ -95,6 +96,9 @@ target_sources(${APP_TARGET} PRIVATE ${CHIP_ROOT}/src/app/clusters/occupancy-sensor-server/occupancy-sensor-server.cpp ${CHIP_ROOT}/src/app/clusters/network-commissioning-old/network-commissioning-ember.cpp ${CHIP_ROOT}/src/app/clusters/network-commissioning-old/network-commissioning-old.cpp + ${CHIP_ROOT}/src/app/clusters/ota-requestor/ota-requestor-server.cpp + ${CHIP_ROOT}/src/app/clusters/ota-requestor/BDXDownloader.cpp + ${CHIP_ROOT}/src/app/clusters/ota-requestor/OTARequestor.cpp ) target_link_libraries(${APP_TARGET} mbed-os-posix-socket mbed-os mbed-ble mbed-events mbed-netsocket mbed-storage mbed-storage-kv-global-api mbed-mbedtls mbed-emac chip) diff --git a/examples/lighting-app/qpg/BUILD.gn b/examples/lighting-app/qpg/BUILD.gn index b19eec5b3cc5f9..428931ffcd2cdc 100644 --- a/examples/lighting-app/qpg/BUILD.gn +++ b/examples/lighting-app/qpg/BUILD.gn @@ -27,10 +27,7 @@ qpg_project_dir = "${chip_root}/examples/lighting-app/qpg" examples_plat_dir = "${chip_root}/examples/platform/qpg" qpg_sdk("sdk") { - sources = [ - "${examples_plat_dir}/app/include/Service.h", - "${examples_plat_dir}/project_include/CHIPProjectConfig.h", - ] + sources = [ "${examples_plat_dir}/project_include/CHIPProjectConfig.h" ] include_dirs = [ "${chip_root}/src/platform/qpg", @@ -41,9 +38,12 @@ qpg_sdk("sdk") { qpg_executable("lighting_app") { output_name = "chip-${qpg_target_ic}-lighting-example.out" + include_dirs = [] + sources = [ "${chip_root}/examples/lighting-app/lighting-common/color_format/color_format.cpp", "${examples_plat_dir}/app/main.cpp", + "${examples_plat_dir}/ota/ota.cpp", "src/AppTask.cpp", "src/LightingManager.cpp", "src/ZclCallbacks.cpp", @@ -75,7 +75,7 @@ qpg_executable("lighting_app") { include_dirs = [ "${qpg_project_dir}/include/", "${examples_plat_dir}", - "${examples_plat_dir}/app/include", + "${examples_plat_dir}/ota", "${chip_root}/examples/lighting-app/lighting-common/color_format", ] diff --git a/examples/lighting-app/qpg/args.gni b/examples/lighting-app/qpg/args.gni index 8a90e0c6e66dbc..8f05dc6ace9362 100644 --- a/examples/lighting-app/qpg/args.gni +++ b/examples/lighting-app/qpg/args.gni @@ -16,3 +16,7 @@ import("//build_overrides/chip.gni") import("${chip_root}/examples/platform/qpg/args.gni") qpg_sdk_target = get_label_info(":sdk", "label_no_toolchain") + +declare_args() { + chip_enable_ota_requestor = true +} diff --git a/examples/lighting-app/qpg/include/AppTask.h b/examples/lighting-app/qpg/include/AppTask.h index b4f9e2fe86fb86..edc33a5f88a0c3 100644 --- a/examples/lighting-app/qpg/include/AppTask.h +++ b/examples/lighting-app/qpg/include/AppTask.h @@ -27,7 +27,6 @@ #include "FreeRTOS.h" #include "timers.h" // provides FreeRTOS timer support -#include #include #define APP_NAME "Lighting-app" @@ -68,8 +67,7 @@ class AppTask enum Function_t { kFunction_NoneSelected = 0, - kFunction_SoftwareUpdate = 0, - kFunction_Joiner = 1, + kFunction_SoftwareUpdate = 1, kFunction_FactoryReset = 2, kFunction_Invalid @@ -78,7 +76,6 @@ class AppTask Function_t mFunction; bool mFunctionTimerActive; bool mSyncClusterToButtonAction; - chip::Ble::BLEEndPoint * mBLEEndPoint; static AppTask sAppTask; }; diff --git a/examples/lighting-app/qpg/src/AppTask.cpp b/examples/lighting-app/qpg/src/AppTask.cpp index 2addad9a41f715..475cb8324f4325 100644 --- a/examples/lighting-app/qpg/src/AppTask.cpp +++ b/examples/lighting-app/qpg/src/AppTask.cpp @@ -21,6 +21,7 @@ #include "AppConfig.h" #include "AppEvent.h" #include "AppTask.h" +#include "ota.h" #include @@ -42,12 +43,6 @@ using namespace chip::Credentials; using namespace chip::DeviceLayer; #include -#if CHIP_ENABLE_OPENTHREAD -#include -#include -#include -#define JOINER_START_TRIGGER_TIMEOUT 1500 -#endif #define FACTORY_RESET_TRIGGER_TIMEOUT 3000 #define FACTORY_RESET_CANCEL_WINDOW_TIMEOUT 3000 @@ -121,6 +116,9 @@ CHIP_ERROR AppTask::Init() // Init ZCL Data Model chip::Server::GetInstance().Init(); + // Init OTA engine + InitializeOTARequestor(); + // Initialize device attestation config SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); @@ -290,17 +288,8 @@ void AppTask::FunctionTimerEventHandler(AppEvent * aEvent) // initiate factory reset if (sAppTask.mFunctionTimerActive && sAppTask.mFunction == kFunction_SoftwareUpdate) { -#if CHIP_ENABLE_OPENTHREAD - ChipLogProgress(NotSpecified, "Release button now to Start Thread Joiner"); - ChipLogProgress(NotSpecified, "Hold to trigger Factory Reset"); - sAppTask.mFunction = kFunction_Joiner; - sAppTask.StartTimer(FACTORY_RESET_TRIGGER_TIMEOUT); - } - else if (sAppTask.mFunctionTimerActive && sAppTask.mFunction == kFunction_Joiner) - { -#endif - ChipLogProgress(NotSpecified, "Factory Reset Triggered. Release button within %ums to cancel.", - FACTORY_RESET_CANCEL_WINDOW_TIMEOUT); + ChipLogProgress(NotSpecified, "[BTN] Factory Reset selected. Release within %us to cancel.", + FACTORY_RESET_CANCEL_WINDOW_TIMEOUT / 1000); // Start timer for FACTORY_RESET_CANCEL_WINDOW_TIMEOUT to allow user to // cancel, if required. @@ -340,11 +329,11 @@ void AppTask::FunctionHandler(AppEvent * aEvent) { if (!sAppTask.mFunctionTimerActive && sAppTask.mFunction == kFunction_NoneSelected) { -#if CHIP_ENABLE_OPENTHREAD - sAppTask.StartTimer(JOINER_START_TRIGGER_TIMEOUT); -#else + ChipLogProgress(NotSpecified, "[BTN] Hold to select function:"); + ChipLogProgress(NotSpecified, "[BTN] - Trigger OTA (0-3s)"); + ChipLogProgress(NotSpecified, "[BTN] - Factory Reset (>6s)"); + sAppTask.StartTimer(FACTORY_RESET_TRIGGER_TIMEOUT); -#endif sAppTask.mFunction = kFunction_SoftwareUpdate; } @@ -359,18 +348,10 @@ void AppTask::FunctionHandler(AppEvent * aEvent) sAppTask.mFunction = kFunction_NoneSelected; - ChipLogError(NotSpecified, "Software Update currently not supported."); - } -#if CHIP_ENABLE_OPENTHREAD - else if (sAppTask.mFunctionTimerActive && sAppTask.mFunction == kFunction_Joiner) - { - sAppTask.CancelTimer(); - sAppTask.mFunction = kFunction_NoneSelected; + ChipLogProgress(NotSpecified, "[BTN] Triggering OTA Query"); - CHIP_ERROR error = ThreadStackMgr().JoinerStart(); - ChipLogProgress(NotSpecified, "Thread joiner triggered: %s", chip::ErrorStr(error)); + TriggerOTAQuery(); } -#endif else if (sAppTask.mFunctionTimerActive && sAppTask.mFunction == kFunction_FactoryReset) { sAppTask.CancelTimer(); @@ -379,7 +360,7 @@ void AppTask::FunctionHandler(AppEvent * aEvent) // canceled. sAppTask.mFunction = kFunction_NoneSelected; - ChipLogProgress(NotSpecified, "Factory Reset has been Canceled"); + ChipLogProgress(NotSpecified, "[BTN] Factory Reset has been Canceled"); } } } diff --git a/examples/lighting-app/telink/CMakeLists.txt b/examples/lighting-app/telink/CMakeLists.txt index 2261a2e2823421..cabca3ee2eb539 100644 --- a/examples/lighting-app/telink/CMakeLists.txt +++ b/examples/lighting-app/telink/CMakeLists.txt @@ -39,7 +39,7 @@ target_include_directories(app PRIVATE ${NLIO_ROOT} ${TELINK_COMMON}/util/include ${TELINK_COMMON}/app/include) - +# TODO - re-use chip_data_model.cmake to add cluster implementations. target_sources(app PRIVATE src/AppTask.cpp src/LightingManager.cpp @@ -95,4 +95,7 @@ target_sources(app PRIVATE ${CHIP_ROOT}/src/app/clusters/occupancy-sensor-server/occupancy-sensor-server.cpp ${CHIP_ROOT}/src/app/clusters/network-commissioning-old/network-commissioning-ember.cpp ${CHIP_ROOT}/src/app/clusters/network-commissioning-old/network-commissioning-old.cpp + ${CHIP_ROOT}/src/app/clusters/ota-requestor/ota-requestor-server.cpp + ${CHIP_ROOT}/src/app/clusters/ota-requestor/BDXDownloader.cpp + ${CHIP_ROOT}/src/app/clusters/ota-requestor/OTARequestor.cpp ) diff --git a/examples/lock-app/esp32/README.md b/examples/lock-app/esp32/README.md index fa9aab5abcff86..4fd81bc2bf5d53 100644 --- a/examples/lock-app/esp32/README.md +++ b/examples/lock-app/esp32/README.md @@ -171,7 +171,7 @@ remote device, as well as the network credentials to use. The command below uses the default values hard-coded into the debug versions of the ESP32 all-clusters-app to commission it onto a Wi-Fi network: - $ .out/debug/chip-tool pairing ble-wifi 12344321 ${SSID} ${PASSWORD} 20202021 3840 + $ ./out/debug/chip-tool pairing ble-wifi 12344321 ${SSID} ${PASSWORD} 20202021 3840 Parameters: @@ -186,7 +186,7 @@ Parameters: To use the Client to send Matter commands, run the built executable and pass it the target cluster name, the target command name as well as an endpoint id. - $ .out/debug/chip-tool onoff on 12344321 1 + $ ./out/debug/chip-tool onoff on 12344321 1 The client will send a single command packet and then exit. diff --git a/examples/lock-app/qpg/BUILD.gn b/examples/lock-app/qpg/BUILD.gn index 08d4f5730ddf58..0ba2a9729c709f 100644 --- a/examples/lock-app/qpg/BUILD.gn +++ b/examples/lock-app/qpg/BUILD.gn @@ -28,10 +28,7 @@ qpg_project_dir = "${chip_root}/examples/lock-app/qpg" examples_plat_dir = "${chip_root}/examples/platform/qpg" qpg_sdk("sdk") { - sources = [ - "${examples_plat_dir}/app/include/Service.h", - "${examples_plat_dir}/project_include/CHIPProjectConfig.h", - ] + sources = [ "${examples_plat_dir}/project_include/CHIPProjectConfig.h" ] include_dirs = [ "${chip_root}/src/platform/qpg", diff --git a/examples/ota-requestor-app/esp32/README.md b/examples/ota-requestor-app/esp32/README.md index 3fa1a299b5e53a..20534f43393f8c 100644 --- a/examples/ota-requestor-app/esp32/README.md +++ b/examples/ota-requestor-app/esp32/README.md @@ -40,20 +40,13 @@ After commissioning is successful, announce OTA provider's presence using chip-tool. On receiving this command OTA requestor will query for OTA image. ``` -./out/debug/chip-tool otasoftwareupdaterequestor announce-ota-provider 12345 0 0 12346 0 +./out/debug/chip-tool otasoftwareupdaterequestor announce-ota-provider 12345 0 0 0 12346 0 ``` -## Apply update request +## Apply update -Once transfer is complete OTA Requestor should take permission from the OTA -Provider for applying the OTA image. Use the following command from OTA -requestor prompt - -``` -esp32> ApplyUpdateRequest -``` - -Then reboot the device manually to boot from upgraded OTA image. +Once transfer is complete, reboot the device manually to boot from upgraded OTA +image. ## ESP32 OTA Requestor with Linux OTA Provider diff --git a/examples/ota-requestor-app/esp32/main/main.cpp b/examples/ota-requestor-app/esp32/main/main.cpp index e53dc1bb341dc1..06084e7994a004 100644 --- a/examples/ota-requestor-app/esp32/main/main.cpp +++ b/examples/ota-requestor-app/esp32/main/main.cpp @@ -32,11 +32,6 @@ #include #include -#include -#include -#include -#include - #include #include @@ -45,8 +40,6 @@ #include "OTAImageProcessorImpl.h" #include "platform/GenericOTARequestorDriver.h" #include "platform/OTARequestorInterface.h" -#include -#include using namespace ::chip; using namespace ::chip::System; @@ -54,15 +47,9 @@ using namespace ::chip::Credentials; using namespace ::chip::DeviceManager; using namespace ::chip::DeviceLayer; -struct CmdArgs -{ - struct arg_end * end; -}; - namespace { const char * TAG = "ota-requester-app"; static DeviceCallbacks EchoCallbacks; -CmdArgs applyUpdateCmdArgs; OTARequestor gRequestorCore; GenericOTARequestorDriver gRequestorUser; @@ -70,39 +57,6 @@ BDXDownloader gDownloader; OTAImageProcessorImpl gImageProcessor; } // namespace -int ESPApplyUpdateCmdHandler(int argc, char ** argv) -{ - gRequestorCore.ApplyUpdate(); - ESP_LOGI(TAG, "Apply the Update"); - return 0; -} - -void ESPInitConsole(void) -{ - esp_console_repl_t * repl = NULL; - esp_console_repl_config_t replConfig = ESP_CONSOLE_REPL_CONFIG_DEFAULT(); - esp_console_dev_uart_config_t uartConfig = ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT(); - /* Prompt to be printed before each line. - * This can be customized, made dynamic, etc. - */ - replConfig.prompt = "esp32 >"; - - esp_console_register_help_command(); - - esp_console_cmd_t applyUpdateCommand; - memset(&applyUpdateCommand, 0, sizeof(applyUpdateCommand)); - - applyUpdateCmdArgs.end = arg_end(1); - - applyUpdateCommand.command = "ApplyUpdateRequest", applyUpdateCommand.help = "Request to OTA update image", - applyUpdateCommand.func = &ESPApplyUpdateCmdHandler, applyUpdateCommand.argtable = &applyUpdateCmdArgs; - - esp_console_cmd_register(&applyUpdateCommand); - - esp_console_new_repl_uart(&uartConfig, &replConfig, &repl); - esp_console_start_repl(repl); -} - extern "C" void app_main() { ESP_LOGI(TAG, "OTA Requester!"); @@ -140,7 +94,6 @@ extern "C" void app_main() // Initialize device attestation config SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); - ESPInitConsole(); SetRequestorInstance(&gRequestorCore); gRequestorCore.Init(&(Server::GetInstance()), &gRequestorUser, &gDownloader); gImageProcessor.SetOTADownloader(&gDownloader); diff --git a/examples/platform/esp32/Rpc.cpp b/examples/platform/esp32/Rpc.cpp index 9286191dc4eeca..a0fa1530731c6c 100644 --- a/examples/platform/esp32/Rpc.cpp +++ b/examples/platform/esp32/Rpc.cpp @@ -53,6 +53,7 @@ #endif // defined(PW_RPC_LOCKING_SERVICE) && PW_RPC_LOCKING_SERVICE #if defined(PW_RPC_TRACING_SERVICE) && PW_RPC_TRACING_SERVICE +#define PW_TRACE_BUFFER_SIZE_BYTES 1024 #include "pw_trace/trace.h" #include "pw_trace_tokenized/trace_rpc_service_nanopb.h" @@ -167,6 +168,7 @@ void RegisterServices(pw::rpc::Server & server) #if defined(PW_RPC_TRACING_SERVICE) && PW_RPC_TRACING_SERVICE server.RegisterService(trace_service); + PW_TRACE_SET_ENABLED(true); #endif // defined(PW_RPC_TRACING_SERVICE) && PW_RPC_TRACING_SERVICE } diff --git a/examples/platform/nrfconnect/Rpc.cpp b/examples/platform/nrfconnect/Rpc.cpp index 580c925d883465..23feea30b8c552 100644 --- a/examples/platform/nrfconnect/Rpc.cpp +++ b/examples/platform/nrfconnect/Rpc.cpp @@ -46,6 +46,7 @@ LOG_MODULE_DECLARE(app); #endif // defined(PW_RPC_LOCKING_SERVICE) && PW_RPC_LOCKING_SERVICE #if defined(PW_RPC_TRACING_SERVICE) && PW_RPC_TRACING_SERVICE +#define PW_TRACE_BUFFER_SIZE_BYTES 1024 #include "pw_trace/trace.h" #include "pw_trace_tokenized/trace_rpc_service_nanopb.h" @@ -155,6 +156,7 @@ void RegisterServices(pw::rpc::Server & server) #if defined(PW_RPC_TRACING_SERVICE) && PW_RPC_TRACING_SERVICE server.RegisterService(trace_service); + PW_TRACE_SET_ENABLED(true); #endif // defined(PW_RPC_TRACING_SERVICE) && PW_RPC_TRACING_SERVICE } diff --git a/examples/platform/qpg/ota/ota.cpp b/examples/platform/qpg/ota/ota.cpp new file mode 100644 index 00000000000000..ec8464ff1486f5 --- /dev/null +++ b/examples/platform/qpg/ota/ota.cpp @@ -0,0 +1,65 @@ +/* + * + * Copyright (c) 2021 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. + */ + +/** @file "ota.cpp" + * + * OTA handling for an application + */ + +/***************************************************************************** + * Includes Definitions + *****************************************************************************/ + +#include + +#include +#include +#include +#include + +using namespace chip; +using namespace chip::DeviceLayer; + +/***************************************************************************** + * Static Data Definitions + *****************************************************************************/ + +OTARequestor gRequestorCore; +GenericOTARequestorDriver gRequestorUser; +BDXDownloader gDownloader; +OTAImageProcessorImpl gImageProcessor; + +/***************************************************************************** + * Application Function Definitions + *****************************************************************************/ + +void InitializeOTARequestor(void) +{ + // Initialize and interconnect the Requestor and Image Processor objects + SetRequestorInstance(&gRequestorCore); + + gRequestorCore.Init(&Server::GetInstance(), &gRequestorUser, &gDownloader); + gImageProcessor.SetOTADownloader(&gDownloader); + gDownloader.SetImageProcessorDelegate(&gImageProcessor); + gRequestorUser.Init(&gRequestorCore, &gImageProcessor); +} + +void TriggerOTAQuery(void) +{ + GetRequestorInstance()->TriggerImmediateQuery(); +} diff --git a/examples/platform/qpg/app/include/Service.h b/examples/platform/qpg/ota/ota.h similarity index 79% rename from examples/platform/qpg/app/include/Service.h rename to examples/platform/qpg/ota/ota.h index 14abfb0e1d2189..0a56e93fe95c63 100644 --- a/examples/platform/qpg/app/include/Service.h +++ b/examples/platform/qpg/ota/ota.h @@ -1,6 +1,7 @@ /* * - * Copyright (c) 2020 Project CHIP Authors + * Copyright (c) 2021 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. @@ -17,6 +18,6 @@ #pragma once -void SetDeviceName(const char * newDeviceName); -void PublishService(); -void StartDefaultThreadNetwork(void); +void InitializeOTARequestor(void); + +void TriggerOTAQuery(void); diff --git a/examples/platform/qpg/project_include/OpenThreadConfig.h b/examples/platform/qpg/project_include/OpenThreadConfig.h index d4c29a26b7c43d..460208fc6b9671 100644 --- a/examples/platform/qpg/project_include/OpenThreadConfig.h +++ b/examples/platform/qpg/project_include/OpenThreadConfig.h @@ -62,6 +62,7 @@ #define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 1 #define OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE 1 +#define OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE 1 #define OPENTHREAD_CONFIG_ECDSA_ENABLE 1 #define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 diff --git a/examples/temperature-measurement-app/esp32/README.md b/examples/temperature-measurement-app/esp32/README.md index 63834903af093e..13b2e745c6103e 100644 --- a/examples/temperature-measurement-app/esp32/README.md +++ b/examples/temperature-measurement-app/esp32/README.md @@ -171,7 +171,7 @@ remote device, as well as the network credentials to use. The command below uses the default values hard-coded into the debug versions of the ESP32 all-clusters-app to commission it onto a Wi-Fi network: - $ .out/debug/chip-tool pairing ble-wifi 12344321 ${SSID} ${PASSWORD} 20202021 3840 + $ ./out/debug/chip-tool pairing ble-wifi 12344321 ${SSID} ${PASSWORD} 20202021 3840 Parameters: diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index 2c5b2073725e97..6117998834a2c5 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -35,7 +35,7 @@ steps: args: - >- ./scripts/build/build_examples.py --enable-flashbundle - --target-glob '*-nrf52840-{lock,light}*' build --create-archives + --target-glob '*-nrf52840*{lock,light}*' build --create-archives /workspace/artifacts/ waitFor: - Bootstrap diff --git a/integrations/docker/images/chip-build-ameba/Dockerfile b/integrations/docker/images/chip-build-ameba/Dockerfile index d98d6175fc9ee8..1a0d97d29e5654 100644 --- a/integrations/docker/images/chip-build-ameba/Dockerfile +++ b/integrations/docker/images/chip-build-ameba/Dockerfile @@ -9,7 +9,7 @@ RUN set -x \ && cd ${AMEBA_DIR} \ && git clone --progress -b cmake_build https://github.com/pankore/ambd_sdk_with_chip_non_NDA.git \ && cd ambd_sdk_with_chip_non_NDA \ - && git reset --hard dd89725 \ + && git reset --hard 4491131 \ && git submodule update --depth 1 --init --progress \ && cd project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/toolchain \ && cat asdk/asdk-10.3.0-linux-newlib-build-3638-x86_64.tar.bz2.part* > asdk/asdk-10.3.0-linux-newlib-build-3638-x86_64.tar.bz2 \ diff --git a/integrations/docker/images/chip-build/version b/integrations/docker/images/chip-build/version index dd7e7fa44a9b1b..61483888eab895 100644 --- a/integrations/docker/images/chip-build/version +++ b/integrations/docker/images/chip-build/version @@ -1 +1 @@ -0.5.46 Version bump reason: [Doxygen] Adding git missing package +0.5.47 Version bump reason: [Ameba] Revise build script for otar 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 e89a1c7845b8fa..b811520623bb9e 100644 --- a/src/app/clusters/access-control-server/access-control-server.cpp +++ b/src/app/clusters/access-control-server/access-control-server.cpp @@ -127,196 +127,147 @@ struct AccessControlEntryCodec return CHIP_NO_ERROR; } - CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const + static CHIP_ERROR Convert(const AccessControl::Entry::Target & from, AccessControlCluster::Structs::Target::Type & to) { - TLV::TLVType accessControlEntryContainer; - ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, accessControlEntryContainer)); - using Fields = AccessControlCluster::Structs::AccessControlEntry::Fields; + if (from.flags & AccessControl::Entry::Target::kCluster) + { + to.cluster.SetNonNull(from.cluster); + } + else { - FabricIndex fabricIndex; - ReturnErrorOnFailure(entry.GetFabricIndex(fabricIndex)); - ReturnErrorOnFailure(DataModel::Encode(aWriter, TLV::ContextTag(to_underlying(Fields::kFabricIndex)), fabricIndex)); + to.cluster.SetNull(); } + if (from.flags & AccessControl::Entry::Target::kEndpoint) + { + to.endpoint.SetNonNull(from.endpoint); + } + else + { + to.endpoint.SetNull(); + } + if (from.flags & AccessControl::Entry::Target::kDeviceType) + { + to.deviceType.SetNonNull(from.deviceType); + } + else + { + to.deviceType.SetNull(); + } + return CHIP_NO_ERROR; + } + + static CHIP_ERROR Convert(const AccessControlCluster::Structs::Target::Type & from, AccessControl::Entry::Target & to) + { + to.flags = 0; + if (!from.cluster.IsNull()) + { + to.flags |= AccessControl::Entry::Target::kCluster; + to.cluster = from.cluster.Value(); + } + if (!from.endpoint.IsNull()) + { + to.flags |= AccessControl::Entry::Target::kEndpoint; + to.endpoint = from.endpoint.Value(); + } + if (!from.deviceType.IsNull()) + { + to.flags |= AccessControl::Entry::Target::kDeviceType; + to.deviceType = from.deviceType.Value(); + } + return CHIP_NO_ERROR; + } + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const + { + AccessControlCluster::Structs::AccessControlEntry::Type staging; + + ReturnErrorOnFailure(entry.GetFabricIndex(staging.fabricIndex)); + { Privilege privilege; ReturnErrorOnFailure(entry.GetPrivilege(privilege)); - AccessControlCluster::Privilege privilegeTemp; - ReturnErrorOnFailure(Convert(privilege, privilegeTemp)); - ReturnErrorOnFailure(DataModel::Encode(aWriter, TLV::ContextTag(to_underlying(Fields::kPrivilege)), privilegeTemp)); + ReturnErrorOnFailure(Convert(privilege, staging.privilege)); } + { AuthMode authMode; ReturnErrorOnFailure(entry.GetAuthMode(authMode)); - AccessControlCluster::AuthMode authModeTemp; - ReturnErrorOnFailure(Convert(authMode, authModeTemp)); - ReturnErrorOnFailure(DataModel::Encode(aWriter, TLV::ContextTag(to_underlying(Fields::kAuthMode)), authModeTemp)); + ReturnErrorOnFailure(Convert(authMode, staging.authMode)); } + + NodeId subjectBuffer[CHIP_CONFIG_EXAMPLE_ACCESS_CONTROL_MAX_SUBJECTS_PER_ENTRY]; + size_t subjectCount; + ReturnErrorOnFailure(entry.GetSubjectCount(subjectCount)); + if (subjectCount > 0) { - size_t count = 0; - ReturnErrorOnFailure(entry.GetSubjectCount(count)); - if (count > 0) + for (size_t i = 0; i < subjectCount; ++i) { - TLV::TLVType subjectsContainer; - ReturnErrorOnFailure(aWriter.StartContainer(TLV::ContextTag(to_underlying(Fields::kSubjects)), TLV::kTLVType_Array, - subjectsContainer)); - for (size_t i = 0; i < count; ++i) - { - NodeId subject; - ReturnErrorOnFailure(entry.GetSubject(i, subject)); - ReturnErrorOnFailure(DataModel::Encode(aWriter, TLV::AnonymousTag(), subject)); - } - ReturnErrorOnFailure(aWriter.EndContainer(subjectsContainer)); + ReturnErrorOnFailure(entry.GetSubject(i, subjectBuffer[i])); } + staging.subjects.SetNonNull(subjectBuffer, subjectCount); } + + AccessControlCluster::Structs::Target::Type targetBuffer[CHIP_CONFIG_EXAMPLE_ACCESS_CONTROL_MAX_TARGETS_PER_ENTRY]; + size_t targetCount; + ReturnErrorOnFailure(entry.GetTargetCount(targetCount)); + if (targetCount > 0) { - size_t count = 0; - ReturnErrorOnFailure(entry.GetTargetCount(count)); - if (count > 0) + for (size_t i = 0; i < targetCount; ++i) { - TLV::TLVType targetsContainer; - ReturnErrorOnFailure(aWriter.StartContainer(TLV::ContextTag(to_underlying(Fields::kTargets)), TLV::kTLVType_Array, - targetsContainer)); - using TargetFields = AccessControlCluster::Structs::Target::Fields; - for (size_t i = 0; i < count; ++i) - { - TLV::TLVType targetContainer; - ReturnErrorOnFailure(aWriter.StartContainer(TLV::AnonymousTag(), TLV::kTLVType_Structure, targetContainer)); - AccessControl::Entry::Target target; - ReturnErrorOnFailure(entry.GetTarget(i, target)); - if (target.flags & AccessControl::Entry::Target::kCluster) - { - ReturnErrorOnFailure( - DataModel::Encode(aWriter, TLV::ContextTag(to_underlying(TargetFields::kCluster)), target.cluster)); - } - if (target.flags & AccessControl::Entry::Target::kEndpoint) - { - ReturnErrorOnFailure( - DataModel::Encode(aWriter, TLV::ContextTag(to_underlying(TargetFields::kEndpoint)), target.endpoint)); - } - if (target.flags & AccessControl::Entry::Target::kDeviceType) - { - ReturnErrorOnFailure(DataModel::Encode(aWriter, TLV::ContextTag(to_underlying(TargetFields::kDeviceType)), - target.deviceType)); - } - ReturnErrorOnFailure(aWriter.EndContainer(targetContainer)); - } - ReturnErrorOnFailure(aWriter.EndContainer(targetsContainer)); + AccessControl::Entry::Target target; + ReturnErrorOnFailure(entry.GetTarget(i, target)); + ReturnErrorOnFailure(Convert(target, targetBuffer[i])); } + staging.targets.SetNonNull(targetBuffer, targetCount); } - ReturnErrorOnFailure(aWriter.EndContainer(accessControlEntryContainer)); - return CHIP_NO_ERROR; + + return staging.Encode(aWriter, aTag); } CHIP_ERROR Decode(TLV::TLVReader & aReader) { + AccessControlCluster::Structs::AccessControlEntry::DecodableType staging; + + ReturnErrorOnFailure(staging.Decode(aReader)); + ReturnErrorOnFailure(GetAccessControl().PrepareEntry(entry)); - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType accessControlEntryContainer; - VerifyOrReturnError(TLV::kTLVType_Structure == aReader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(aReader.EnterContainer(accessControlEntryContainer)); - using Fields = AccessControlCluster::Structs::AccessControlEntry::Fields; - while ((err = aReader.Next()) == CHIP_NO_ERROR) + + ReturnErrorOnFailure(entry.SetFabricIndex(staging.fabricIndex)); + + { + Privilege privilege; + ReturnErrorOnFailure(Convert(staging.privilege, privilege)); + ReturnErrorOnFailure(entry.SetPrivilege(privilege)); + } + { - VerifyOrReturnError(TLV::IsContextTag(aReader.GetTag()), CHIP_ERROR_INVALID_TLV_TAG); - switch (TLV::TagNumFromTag(aReader.GetTag())) + AuthMode authMode; + ReturnErrorOnFailure(Convert(staging.authMode, authMode)); + ReturnErrorOnFailure(entry.SetAuthMode(authMode)); + } + + if (!staging.subjects.IsNull()) + { + auto iterator = staging.subjects.Value().begin(); + while (iterator.Next()) { - case to_underlying(Fields::kFabricIndex): { - chip::FabricIndex fabricIndex; - ReturnErrorOnFailure(DataModel::Decode(aReader, fabricIndex)); - ReturnErrorOnFailure(entry.SetFabricIndex(fabricIndex)); - break; - } - case to_underlying(Fields::kPrivilege): { - AccessControlCluster::Privilege privilegeTemp; - ReturnErrorOnFailure(DataModel::Decode(aReader, privilegeTemp)); - Privilege privilege; - ReturnErrorOnFailure(Convert(privilegeTemp, privilege)); - ReturnErrorOnFailure(entry.SetPrivilege(privilege)); - break; - } - case to_underlying(Fields::kAuthMode): { - AccessControlCluster::AuthMode authModeTemp; - ReturnErrorOnFailure(DataModel::Decode(aReader, authModeTemp)); - AuthMode authMode; - ReturnErrorOnFailure(Convert(authModeTemp, authMode)); - ReturnErrorOnFailure(entry.SetAuthMode(authMode)); - break; + ReturnErrorOnFailure(entry.AddSubject(nullptr, iterator.GetValue())); } - case to_underlying(Fields::kSubjects): { - if (aReader.GetType() != TLV::kTLVType_Null) - { - TLV::TLVType subjectsContainer; - VerifyOrReturnError(TLV::kTLVType_Array == aReader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(aReader.EnterContainer(subjectsContainer)); - while ((err = aReader.Next()) == CHIP_NO_ERROR) - { - NodeId subject = kUndefinedNodeId; - ReturnErrorOnFailure(DataModel::Decode(aReader, subject)); - ReturnErrorOnFailure(entry.AddSubject(nullptr, subject)); - } - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(aReader.ExitContainer(subjectsContainer)); - } - break; - } - case to_underlying(Fields::kTargets): { - if (aReader.GetType() != TLV::kTLVType_Null) - { - TLV::TLVType targetsContainer; - VerifyOrReturnError(TLV::kTLVType_Array == aReader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(aReader.EnterContainer(targetsContainer)); - while ((err = aReader.Next()) == CHIP_NO_ERROR) - { - AccessControl::Entry::Target target; - TLV::TLVType targetContainer; - VerifyOrReturnError(TLV::kTLVType_Structure == aReader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(aReader.EnterContainer(targetContainer)); - using TargetFields = AccessControlCluster::Structs::Target::Fields; - while ((err = aReader.Next()) == CHIP_NO_ERROR) - { - VerifyOrReturnError(TLV::IsContextTag(aReader.GetTag()), CHIP_ERROR_INVALID_TLV_TAG); - switch (TLV::TagNumFromTag(aReader.GetTag())) - { - case to_underlying(TargetFields::kCluster): - if (aReader.GetType() != TLV::kTLVType_Null) - { - ReturnErrorOnFailure(DataModel::Decode(aReader, target.cluster)); - target.flags |= target.kCluster; - } - break; - case to_underlying(TargetFields::kEndpoint): - if (aReader.GetType() != TLV::kTLVType_Null) - { - ReturnErrorOnFailure(DataModel::Decode(aReader, target.endpoint)); - target.flags |= target.kEndpoint; - } - break; - case to_underlying(TargetFields::kDeviceType): - if (aReader.GetType() != TLV::kTLVType_Null) - { - ReturnErrorOnFailure(DataModel::Decode(aReader, target.deviceType)); - target.flags |= target.kDeviceType; - } - break; - default: - break; - } - } - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(aReader.ExitContainer(targetContainer)); - ReturnErrorOnFailure(entry.AddTarget(nullptr, target)); - } - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(aReader.ExitContainer(targetsContainer)); - } - break; - } - default: - break; + ReturnErrorOnFailure(iterator.GetStatus()); + } + + if (!staging.targets.IsNull()) + { + auto iterator = staging.targets.Value().begin(); + while (iterator.Next()) + { + AccessControl::Entry::Target target; + ReturnErrorOnFailure(Convert(iterator.GetValue(), target)); + ReturnErrorOnFailure(entry.AddTarget(nullptr, target)); } + ReturnErrorOnFailure(iterator.GetStatus()); } - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(aReader.ExitContainer(accessControlEntryContainer)); + return CHIP_NO_ERROR; } diff --git a/src/app/clusters/ias-zone-server/ias-zone-server.cpp b/src/app/clusters/ias-zone-server/ias-zone-server.cpp index 2c33be3a3987ae..5a219448c26dc5 100644 --- a/src/app/clusters/ias-zone-server/ias-zone-server.cpp +++ b/src/app/clusters/ias-zone-server/ias-zone-server.cpp @@ -594,29 +594,26 @@ static bool areZoneServerAttributesNonVolatile(EndpointId endpoint) { EmberAfAttributeMetadata * metadata; - metadata = emberAfLocateAttributeMetadata(endpoint, ZCL_IAS_ZONE_CLUSTER_ID, ZCL_IAS_CIE_ADDRESS_ATTRIBUTE_ID, - CLUSTER_MASK_SERVER, EMBER_AF_NULL_MANUFACTURER_CODE); + metadata = + emberAfLocateAttributeMetadata(endpoint, ZCL_IAS_ZONE_CLUSTER_ID, ZCL_IAS_CIE_ADDRESS_ATTRIBUTE_ID, CLUSTER_MASK_SERVER); if (!metadata->IsNonVolatile()) { return false; } - metadata = emberAfLocateAttributeMetadata(endpoint, ZCL_IAS_ZONE_CLUSTER_ID, ZCL_ZONE_STATE_ATTRIBUTE_ID, CLUSTER_MASK_SERVER, - EMBER_AF_NULL_MANUFACTURER_CODE); + metadata = emberAfLocateAttributeMetadata(endpoint, ZCL_IAS_ZONE_CLUSTER_ID, ZCL_ZONE_STATE_ATTRIBUTE_ID, CLUSTER_MASK_SERVER); if (!metadata->IsNonVolatile()) { return false; } - metadata = emberAfLocateAttributeMetadata(endpoint, ZCL_IAS_ZONE_CLUSTER_ID, ZCL_ZONE_TYPE_ATTRIBUTE_ID, CLUSTER_MASK_SERVER, - EMBER_AF_NULL_MANUFACTURER_CODE); + metadata = emberAfLocateAttributeMetadata(endpoint, ZCL_IAS_ZONE_CLUSTER_ID, ZCL_ZONE_TYPE_ATTRIBUTE_ID, CLUSTER_MASK_SERVER); if (!metadata->IsNonVolatile()) { return false; } - metadata = emberAfLocateAttributeMetadata(endpoint, ZCL_IAS_ZONE_CLUSTER_ID, ZCL_ZONE_ID_ATTRIBUTE_ID, CLUSTER_MASK_SERVER, - EMBER_AF_NULL_MANUFACTURER_CODE); + metadata = emberAfLocateAttributeMetadata(endpoint, ZCL_IAS_ZONE_CLUSTER_ID, ZCL_ZONE_ID_ATTRIBUTE_ID, CLUSTER_MASK_SERVER); if (!metadata->IsNonVolatile()) { return false; diff --git a/src/app/clusters/level-control/level-control.cpp b/src/app/clusters/level-control/level-control.cpp index c27def0d8c5c03..06e7b152a31c8b 100644 --- a/src/app/clusters/level-control/level-control.cpp +++ b/src/app/clusters/level-control/level-control.cpp @@ -1034,15 +1034,14 @@ static bool areStartUpLevelControlServerAttributesNonVolatile(EndpointId endpoin { EmberAfAttributeMetadata * metadata; - metadata = emberAfLocateAttributeMetadata(endpoint, LevelControl::Id, ZCL_CURRENT_LEVEL_ATTRIBUTE_ID, CLUSTER_MASK_SERVER, - EMBER_AF_NULL_MANUFACTURER_CODE); + metadata = emberAfLocateAttributeMetadata(endpoint, LevelControl::Id, ZCL_CURRENT_LEVEL_ATTRIBUTE_ID, CLUSTER_MASK_SERVER); if (!metadata->IsNonVolatile()) { return false; } - metadata = emberAfLocateAttributeMetadata(endpoint, LevelControl::Id, ZCL_START_UP_CURRENT_LEVEL_ATTRIBUTE_ID, - CLUSTER_MASK_SERVER, EMBER_AF_NULL_MANUFACTURER_CODE); + metadata = + emberAfLocateAttributeMetadata(endpoint, LevelControl::Id, ZCL_START_UP_CURRENT_LEVEL_ATTRIBUTE_ID, CLUSTER_MASK_SERVER); if (!metadata->IsNonVolatile()) { return false; diff --git a/src/app/clusters/network-commissioning/network-commissioning.cpp b/src/app/clusters/network-commissioning/network-commissioning.cpp index 50b276aa388d67..572aa2e2a789ff 100644 --- a/src/app/clusters/network-commissioning/network-commissioning.cpp +++ b/src/app/clusters/network-commissioning/network-commissioning.cpp @@ -262,8 +262,6 @@ void Instance::HandleRemoveNetwork(HandlerContext & ctx, const Commands::RemoveN void Instance::HandleConnectNetwork(HandlerContext & ctx, const Commands::ConnectNetwork::DecodableType & req) { - Commands::ConnectNetworkResponse::Type response; - mAsyncCommandHandle = app::CommandHandler::Handle(&ctx.mCommandHandler); mpWirelessDriver->ConnectNetwork(req.networkID, this); } 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 a2055a18a819fc..5d9f9040019ce2 100644 --- a/src/app/clusters/on-off-server/on-off-server.cpp +++ b/src/app/clusters/on-off-server/on-off-server.cpp @@ -486,15 +486,13 @@ bool OnOffServer::areStartUpOnOffServerAttributesNonVolatile(EndpointId endpoint { EmberAfAttributeMetadata * metadata; - metadata = emberAfLocateAttributeMetadata(endpoint, OnOff::Id, Attributes::OnOff::Id, CLUSTER_MASK_SERVER, - EMBER_AF_NULL_MANUFACTURER_CODE); + metadata = emberAfLocateAttributeMetadata(endpoint, OnOff::Id, Attributes::OnOff::Id, CLUSTER_MASK_SERVER); if (!metadata->IsNonVolatile()) { return false; } - metadata = emberAfLocateAttributeMetadata(endpoint, OnOff::Id, Attributes::StartUpOnOff::Id, CLUSTER_MASK_SERVER, - EMBER_AF_NULL_MANUFACTURER_CODE); + metadata = emberAfLocateAttributeMetadata(endpoint, OnOff::Id, Attributes::StartUpOnOff::Id, CLUSTER_MASK_SERVER); if (!metadata->IsNonVolatile()) { return false; diff --git a/src/app/common/templates/templates.json b/src/app/common/templates/templates.json index a91a71c88b3af1..366ef0457fff13 100644 --- a/src/app/common/templates/templates.json +++ b/src/app/common/templates/templates.json @@ -17,6 +17,10 @@ { "name": "cluster_objects_struct", "path": "../../zap-templates/partials/cluster-objects-struct.zapt" + }, + { + "name": "cluster_objects_field_init", + "path": "../../zap-templates/partials/cluster-objects-field-init.zapt" } ], "templates": [ diff --git a/src/app/data-model/DecodableList.h b/src/app/data-model/DecodableList.h index ac1075c9ab594f..064a55a0ca6176 100644 --- a/src/app/data-model/DecodableList.h +++ b/src/app/data-model/DecodableList.h @@ -38,6 +38,12 @@ template class DecodableList { public: + DecodableList() + { + // Init to an empty list. + mReader.Init(nullptr, 0); + } + /* * @brief * diff --git a/src/app/tests/suites/TestSaveAs.yaml b/src/app/tests/suites/TestSaveAs.yaml index 1ba2e3559ddc0f..e67cadbe3065b0 100644 --- a/src/app/tests/suites/TestSaveAs.yaml +++ b/src/app/tests/suites/TestSaveAs.yaml @@ -675,3 +675,125 @@ tests: attribute: "vendor_id" response: value: readAttributeVendorIdDefaultValue + + # Tests for CHAR_STRING + + - label: "Read attribute char_string Default Value" + command: "readAttribute" + attribute: "char_string" + response: + saveAs: readAttributeCharStringDefaultValue + value: "" + + - label: + "Read attribute char_string Default Value and compare to saved value" + command: "readAttribute" + attribute: "char_string" + response: + value: readAttributeCharStringDefaultValue + + - label: "Write attribute char_string Not Default Value" + command: "writeAttribute" + attribute: "char_string" + arguments: + value: "NotDefault" + + - label: "Read attribute char_string Not Default Value" + command: "readAttribute" + attribute: "char_string" + response: + saveAs: readAttributeCharStringNotDefaultValue + value: "NotDefault" + constraints: + notValue: readAttributeCharStringDefaultValue + + - label: + "Read attribute char_string Not Default Value and compare to saved + value" + command: "readAttribute" + attribute: "char_string" + response: + value: readAttributeCharStringNotDefaultValue + constraints: + notValue: readAttributeCharStringDefaultValue + + - label: "Write attribute char_string Not Default Value from saved value" + command: "writeAttribute" + attribute: "char_string" + arguments: + value: readAttributeCharStringNotDefaultValue + + - label: + "Read attribute char_string Not Default Value and compare to expected + value" + command: "readAttribute" + attribute: "char_string" + response: + value: "NotDefault" + + - label: "Write attribute char_string Default Value" + command: "writeAttribute" + attribute: "char_string" + arguments: + value: readAttributeCharStringDefaultValue + + # Tests for OCTET_STRING + + - label: "Read attribute octet_string Default Value" + command: "readAttribute" + attribute: "octet_string" + response: + saveAs: readAttributeOctetStringDefaultValue + value: "" + + - label: + "Read attribute octet_string Default Value and compare to saved value" + command: "readAttribute" + attribute: "octet_string" + response: + value: readAttributeOctetStringDefaultValue + + - label: "Write attribute octet_string Not Default Value" + command: "writeAttribute" + attribute: "octet_string" + arguments: + value: "NotDefault" + + - label: "Read attribute octet_string Not Default Value" + command: "readAttribute" + attribute: "octet_string" + response: + saveAs: readAttributeOctetStringNotDefaultValue + value: "NotDefault" + constraints: + notValue: readAttributeOctetStringDefaultValue + + - label: + "Read attribute octet_string Not Default Value and compare to saved + value" + command: "readAttribute" + attribute: "octet_string" + response: + value: readAttributeOctetStringNotDefaultValue + constraints: + notValue: readAttributeOctetStringDefaultValue + + - label: "Write attribute octet_string Not Default Value from saved value" + command: "writeAttribute" + attribute: "octet_string" + arguments: + value: readAttributeOctetStringNotDefaultValue + + - label: + "Read attribute octet_string Not Default Value and compare to expected + value" + command: "readAttribute" + attribute: "octet_string" + response: + value: "NotDefault" + + - label: "Write attribute octet_string Default Value" + command: "writeAttribute" + attribute: "octet_string" + arguments: + value: readAttributeOctetStringDefaultValue diff --git a/src/app/util/af-main-common.cpp b/src/app/util/af-main-common.cpp index 624de08acb70c6..67801a695fe4da 100644 --- a/src/app/util/af-main-common.cpp +++ b/src/app/util/af-main-common.cpp @@ -576,14 +576,7 @@ void emAfMessageSentHandler(const MessageSendDestination & destination, EmberAps if (messageContents != NULL && messageContents[0] & ZCL_CLUSTER_SPECIFIC_COMMAND) { - emberAfClusterMessageSentWithMfgCodeCallback( - destination, apsFrame, messageLength, messageContents, status, - // If the manufacturer specific flag is set - // get read it as next part of message - // else use null code. - (((messageContents[0] & ZCL_MANUFACTURER_SPECIFIC_MASK) == ZCL_MANUFACTURER_SPECIFIC_MASK) - ? emberAfGetInt16u(messageContents, 1, messageLength) - : EMBER_AF_NULL_MANUFACTURER_CODE)); + emberAfClusterMessageSentCallback(destination, apsFrame, messageLength, messageContents, status); } if (callback != NULL) diff --git a/src/app/util/af.h b/src/app/util/af.h index 382fa86d3fe9be..1f45e318abddc7 100644 --- a/src/app/util/af.h +++ b/src/app/util/af.h @@ -92,59 +92,29 @@ * @return Returns pointer to the attribute metadata location. */ EmberAfAttributeMetadata * emberAfLocateAttributeMetadata(chip::EndpointId endpoint, chip::ClusterId clusterId, - chip::AttributeId attributeId, uint8_t mask, uint16_t manufacturerCode); + chip::AttributeId attributeId, uint8_t mask); #ifdef DOXYGEN_SHOULD_SKIP_THIS /** @brief Returns true if the attribute exists. */ -bool emberAfContainsAttribute(chip::EndpointId endpoint, chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t mask, - uint16_t manufacturerCode); +bool emberAfContainsAttribute(chip::EndpointId endpoint, chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t mask); #else -#define emberAfContainsAttribute(endpoint, clusterId, attributeId, mask, manufacturerCode) \ - (emberAfLocateAttributeMetadata(endpoint, clusterId, attributeId, mask, manufacturerCode) != NULL) +#define emberAfContainsAttribute(endpoint, clusterId, attributeId, mask) \ + (emberAfLocateAttributeMetadata(endpoint, clusterId, attributeId, mask) != NULL) #endif -/** - * @brief Returns true if endpoint contains a cluster, checking for mfg code. - * - * This function returns true regardless of whether - * the endpoint contains server, client or both. - * For standard libraries (when ClusterId < FC00), - * the manufacturerCode is ignored. - */ -bool emberAfContainsClusterWithMfgCode(chip::EndpointId endpoint, chip::ClusterId clusterId, uint16_t manufacturerCode); - /** * @brief Returns true if endpoint contains the ZCL cluster with specified id. * * This function returns true regardless of whether * the endpoint contains server, client or both in the Zigbee cluster Library. - * This wraps emberAfContainsClusterWithMfgCode with - * manufacturerCode = EMBER_AF_NULL_MANUFACTURER_CODE - * If this function is used with a manufacturer specific clusterId - * then this will return the first cluster that it finds in the Cluster table. - * and will not return any other clusters that share that id. */ bool emberAfContainsCluster(chip::EndpointId endpoint, chip::ClusterId clusterId); -/** - * @brief Returns true if endpoint has cluster server, checking for mfg code. - * - * This function returns true if - * the endpoint contains server of a given cluster. - * For standard librarys (when ClusterId < FC00), the manufacturerCode is ignored. - */ -bool emberAfContainsServerWithMfgCode(chip::EndpointId endpoint, chip::ClusterId clusterId, uint16_t manufacturerCode); - /** * @brief Returns true if endpoint contains the ZCL server with specified id. * * This function returns true if * the endpoint contains server of a given cluster. - * This wraps emberAfContainsServer with - * manufacturerCode = EMBER_AF_NULL_MANUFACTURER_CODE - * If this function is used with a manufacturer specific clusterId - * then this will return the first cluster that it finds in the Cluster table. - * and will not return any other clusters that share that id. */ bool emberAfContainsServer(chip::EndpointId endpoint, chip::ClusterId clusterId); @@ -159,26 +129,11 @@ bool emberAfContainsServer(chip::EndpointId endpoint, chip::ClusterId clusterId) */ bool emberAfContainsServerFromIndex(uint16_t index, chip::ClusterId clusterId); -/** - * @brief Returns true if endpoint contains cluster client. - * - * This function returns true if - * the endpoint contains client of a given cluster. - * For standard library clusters (when ClusterId < FC00), - * the manufacturerCode is ignored. - */ -bool emberAfContainsClientWithMfgCode(chip::EndpointId endpoint, chip::ClusterId clusterId, uint16_t manufacturerCode); - /** * @brief Returns true if endpoint contains the ZCL client with specified id. * * This function returns true if * the endpoint contains client of a given cluster. - * This wraps emberAfContainsClient with - * manufacturerCode = EMBER_AF_NULL_MANUFACTURER_CODE - * If this function is used with a manufacturer specific clusterId - * then this will return the first cluster that it finds in the Cluster table. - * and will not return any other clusters that share that id. */ bool emberAfContainsClient(chip::EndpointId endpoint, chip::ClusterId clusterId); diff --git a/src/app/util/attribute-storage.cpp b/src/app/util/attribute-storage.cpp index e53050729597c5..03adecffaa4d58 100644 --- a/src/app/util/attribute-storage.cpp +++ b/src/app/util/attribute-storage.cpp @@ -114,7 +114,7 @@ app::AttributeAccessInterface * gAttributeAccessOverrides = nullptr; // Forward declarations // Returns endpoint index within a given cluster -static uint16_t findClusterEndpointIndex(EndpointId endpoint, ClusterId clusterId, uint8_t mask, uint16_t manufacturerCode); +static uint16_t findClusterEndpointIndex(EndpointId endpoint, ClusterId clusterId, uint8_t mask); //------------------------------------------------------------------------------ @@ -266,10 +266,10 @@ bool emberAfIsThisDataTypeAListType(EmberAfAttributeType dataType) } // This function is used to call the per-cluster default response callback -void emberAfClusterDefaultResponseWithMfgCodeCallback(EndpointId endpoint, ClusterId clusterId, CommandId commandId, - EmberAfStatus status, uint8_t clientServerMask, uint16_t manufacturerCode) +void emberAfClusterDefaultResponseCallback(EndpointId endpoint, ClusterId clusterId, CommandId commandId, EmberAfStatus status, + uint8_t clientServerMask) { - EmberAfCluster * cluster = emberAfFindClusterWithMfgCode(endpoint, clusterId, clientServerMask, manufacturerCode); + EmberAfCluster * cluster = emberAfFindCluster(endpoint, clusterId, clientServerMask); if (cluster != NULL) { EmberAfGenericClusterFunction f = emberAfFindClusterFunction(cluster, CLUSTER_MASK_DEFAULT_RESPONSE_FUNCTION); @@ -282,27 +282,16 @@ void emberAfClusterDefaultResponseWithMfgCodeCallback(EndpointId endpoint, Clust } } -// This function is used to call the per-cluster default response callback, and -// wraps the emberAfClusterDefaultResponseWithMfgCodeCallback with a -// EMBER_AF_NULL_MANUFACTURER_CODE. -void emberAfClusterDefaultResponseCallback(EndpointId endpoint, ClusterId clusterId, CommandId commandId, EmberAfStatus status, - uint8_t clientServerMask) -{ - emberAfClusterDefaultResponseWithMfgCodeCallback(endpoint, clusterId, commandId, status, clientServerMask, - EMBER_AF_NULL_MANUFACTURER_CODE); -} - // This function is used to call the per-cluster message sent callback -void emberAfClusterMessageSentWithMfgCodeCallback(const MessageSendDestination & destination, EmberApsFrame * apsFrame, - uint16_t msgLen, uint8_t * message, EmberStatus status, uint16_t mfgCode) +void emberAfClusterMessageSentCallback(const MessageSendDestination & destination, EmberApsFrame * apsFrame, uint16_t msgLen, + uint8_t * message, EmberStatus status) { if (apsFrame != NULL && message != NULL && msgLen != 0) { - EmberAfCluster * cluster = emberAfFindClusterWithMfgCode( + EmberAfCluster * cluster = emberAfFindCluster( apsFrame->sourceEndpoint, apsFrame->clusterId, (((message[0] & ZCL_FRAME_CONTROL_DIRECTION_MASK) == ZCL_FRAME_CONTROL_SERVER_TO_CLIENT) ? CLUSTER_MASK_SERVER - : CLUSTER_MASK_CLIENT), - mfgCode); + : CLUSTER_MASK_CLIENT)); if (cluster != NULL) { EmberAfGenericClusterFunction f = emberAfFindClusterFunction(cluster, CLUSTER_MASK_MESSAGE_SENT_FUNCTION); @@ -316,20 +305,10 @@ void emberAfClusterMessageSentWithMfgCodeCallback(const MessageSendDestination & } } -// This function is used to call the per-cluster message sent callback, and -// wraps the emberAfClusterMessageSentWithMfgCodeCallback with a -// EMBER_AF_NULL_MANUFACTURER_CODE. -void emberAfClusterMessageSentCallback(const MessageSendDestination & destination, EmberApsFrame * apsFrame, uint16_t msgLen, - uint8_t * message, EmberStatus status) -{ - emberAfClusterMessageSentWithMfgCodeCallback(destination, apsFrame, msgLen, message, status, EMBER_AF_NULL_MANUFACTURER_CODE); -} - // This function is used to call the per-cluster attribute changed callback void emAfClusterAttributeChangedCallback(const app::ConcreteAttributePath & attributePath, uint8_t clientServerMask) { - EmberAfCluster * cluster = emberAfFindClusterWithMfgCode(attributePath.mEndpointId, attributePath.mClusterId, clientServerMask, - EMBER_AF_NULL_MANUFACTURER_CODE); + EmberAfCluster * cluster = emberAfFindCluster(attributePath.mEndpointId, attributePath.mClusterId, clientServerMask); if (cluster != NULL) { EmberAfGenericClusterFunction f = emberAfFindClusterFunction(cluster, CLUSTER_MASK_ATTRIBUTE_CHANGED_FUNCTION); @@ -344,8 +323,7 @@ void emAfClusterAttributeChangedCallback(const app::ConcreteAttributePath & attr EmberAfStatus emAfClusterPreAttributeChangedCallback(const app::ConcreteAttributePath & attributePath, uint8_t clientServerMask, EmberAfAttributeType attributeType, uint16_t size, uint8_t * value) { - EmberAfCluster * cluster = emberAfFindClusterWithMfgCode(attributePath.mEndpointId, attributePath.mClusterId, clientServerMask, - EMBER_AF_NULL_MANUFACTURER_CODE); + EmberAfCluster * cluster = emberAfFindCluster(attributePath.mEndpointId, attributePath.mClusterId, clientServerMask); if (cluster == NULL) { return EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE; @@ -396,7 +374,7 @@ void emAfCallInits(void) // Returns the pointer to metadata, or null if it is not found EmberAfAttributeMetadata * emberAfLocateAttributeMetadata(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId, - uint8_t mask, uint16_t manufacturerCode) + uint8_t mask) { EmberAfAttributeMetadata * metadata = NULL; EmberAfAttributeSearchRecord record; @@ -643,8 +621,8 @@ EmberAfStatus emAfReadOrWriteAttribute(EmberAfAttributeSearchRecord * attRecord, return EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE; // Sorry, attribute was not found. } -EmberAfCluster * emberAfFindClusterInTypeWithMfgCode(EmberAfEndpointType * endpointType, ClusterId clusterId, - EmberAfClusterMask mask, uint16_t manufacturerCode, uint8_t * index) +EmberAfCluster * emberAfFindClusterInType(EmberAfEndpointType * endpointType, ClusterId clusterId, EmberAfClusterMask mask, + uint8_t * index) { uint8_t i; uint8_t scopedIndex = 0; @@ -673,15 +651,6 @@ EmberAfCluster * emberAfFindClusterInTypeWithMfgCode(EmberAfEndpointType * endpo return NULL; } -// This functions wraps emberAfFindClusterInTypeWithMfgCode with -// a manufacturerCode of EMBER_AF_NULL_MANUFACTURER_CODE. -EmberAfCluster * emberAfFindClusterInType(EmberAfEndpointType * endpointType, ClusterId clusterId, EmberAfClusterMask mask) -{ - return emberAfFindClusterInTypeWithMfgCode(endpointType, clusterId, mask, EMBER_AF_NULL_MANUFACTURER_CODE); -} - -// This code is used during unit tests for clusters that do not involve manufacturer code. -// Should this code be used in other locations, manufacturerCode should be added. uint8_t emberAfClusterIndexInMatchingEndpoints(EndpointId endpoint, ClusterId clusterId, EmberAfClusterMask mask) { uint8_t ep; @@ -689,7 +658,7 @@ uint8_t emberAfClusterIndexInMatchingEndpoints(EndpointId endpoint, ClusterId cl for (ep = 0; ep < emberAfEndpointCount(); ep++) { EmberAfEndpointType * endpointType = emAfEndpoints[ep].endpointType; - if (emberAfFindClusterInTypeWithMfgCode(endpointType, clusterId, mask, EMBER_AF_NULL_MANUFACTURER_CODE) != NULL) + if (emberAfFindClusterInType(endpointType, clusterId, mask) != NULL) { index++; if (emAfEndpoints[ep].endpoint == endpoint) @@ -708,7 +677,7 @@ uint8_t emberAfClusterIndex(EndpointId endpoint, ClusterId clusterId, EmberAfClu for (ep = 0; ep < emberAfEndpointCount(); ep++) { EmberAfEndpointType * endpointType = emAfEndpoints[ep].endpointType; - if (emberAfFindClusterInTypeWithMfgCode(endpointType, clusterId, mask, EMBER_AF_NULL_MANUFACTURER_CODE, &index) != NULL) + if (emberAfFindClusterInType(endpointType, clusterId, mask, &index) != NULL) { if (emAfEndpoints[ep].endpoint == endpoint) { @@ -719,46 +688,26 @@ uint8_t emberAfClusterIndex(EndpointId endpoint, ClusterId clusterId, EmberAfClu return 0xFF; } -// Returns true uf endpoint contains passed cluster -bool emberAfContainsClusterWithMfgCode(EndpointId endpoint, ClusterId clusterId, uint16_t manufacturerCode) -{ - return (emberAfFindClusterWithMfgCode(endpoint, clusterId, 0, manufacturerCode) != NULL); -} - -// Returns true if endpoint contains passed cluster as a server -bool emberAfContainsServerWithMfgCode(EndpointId endpoint, ClusterId clusterId, uint16_t manufacturerCode) -{ - return (emberAfFindClusterWithMfgCode(endpoint, clusterId, CLUSTER_MASK_SERVER, manufacturerCode) != NULL); -} - -// Returns true if endpoint contains passed cluster as a client -bool emberAfContainsClientWithMfgCode(EndpointId endpoint, ClusterId clusterId, uint16_t manufacturerCode) -{ - return (emberAfFindClusterWithMfgCode(endpoint, clusterId, CLUSTER_MASK_CLIENT, manufacturerCode) != NULL); -} - -// Wraps emberAfContainsClusterWithMfgCode with EMBER_AF_NULL_MANUFACTURER_CODE -// This will find the first cluster that has the clusterId given, regardless of mfgCode. +// Returns whether the given endpoint has the client or server of the given +// cluster on it. bool emberAfContainsCluster(EndpointId endpoint, ClusterId clusterId) { - return (emberAfFindClusterWithMfgCode(endpoint, clusterId, 0, EMBER_AF_NULL_MANUFACTURER_CODE) != NULL); + return (emberAfFindCluster(endpoint, clusterId, 0) != NULL); } -// Wraps emberAfContainsServerWithMfgCode with EMBER_AF_NULL_MANUFACTURER_CODE -// This will find the first server that has the clusterId given, regardless of mfgCode. +// Returns whether the given endpoint has the server of the given cluster on it. bool emberAfContainsServer(EndpointId endpoint, ClusterId clusterId) { - return (emberAfFindClusterWithMfgCode(endpoint, clusterId, CLUSTER_MASK_SERVER, EMBER_AF_NULL_MANUFACTURER_CODE) != NULL); + return (emberAfFindCluster(endpoint, clusterId, CLUSTER_MASK_SERVER) != NULL); } -// Wraps emberAfContainsClientWithMfgCode with EMBER_AF_NULL_MANUFACTURER_CODE -// This will find the first client that has the clusterId given, regardless of mfgCode. +// Returns whether the given endpoint has the client of the given cluster on it. bool emberAfContainsClient(EndpointId endpoint, ClusterId clusterId) { - return (emberAfFindClusterWithMfgCode(endpoint, clusterId, CLUSTER_MASK_CLIENT, EMBER_AF_NULL_MANUFACTURER_CODE) != NULL); + return (emberAfFindCluster(endpoint, clusterId, CLUSTER_MASK_CLIENT) != NULL); } -// This will find the first server that has the clusterId given from the index of endpoint, regardless of mfgCode. +// This will find the first server that has the clusterId given from the index of endpoint. bool emberAfContainsServerFromIndex(uint16_t index, ClusterId clusterId) { if (index == 0xFFFF) @@ -767,8 +716,7 @@ bool emberAfContainsServerFromIndex(uint16_t index, ClusterId clusterId) } else { - return emberAfFindClusterInTypeWithMfgCode(emAfEndpoints[index].endpointType, clusterId, CLUSTER_MASK_SERVER, - EMBER_AF_NULL_MANUFACTURER_CODE); + return emberAfFindClusterInType(emAfEndpoints[index].endpointType, clusterId, CLUSTER_MASK_SERVER); } } @@ -805,9 +753,8 @@ void EnabledEndpointsWithServerCluster::EnsureMatchingEndpoint() } // namespace app } // namespace chip -// Finds the cluster that matches endpoint, clusterId, direction, and manufacturerCode. -EmberAfCluster * emberAfFindClusterWithMfgCode(EndpointId endpoint, ClusterId clusterId, EmberAfClusterMask mask, - uint16_t manufacturerCode) +// Finds the cluster that matches endpoint, clusterId, direction. +EmberAfCluster * emberAfFindCluster(EndpointId endpoint, ClusterId clusterId, EmberAfClusterMask mask) { uint16_t ep = emberAfIndexFromEndpoint(endpoint); if (ep == 0xFFFF) @@ -816,70 +763,39 @@ EmberAfCluster * emberAfFindClusterWithMfgCode(EndpointId endpoint, ClusterId cl } else { - return emberAfFindClusterInTypeWithMfgCode(emAfEndpoints[ep].endpointType, clusterId, mask, manufacturerCode); + return emberAfFindClusterInType(emAfEndpoints[ep].endpointType, clusterId, mask); } } -// This function wraps emberAfFindClusterWithMfgCode with EMBER_AF_NULL_MANUFACTURER_CODE -// and will ignore the manufacturerCode when trying to find clusters. -// This will return the first cluster in the cluster table that matches the parameters given. -EmberAfCluster * emberAfFindCluster(EndpointId endpoint, ClusterId clusterId, EmberAfClusterMask mask) -{ - return emberAfFindClusterWithMfgCode(endpoint, clusterId, mask, EMBER_AF_NULL_MANUFACTURER_CODE); -} - // Returns cluster within the endpoint; Does not ignore disabled endpoints -EmberAfCluster * emberAfFindClusterIncludingDisabledEndpointsWithMfgCode(EndpointId endpoint, ClusterId clusterId, - EmberAfClusterMask mask, uint16_t manufacturerCode) +EmberAfCluster * emberAfFindClusterIncludingDisabledEndpoints(EndpointId endpoint, ClusterId clusterId, EmberAfClusterMask mask) { uint16_t ep = emberAfIndexFromEndpointIncludingDisabledEndpoints(endpoint); if (ep < MAX_ENDPOINT_COUNT) { - return emberAfFindClusterInTypeWithMfgCode(emAfEndpoints[ep].endpointType, clusterId, mask, manufacturerCode); + return emberAfFindClusterInType(emAfEndpoints[ep].endpointType, clusterId, mask); } return NULL; } -// Returns cluster within the endpoint; Does not ignore disabled endpoints -// This will ignore manufacturerCode. -EmberAfCluster * emberAfFindClusterIncludingDisabledEndpoints(EndpointId endpoint, ClusterId clusterId, EmberAfClusterMask mask) -{ - return emberAfFindClusterIncludingDisabledEndpointsWithMfgCode(endpoint, clusterId, mask, EMBER_AF_NULL_MANUFACTURER_CODE); -} - -// Server wrapper for findClusterEndpointIndex. -static uint16_t emberAfFindClusterServerEndpointIndexWithMfgCode(EndpointId endpoint, ClusterId clusterId, - uint16_t manufacturerCode) -{ - return findClusterEndpointIndex(endpoint, clusterId, CLUSTER_MASK_SERVER, manufacturerCode); -} - -// Client wrapper for findClusterEndpointIndex. -uint16_t emberAfFindClusterClientEndpointIndexWithMfgCode(EndpointId endpoint, ClusterId clusterId, uint16_t manufacturerCode) -{ - return findClusterEndpointIndex(endpoint, clusterId, CLUSTER_MASK_CLIENT, manufacturerCode); -} - // Server wrapper for findClusterEndpointIndex -// This will ignore manufacturerCode, and return the index for the first server that matches on clusterId uint16_t emberAfFindClusterServerEndpointIndex(EndpointId endpoint, ClusterId clusterId) { - return emberAfFindClusterServerEndpointIndexWithMfgCode(endpoint, clusterId, EMBER_AF_NULL_MANUFACTURER_CODE); + return findClusterEndpointIndex(endpoint, clusterId, CLUSTER_MASK_SERVER); } // Client wrapper for findClusterEndpointIndex -// This will ignore manufacturerCode, and return the index for the first client that matches on clusterId uint16_t emberAfFindClusterClientEndpointIndex(EndpointId endpoint, ClusterId clusterId) { - return emberAfFindClusterClientEndpointIndexWithMfgCode(endpoint, clusterId, EMBER_AF_NULL_MANUFACTURER_CODE); + return findClusterEndpointIndex(endpoint, clusterId, CLUSTER_MASK_CLIENT); } // Returns the endpoint index within a given cluster -static uint16_t findClusterEndpointIndex(EndpointId endpoint, ClusterId clusterId, uint8_t mask, uint16_t manufacturerCode) +static uint16_t findClusterEndpointIndex(EndpointId endpoint, ClusterId clusterId, uint8_t mask) { uint16_t i, epi = 0; - if (emberAfFindClusterWithMfgCode(endpoint, clusterId, mask, manufacturerCode) == NULL) + if (emberAfFindCluster(endpoint, clusterId, mask) == NULL) { return 0xFFFF; } @@ -890,11 +806,8 @@ static uint16_t findClusterEndpointIndex(EndpointId endpoint, ClusterId clusterI { break; } - epi = static_cast(epi + - ((emberAfFindClusterIncludingDisabledEndpointsWithMfgCode(emAfEndpoints[i].endpoint, clusterId, - mask, manufacturerCode) != NULL) - ? 1 - : 0)); + epi = static_cast( + epi + ((emberAfFindClusterIncludingDisabledEndpoints(emAfEndpoints[i].endpoint, clusterId, mask) != NULL) ? 1 : 0)); } return epi; diff --git a/src/app/util/attribute-storage.h b/src/app/util/attribute-storage.h index 19972b0cd9a20e..504a6241844999 100644 --- a/src/app/util/attribute-storage.h +++ b/src/app/util/attribute-storage.h @@ -128,8 +128,6 @@ bool emAfMatchCluster(EmberAfCluster * cluster, EmberAfAttributeSearchRecord * a bool emAfMatchAttribute(EmberAfCluster * cluster, EmberAfAttributeMetadata * am, EmberAfAttributeSearchRecord * attRecord); // Check if a cluster is implemented or not. If yes, the cluster is returned. -// If the cluster is not manufacturerSpecific [ClusterId < FC00] then -// manufacturerCode argument is ignored otherwise checked. // // mask = 0 -> find either client or server // mask = CLUSTER_MASK_CLIENT -> find client @@ -138,10 +136,8 @@ bool emAfMatchAttribute(EmberAfCluster * cluster, EmberAfAttributeMetadata * am, // If a pointer to an index is provided, it will be updated to point to the relative index of the cluster // within the set of clusters that match the mask criteria. // -EmberAfCluster * emberAfFindClusterInTypeWithMfgCode(EmberAfEndpointType * endpointType, chip::ClusterId clusterId, - EmberAfClusterMask mask, uint16_t manufacturerCode, uint8_t * index = nullptr); - -EmberAfCluster * emberAfFindClusterInType(EmberAfEndpointType * endpointType, chip::ClusterId clusterId, EmberAfClusterMask mask); +EmberAfCluster * emberAfFindClusterInType(EmberAfEndpointType * endpointType, chip::ClusterId clusterId, EmberAfClusterMask mask, + uint8_t * index = nullptr); // For a given cluster and mask, retrieves the list of endpoints sorted by endpoint that contain the matching cluster and returns // the index within that list that matches the given endpoint. @@ -182,19 +178,9 @@ chip::Optional emberAfGetNthClusterId(chip::EndpointId endpoint uint8_t emberAfGetClustersFromEndpoint(chip::EndpointId endpoint, chip::ClusterId * clusterList, uint8_t listLen, bool server); // Returns cluster within the endpoint, or NULL if it isn't there -EmberAfCluster * emberAfFindClusterWithMfgCode(chip::EndpointId endpoint, chip::ClusterId clusterId, EmberAfClusterMask mask, - uint16_t manufacturerCode); - -// Returns cluster within the endpoint, or NULL if it isn't there -// This wraps emberAfFindClusterWithMfgCode with EMBER_AF_NULL_MANUFACTURER_CODE EmberAfCluster * emberAfFindCluster(chip::EndpointId endpoint, chip::ClusterId clusterId, EmberAfClusterMask mask); // Returns cluster within the endpoint; Does not ignore disabled endpoints -EmberAfCluster * emberAfFindClusterIncludingDisabledEndpointsWithMfgCode(chip::EndpointId endpoint, chip::ClusterId clusterId, - EmberAfClusterMask mask, uint16_t manufacturerCode); - -// Returns cluster within the endpoint; Does not ignore disabled endpoints -// This wraps emberAfFindClusterIncludingDisabledEndpointsWithMfgCode with EMBER_AF_NULL_MANUFACTURER_CODE EmberAfCluster * emberAfFindClusterIncludingDisabledEndpoints(chip::EndpointId endpoint, chip::ClusterId clusterId, EmberAfClusterMask mask); @@ -226,25 +212,15 @@ EmberAfStatus emAfClusterPreAttributeChangedCallback(const chip::app::ConcreteAt uint8_t clientServerMask, EmberAfAttributeType attributeType, uint16_t size, uint8_t * value); -// Calls the default response callback for a specific cluster, and wraps emberAfClusterDefaultResponseWithMfgCodeCallback +// Calls the default response callback for a specific cluster. // with the EMBER_NULL_MANUFACTURER_CODE void emberAfClusterDefaultResponseCallback(chip::EndpointId endpoint, chip::ClusterId clusterId, chip::CommandId commandId, EmberAfStatus status, uint8_t clientServerMask); -// Calls the default response callback for a specific cluster. -void emberAfClusterDefaultResponseWithMfgCodeCallback(chip::EndpointId endpoint, chip::ClusterId clusterId, - chip::CommandId commandId, EmberAfStatus status, uint8_t clientServerMask, - uint16_t manufacturerCode); - -// Calls the message sent callback for a specific cluster, and wraps emberAfClusterMessageSentWithMfgCodeCallback +// Calls the message sent callback for a specific cluster. void emberAfClusterMessageSentCallback(const chip::MessageSendDestination & destination, EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, EmberStatus status); -// Calls the message sent callback for a specific cluster. -void emberAfClusterMessageSentWithMfgCodeCallback(const chip::MessageSendDestination & destination, EmberApsFrame * apsFrame, - uint16_t msgLen, uint8_t * message, EmberStatus status, - uint16_t manufacturerCode); - // Checks a cluster mask byte against ticks passed bitmask // returns true if the mask matches a passed interval bool emberAfCheckTick(EmberAfClusterMask mask, uint8_t passedMask); diff --git a/src/app/util/ember-compatibility-functions.cpp b/src/app/util/ember-compatibility-functions.cpp index 321d4168052da5..3b76151fb3d863 100644 --- a/src/app/util/ember-compatibility-functions.cpp +++ b/src/app/util/ember-compatibility-functions.cpp @@ -382,7 +382,7 @@ CHIP_ERROR ReadSingleClusterData(const SubjectDescriptor & aSubjectDescriptor, c else { attributeMetadata = - emberAfLocateAttributeMetadata(aPath.mEndpointId, aPath.mClusterId, aPath.mAttributeId, CLUSTER_MASK_SERVER, 0); + emberAfLocateAttributeMetadata(aPath.mEndpointId, aPath.mClusterId, aPath.mAttributeId, CLUSTER_MASK_SERVER); } if (attributeCluster == nullptr && attributeMetadata == nullptr) @@ -835,7 +835,7 @@ CHIP_ERROR WriteSingleClusterData(const SubjectDescriptor & aSubjectDescriptor, // happen when the above TODO is resolved. ConcreteDataAttributePath aPath(aClusterInfo.mEndpointId, aClusterInfo.mClusterId, aClusterInfo.mAttributeId); const EmberAfAttributeMetadata * attributeMetadata = - emberAfLocateAttributeMetadata(aPath.mEndpointId, aPath.mClusterId, aPath.mAttributeId, CLUSTER_MASK_SERVER, 0); + emberAfLocateAttributeMetadata(aPath.mEndpointId, aPath.mClusterId, aPath.mAttributeId, CLUSTER_MASK_SERVER); AttributePathParams attributePathParams(aPath.mEndpointId, aPath.mClusterId, aPath.mAttributeId); diff --git a/src/app/zap-templates/common/ClusterTestGeneration.js b/src/app/zap-templates/common/ClusterTestGeneration.js index 59b2bc904c6b95..936611a8c71acc 100644 --- a/src/app/zap-templates/common/ClusterTestGeneration.js +++ b/src/app/zap-templates/common/ClusterTestGeneration.js @@ -26,9 +26,10 @@ const path = require('path'); // Import helpers from zap core const templateUtil = require(zapPath + 'dist/src-electron/generator/template-util.js') -const { getClusters, getCommands, getAttributes, isTestOnlyCluster } = require('./simulated-clusters/SimulatedClusters.js'); -const { asBlocks, ensureClusters } = require('./ClustersHelper.js'); -const { Variables } = require('./variables/Variables.js'); +const { getClusters, getCommands, getAttributes, getEvents, isTestOnlyCluster } += require('./simulated-clusters/SimulatedClusters.js'); +const { asBlocks, ensureClusters } = require('./ClustersHelper.js'); +const { Variables } = require('./variables/Variables.js'); const kIdentityName = 'identity'; const kClusterName = 'cluster'; @@ -86,6 +87,15 @@ function setDefaultTypeForWaitCommand(test) { const type = test[kWaitCommandName]; switch (type) { + case 'readEvent': + test.isEvent = true; + test.isReadEvent = true; + break; + case 'subscribeEvent': + test.isEvent = true; + test.isSubscribe = true; + test.isSubscribeEvent = true; + break; case 'readAttribute': test.isAttribute = true; test.isReadAttribute = true; @@ -96,6 +106,7 @@ function setDefaultTypeForWaitCommand(test) break; case 'subscribeAttribute': test.isAttribute = true; + test.isSubscribe = true; test.isSubscribeAttribute = true; break; default: @@ -111,6 +122,19 @@ function setDefaultTypeForCommand(test) { const type = test[kCommandName]; switch (type) { + case 'readEvent': + test.commandName = 'Read'; + test.isEvent = true; + test.isReadEvent = true; + break; + + case 'subscribeEvent': + test.commandName = 'Subscribe'; + test.isEvent = true; + test.isSubscribe = true; + test.isSubscribeEvent = true; + break; + case 'readAttribute': test.commandName = 'Read'; test.isAttribute = true; @@ -130,6 +154,7 @@ function setDefaultTypeForCommand(test) case 'subscribeAttribute': test.commandName = 'Subscribe'; test.isAttribute = true; + test.isSubscribe = true; test.isSubscribeAttribute = true; break; @@ -243,13 +268,13 @@ function setDefaultResponse(test) return; } - if (!test.isAttribute) { + if (!test.isAttribute && !test.isEvent) { return; } - if (test.isWriteAttribute || test.isSubscribeAttribute) { + if (test.isWriteAttribute || test.isSubscribe) { if (hasResponseValueOrConstraints) { - const errorStr = 'Attribute test has a "value" or a "constraints" defined.'; + const errorStr = 'Test has a "value" or a "constraints" defined.'; throwError(test, errorStr); } @@ -263,14 +288,19 @@ function setDefaultResponse(test) throwError(test, errorStr); } + const name = test.isAttribute ? test.attribute : test.event; + const response = test[kResponseName]; if (hasResponseValue) { - test[kResponseName].values.push( - { name : test.attribute, value : test[kResponseName].value, saveAs : test[kResponseName].saveAs }); + const value = { name, value : response.value, saveAs : response.saveAs }; + response.values.push(value); } if (hasResponseConstraints) { - test[kResponseName].values.push( - { name : test.attribute, constraints : test[kResponseName].constraints, saveAs : test[kResponseName].saveAs }); + let constraints = { name : name, constraints : response.constraints }; + if ('saveAs' in response && !hasResponseValue) { + constraints.saveAs = response.saveAs; + } + response.values.push(constraints); } delete test[kResponseName].value; @@ -364,7 +394,7 @@ function printErrorAndExit(context, msg) process.exit(1); } -function assertCommandOrAttribute(context) +function assertCommandOrAttributeOrEvent(context) { const clusterName = context.cluster; return getClusters(context).then(clusters => { @@ -382,6 +412,9 @@ function assertCommandOrAttribute(context) } else if (context.isAttribute) { filterName = context.attribute; items = getAttributes(context, clusterName); + } else if (context.isEvent) { + filterName = context.event; + items = getEvents(context, clusterName); } else { printErrorAndExit(context, 'Unsupported command type: ', context); } @@ -389,17 +422,17 @@ function assertCommandOrAttribute(context) return items.then(items => { const filter = item => item.name.toLowerCase() == filterName.toLowerCase(); const item = items.find(filter); - const itemType = (context.isCommand ? 'Command' : 'Attribute'); + const itemType = (context.isCommand ? 'Command' : context.isAttribute ? 'Attribute' : 'Event'); - // If the command or attribute is not found, it could be because of a typo in the test - // description, or an attribute name not matching the spec, or a wrongly configured zap + // If the command/attribute/event is not found, it could be because of a typo in the test + // description, or an attribute/event name not matching the spec, or a wrongly configured zap // file. if (!item) { const names = items.map(item => item.name); printErrorAndExit(context, 'Missing ' + itemType + ' "' + filterName + '" in: \n\t* ' + names.join('\n\t* ')); } - // If the command or attribute has been found but the response can not be found, it could be + // If the command/attribute/event has been found but the response can not be found, it could be // because of a wrongly configured cluster definition. if (!item.response) { printErrorAndExit(context, 'Missing ' + itemType + ' "' + filterName + '" response'); @@ -437,7 +470,7 @@ function chip_tests_pics(options) async function chip_tests(list, options) { - // Set a global on our items so assertCommandOrAttribute can work. + // Set a global on our items so assertCommandOrAttributeOrEvent can work. let global = this.global; const items = Array.isArray(list) ? list : list.split(','); const names = items.map(name => name.trim()); @@ -448,11 +481,14 @@ async function chip_tests(list, options) test.tests = await Promise.all(test.tests.map(async function(item) { item.global = global; if (item.isCommand) { - let command = await assertCommandOrAttribute(item); + let command = await assertCommandOrAttributeOrEvent(item); item.commandObject = command; } else if (item.isAttribute) { - let attr = await assertCommandOrAttribute(item); + let attr = await assertCommandOrAttributeOrEvent(item); item.attributeObject = attr; + } else if (item.isEvent) { + let evt = await assertCommandOrAttributeOrEvent(item); + item.eventObject = evt; } return item; })); @@ -472,12 +508,7 @@ function chip_tests_items(options) return templateUtil.collectBlocks(this.tests, options, this); } -function chip_tests_config(options) -{ - return templateUtil.collectBlocks(this.variables.config, options, this); -} - -function getConfigVariable(context, name) +function getVariable(context, key, name) { while (!('variables' in context) && context.parent) { context = context.parent; @@ -487,33 +518,55 @@ function getConfigVariable(context, name) return null; } - return context.variables.config.find(variable => variable.name == name); + return context.variables[key].find(variable => variable.name == name); } -function getConfigVariableOrThrow(context, name) +function getVariableOrThrow(context, key, name) { - const variable = getConfigVariable(context, name); + const variable = getVariable(context, key, name); if (variable == null) { throw new Error(`Variable ${name} can not be found`); } return variable; } +function chip_tests_variables(options) +{ + return templateUtil.collectBlocks(this.variables.tests, options, this); +} + +function chip_tests_variables_has(name, options) +{ + const variable = getVariable(this, 'tests', name); + return !!variable; +} + +function chip_tests_variables_get_type(name, options) +{ + const variable = getVariableOrThrow(this, 'tests', name); + return variable.type; +} + +function chip_tests_config(options) +{ + return templateUtil.collectBlocks(this.variables.config, options, this); +} + function chip_tests_config_has(name, options) { - const variable = getConfigVariable(this, name); + const variable = getVariable(this, 'config', name); return !!variable; } function chip_tests_config_get_default_value(name, options) { - const variable = getConfigVariableOrThrow(this, name); + const variable = getVariableOrThrow(this, 'config', name); return variable.defaultValue; } function chip_tests_config_get_type(name, options) { - const variable = getConfigVariableOrThrow(this, name); + const variable = getVariableOrThrow(this, 'config', name); return variable.type; } @@ -557,9 +610,9 @@ function chip_tests_item_parameters(options) { const commandValues = this.arguments.values; - const promise = assertCommandOrAttribute(this).then(item => { - if (this.isAttribute && !this.isWriteAttribute) { - if (this.isSubscribeAttribute) { + const promise = assertCommandOrAttributeOrEvent(this).then(item => { + if ((this.isAttribute || this.isEvent) && !this.isWriteAttribute) { + if (this.isSubscribe) { const minInterval = { name : 'minInterval', type : 'int16u', chipType : 'uint16_t', definedValue : this.minInterval }; const maxInterval = { name : 'maxInterval', type : 'int16u', chipType : 'uint16_t', definedValue : this.maxInterval }; return [ minInterval, maxInterval ]; @@ -595,7 +648,7 @@ function chip_tests_item_response_parameters(options) { const responseValues = this.response.values.slice(); - const promise = assertCommandOrAttribute(this).then(item => { + const promise = assertCommandOrAttributeOrEvent(this).then(item => { if (this.isWriteAttribute) { return []; } @@ -686,6 +739,9 @@ exports.chip_tests_config = chip_tests_config; exports.chip_tests_config_has = chip_tests_config_has; exports.chip_tests_config_get_default_value = chip_tests_config_get_default_value; exports.chip_tests_config_get_type = chip_tests_config_get_type; +exports.chip_tests_variables = chip_tests_variables; +exports.chip_tests_variables_has = chip_tests_variables_has; +exports.chip_tests_variables_get_type = chip_tests_variables_get_type; exports.isTestOnlyCluster = isTestOnlyCluster; exports.isLiteralNull = isLiteralNull; exports.octetStringEscapedForCLiteral = octetStringEscapedForCLiteral; diff --git a/src/app/zap-templates/common/ClustersHelper.js b/src/app/zap-templates/common/ClustersHelper.js index 7d15993497f0ed..66c5a6d3ecdefd 100644 --- a/src/app/zap-templates/common/ClustersHelper.js +++ b/src/app/zap-templates/common/ClustersHelper.js @@ -425,6 +425,23 @@ function enhancedCommands(commands, types) return commands; } +function enhancedEvents(events, types) +{ + events.forEach(event => { + const argument = { + name : event.name, + type : event.name, + isList : false, + isArray : false, + isEvent : true, + isNullable : false, + label : event.name, + }; + event.response = { arguments : [ argument ] }; + }); + return events; +} + function enhancedAttributes(attributes, globalAttributes, types) { attributes.forEach(attribute => { @@ -442,6 +459,7 @@ function enhancedAttributes(attributes, globalAttributes, types) size : attribute.size, isList : attribute.isList, isArray : attribute.isList, + isEvent : false, isNullable : attribute.isNullable, chipType : attribute.chipType, chipCallback : attribute.chipCallback, @@ -491,7 +509,7 @@ Clusters.init = async function(context) { this._clusters = clusters; this._commands = enhancedCommands(commands, types); this._attributes = enhancedAttributes(attributes, globalAttributes, types); - this._events = events; + this._events = enhancedEvents(events, types); return this.ready.resolve(); }, err => this.ready.reject(err)); diff --git a/src/app/zap-templates/common/simulated-clusters/SimulatedClusters.js b/src/app/zap-templates/common/simulated-clusters/SimulatedClusters.js index 19ace7b76d17f4..edc1d0b8e5c841 100644 --- a/src/app/zap-templates/common/simulated-clusters/SimulatedClusters.js +++ b/src/app/zap-templates/common/simulated-clusters/SimulatedClusters.js @@ -50,6 +50,12 @@ function getAttributes(context, clusterName) return cluster ? Promise.resolve(cluster.attributes) : ensureClusters(context).getServerAttributes(clusterName); } +function getEvents(context, clusterName) +{ + const cluster = getSimulatedCluster(clusterName); + return cluster ? Promise.resolve(cluster.events) : ensureClusters(context).getServerEvents(clusterName); +} + function isTestOnlyCluster(clusterName) { return !!getSimulatedCluster(clusterName); @@ -61,4 +67,5 @@ function isTestOnlyCluster(clusterName) exports.getClusters = getClusters; exports.getCommands = getCommands; exports.getAttributes = getAttributes; +exports.getEvents = getEvents; exports.isTestOnlyCluster = isTestOnlyCluster; diff --git a/src/app/zap-templates/partials/cluster-objects-field-init.zapt b/src/app/zap-templates/partials/cluster-objects-field-init.zapt new file mode 100644 index 00000000000000..b6729e7eac3d7e --- /dev/null +++ b/src/app/zap-templates/partials/cluster-objects-field-init.zapt @@ -0,0 +1,17 @@ +{{! For now, just initialize fields to type defaults. Longer-term, we + may want to use spec-defined default values here. }} +{{#unless isOptional}} {{! Optionals inited by constructor }} + {{~#unless isNullable}} {{! Nullables inited by constructor }} + {{~#unless isArray}} {{! DataModel lists inited by constructor }} + {{~#unless entryType}} {{! DataModel lists (for attributes) inited by constructor }} + {{~#unless (isString type)}} {{! Strings are Spans, inited by constructor }} + {{~#if_is_struct type}} + {{! Structs have their own initializers }} + {{~else~}} + = static_cast<{{zapTypeToEncodableClusterObjectType type}}>(0) + {{~/if_is_struct}} + {{~/unless}} + {{~/unless}} + {{~/unless}} + {{~/unless}} +{{~/unless}} \ No newline at end of file diff --git a/src/app/zap-templates/templates/app/cluster-objects.zapt b/src/app/zap-templates/templates/app/cluster-objects.zapt index 762649454499e3..d6684e20ddb768 100644 --- a/src/app/zap-templates/templates/app/cluster-objects.zapt +++ b/src/app/zap-templates/templates/app/cluster-objects.zapt @@ -111,7 +111,7 @@ public: static constexpr ClusterId GetClusterId() { return Clusters::{{asUpperCamelCase parent.name}}::Id; } {{#zcl_command_arguments}} - {{zapTypeToEncodableClusterObjectType type}} {{asLowerCamelCase label}}; + {{zapTypeToEncodableClusterObjectType type}} {{asLowerCamelCase label}}{{> cluster_objects_field_init}}; {{/zcl_command_arguments}} CHIP_ERROR Encode(TLV::TLVWriter &writer, TLV::Tag tag) const; @@ -132,7 +132,7 @@ public: static constexpr ClusterId GetClusterId() { return Clusters::{{asUpperCamelCase parent.name}}::Id; } {{#zcl_command_arguments}} - {{zapTypeToDecodableClusterObjectType type}} {{asLowerCamelCase label}}; + {{zapTypeToDecodableClusterObjectType type}} {{asLowerCamelCase label}}{{> cluster_objects_field_init}}; {{/zcl_command_arguments}} CHIP_ERROR Decode(TLV::TLVReader &reader); }; @@ -174,7 +174,9 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader &reader, const ConcreteAttributePath &path); {{#zcl_attributes_server}} - Attributes::{{asUpperCamelCase label}}::TypeInfo::DecodableType {{asLowerCamelCase label}}; + {{! isOptional=false because optional attributes don't get represented + as Optional types here. }} + Attributes::{{asUpperCamelCase label}}::TypeInfo::DecodableType {{asLowerCamelCase label}}{{> cluster_objects_field_init isOptional=false}}; {{/zcl_attributes_server}} }; }; @@ -201,7 +203,7 @@ public: static constexpr ClusterId GetClusterId() { return Clusters::{{asUpperCamelCase parent.name}}::Id; } {{#zcl_event_fields}} - {{zapTypeToEncodableClusterObjectType type}} {{asLowerCamelCase name}}; + {{zapTypeToEncodableClusterObjectType type}} {{asLowerCamelCase name}}{{> cluster_objects_field_init}}; {{/zcl_event_fields}} CHIP_ERROR Encode(TLV::TLVWriter &writer, TLV::Tag tag) const; @@ -214,7 +216,7 @@ public: static constexpr ClusterId GetClusterId() { return Clusters::{{asUpperCamelCase parent.name}}::Id; } {{#zcl_event_fields}} - {{zapTypeToDecodableClusterObjectType type}} {{asLowerCamelCase name}}; + {{zapTypeToDecodableClusterObjectType type}} {{asLowerCamelCase name}}{{> cluster_objects_field_init}}; {{/zcl_event_fields}} CHIP_ERROR Decode(TLV::TLVReader &reader); diff --git a/src/app/zap-templates/templates/app/helper.js b/src/app/zap-templates/templates/app/helper.js index 0af4118c78b719..efff1cf2b38aa3 100644 --- a/src/app/zap-templates/templates/app/helper.js +++ b/src/app/zap-templates/templates/app/helper.js @@ -21,12 +21,21 @@ const templateUtil = require(zapPath + 'generator/template-util.js') const zclHelper = require(zapPath + 'generator/helper-zcl.js') const queryCommand = require(zapPath + 'db/query-command.js') const zclQuery = require(zapPath + 'db/query-zcl.js') +const queryEvents = require(zapPath + 'db/query-event.js') const cHelper = require(zapPath + 'generator/helper-c.js') const string = require(zapPath + 'util/string.js') +const dbEnum = require(zapPath + '../src-shared/db-enum.js') const StringHelper = require('../../common/StringHelper.js'); const ChipTypesHelper = require('../../common/ChipTypesHelper.js'); +zclHelper['isEvent'] = function(db, event_name, packageId) { + return queryEvents + .selectAllEvents(db, packageId) + .then(events => events.find(event => event.name == event_name)) + .then(events => events ? 'event' : dbEnum.zclType.unknown); +} + // This list of attributes is taken from section '11.2. Global Attributes' of the // Data Model specification. const kGlobalAttributes = [ @@ -398,6 +407,10 @@ async function zapTypeToClusterObjectType(type, isDecodable, options) return ns + 'Structs::' + type + '::' + (isDecodable ? 'DecodableType' : 'Type'); } + if (await typeChecker('isEvent')) { + return ns + 'Events::' + type + '::' + (isDecodable ? 'DecodableType' : 'Type'); + } + return zclHelper.asUnderlyingZclType.call({ global : this.global }, type, options); } @@ -690,6 +703,22 @@ function hasProperty(obj, prop) return prop in obj; } +async function zcl_events_fields_by_event_name(name, options) +{ + const { db, sessionId } = this.global; + const packageId = await templateUtil.ensureZclPackageId(this) + + const promise = queryEvents.selectAllEvents(db, packageId) + .then(events => events.find(event => event.name == name)) + .then(evt => queryEvents.selectEventFieldsByEventId(db, evt.id)) + .then(fields => fields.map(field => { + field.label = field.name; + return field; + })) + .then(fields => templateUtil.collectBlocks(fields, options, this)) + return templateUtil.templatePromise(this.global, promise) +} + // // Module exports // @@ -710,3 +739,4 @@ exports.getResponseCommandName = getResponseCommandName; exports.isWeaklyTypedEnum = isWeaklyTypedEnum; exports.getPythonFieldDefault = getPythonFieldDefault; exports.incrementDepth = incrementDepth; +exports.zcl_events_fields_by_event_name = zcl_events_fields_by_event_name; diff --git a/src/controller/java/AndroidDeviceControllerWrapper.h b/src/controller/java/AndroidDeviceControllerWrapper.h index 02c26e1a1dcbe8..bddf910a077c7a 100644 --- a/src/controller/java/AndroidDeviceControllerWrapper.h +++ b/src/controller/java/AndroidDeviceControllerWrapper.h @@ -120,12 +120,12 @@ class AndroidDeviceControllerWrapper : public chip::Controller::DevicePairingDel bool mNodeIdRequested = false; // These fields allow us to release the string/byte array memory later. - jstring ssidStr; - jstring passwordStr; - const char * ssid; - const char * password; - jbyteArray operationalDatasetBytes; - jbyte * operationalDataset; + jstring ssidStr = nullptr; + jstring passwordStr = nullptr; + const char * ssid = nullptr; + const char * password = nullptr; + jbyteArray operationalDatasetBytes = nullptr; + jbyte * operationalDataset = nullptr; AndroidDeviceControllerWrapper(ChipDeviceControllerPtr controller) : mController(std::move(controller)) { diff --git a/src/darwin/Framework/CHIP/templates/helper.js b/src/darwin/Framework/CHIP/templates/helper.js index 7aa0599390bf77..d79ab45d90d4c6 100644 --- a/src/darwin/Framework/CHIP/templates/helper.js +++ b/src/darwin/Framework/CHIP/templates/helper.js @@ -66,12 +66,12 @@ function asTestValue() } } -function asObjectiveCBasicType(type) +function asObjectiveCBasicType(type, options) { if (StringHelper.isOctetString(type)) { - return 'NSData *'; + return options.hash.is_mutable ? 'NSMutableData *' : 'NSData *'; } else if (StringHelper.isCharString(type)) { - return 'NSString *'; + return options.hash.is_mutable ? 'NSMutableString *' : 'NSString *'; } else { return ChipTypesHelper.asBasicType(this.chipType); } diff --git a/src/darwin/Framework/CHIP/templates/partials/check_test_value.zapt b/src/darwin/Framework/CHIP/templates/partials/check_test_value.zapt index 4da8e480ea8f40..7ef670c1723cc4 100644 --- a/src/darwin/Framework/CHIP/templates/partials/check_test_value.zapt +++ b/src/darwin/Framework/CHIP/templates/partials/check_test_value.zapt @@ -27,7 +27,13 @@ {{! Maybe we should add a check for properties in the expected object (other than "global") that are not present in the struct ? }} {{else}} - {{#if (isOctetString type)}} + {{#if (chip_tests_variables_has expected)}} + {{#if (isString type)}} + XCTAssertEqualObjects({{actual}}, {{expected}}); + {{else}} + XCTAssertEqual([{{actual}} {{asObjectiveCNumberType "" type true}}Value], {{expected}}); + {{/if}} + {{else if (isOctetString type)}} XCTAssertTrue([{{actual}} isEqualToData:[[NSData alloc] initWithBytes:"{{octetStringEscapedForCLiteral expected}}" length:{{expected.length}}]]); {{else if (isCharString type)}} XCTAssertTrue([{{actual}} isEqualToString:@"{{expected}}"]); diff --git a/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt b/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt index 2dc923a4739c32..a302c592fc4ac6 100644 --- a/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt +++ b/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt @@ -5,7 +5,7 @@ bool testSendCluster{{parent.filename}}_{{asTestIndex index}}_{{asUpperCamelCase {{/if}} {{#chip_tests_item_response_parameters}} {{#if saveAs}} -{{asBasicType chipType}} {{saveAs}}; +{{asObjectiveCBasicType type is_mutable=true}} {{saveAs}}; {{/if}} {{/chip_tests_item_response_parameters}} @@ -103,8 +103,14 @@ ResponseHandler {{> subscribeDataCallback}} = nil; {{> actualValue}} {{>check_test_value actual="actualValue" expected=expectedValue cluster=../cluster}} {{#if saveAs}} + {{#if (isOctetString type)}} + {{saveAs}} = [NSMutableData dataWithData:actualValue]; + {{else if (isCharString type)}} + {{saveAs}} = [NSMutableString stringWithString:actualValue]; + {{else}} {{saveAs}} = [actualValue {{asObjectiveCNumberType "" type true}}Value]; {{/if}} + {{/if}} } {{/if}} {{#if hasExpectedConstraints}} @@ -177,7 +183,11 @@ ResponseHandler {{> subscribeDataCallback}} = nil; XCTAssertFalse(actualValue == nil); {{else}} if (actualValue != nil) { + {{#if (isString type)}} + XCTAssertNotEqualObjects(actualValue, {{expectedConstraints.notValue}}); + {{else}} XCTAssertNotEqual([actualValue {{asObjectiveCNumberType "" type true}}Value], {{asTypedLiteral expectedConstraints.notValue type}}); + {{/if}} } {{/if}} } diff --git a/src/darwin/Framework/CHIP/templates/partials/test_value.zapt b/src/darwin/Framework/CHIP/templates/partials/test_value.zapt index 74488126dd1876..2e022ced5e50f8 100644 --- a/src/darwin/Framework/CHIP/templates/partials/test_value.zapt +++ b/src/darwin/Framework/CHIP/templates/partials/test_value.zapt @@ -27,6 +27,12 @@ {{/if_include_struct_item_value}} {{/zcl_struct_items_by_struct_name}} + {{else if (chip_tests_variables_has definedValue)}} + {{#if (isString type)}} + {{target}} = [{{definedValue}} copy]; + {{else}} + {{target}} = [NSNumber numberWith{{asObjectiveCNumberType definedValue type false}}:{{definedValue}}]; + {{/if}} {{else if (isCharString type)}} {{target}} = @"{{definedValue}}"; {{else if (isOctetString type)}} diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index d99f9a8b777c87..463a561546abcd 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -38339,6 +38339,394 @@ - (void)testSendClusterTestSaveAs_000093_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } +NSMutableString * readAttributeCharStringDefaultValue; +- (void)testSendClusterTestSaveAs_000094_ReadAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute char_string Default Value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute char_string Default Value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertTrue([actualValue isEqualToString:@""]); + readAttributeCharStringDefaultValue = [NSMutableString stringWithString:actualValue]; + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000095_ReadAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"Read attribute char_string Default Value and compare to saved value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute char_string Default Value and compare to saved value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertEqualObjects(actualValue, readAttributeCharStringDefaultValue); + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000096_WriteAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute char_string Not Default Value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + id charStringArgument; + charStringArgument = @"NotDefault"; + [cluster writeAttributeCharStringWithValue:charStringArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute char_string Not Default Value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +NSMutableString * readAttributeCharStringNotDefaultValue; +- (void)testSendClusterTestSaveAs_000097_ReadAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute char_string Not Default Value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute char_string Not Default Value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertTrue([actualValue isEqualToString:@"NotDefault"]); + readAttributeCharStringNotDefaultValue = [NSMutableString stringWithString:actualValue]; + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000098_ReadAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"Read attribute char_string Not Default Value and compare to saved value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute char_string Not Default Value and compare to saved value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertEqualObjects(actualValue, readAttributeCharStringNotDefaultValue); + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000099_WriteAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"Write attribute char_string Not Default Value from saved value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + id charStringArgument; + charStringArgument = [readAttributeCharStringNotDefaultValue copy]; + [cluster writeAttributeCharStringWithValue:charStringArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute char_string Not Default Value from saved value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000100_ReadAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"Read attribute char_string Not Default Value and compare to expected value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute char_string Not Default Value and compare to expected value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertTrue([actualValue isEqualToString:@"NotDefault"]); + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000101_WriteAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute char_string Default Value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + id charStringArgument; + charStringArgument = [readAttributeCharStringDefaultValue copy]; + [cluster writeAttributeCharStringWithValue:charStringArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute char_string Default Value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +NSMutableData * readAttributeOctetStringDefaultValue; +- (void)testSendClusterTestSaveAs_000102_ReadAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute octet_string Default Value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute octet_string Default Value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertTrue([actualValue isEqualToData:[[NSData alloc] initWithBytes:"" length:0]]); + readAttributeOctetStringDefaultValue = [NSMutableData dataWithData:actualValue]; + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000103_ReadAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"Read attribute octet_string Default Value and compare to saved value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute octet_string Default Value and compare to saved value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertEqualObjects(actualValue, readAttributeOctetStringDefaultValue); + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000104_WriteAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute octet_string Not Default Value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + id octetStringArgument; + octetStringArgument = [[NSData alloc] initWithBytes:"NotDefault" length:10]; + [cluster writeAttributeOctetStringWithValue:octetStringArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute octet_string Not Default Value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +NSMutableData * readAttributeOctetStringNotDefaultValue; +- (void)testSendClusterTestSaveAs_000105_ReadAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute octet_string Not Default Value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute octet_string Not Default Value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertTrue([actualValue isEqualToData:[[NSData alloc] initWithBytes:"NotDefault" length:10]]); + readAttributeOctetStringNotDefaultValue = [NSMutableData dataWithData:actualValue]; + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000106_ReadAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"Read attribute octet_string Not Default Value and compare to saved value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute octet_string Not Default Value and compare to saved value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertEqualObjects(actualValue, readAttributeOctetStringNotDefaultValue); + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000107_WriteAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"Write attribute octet_string Not Default Value from saved value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + id octetStringArgument; + octetStringArgument = [readAttributeOctetStringNotDefaultValue copy]; + [cluster writeAttributeOctetStringWithValue:octetStringArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute octet_string Not Default Value from saved value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000108_ReadAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"Read attribute octet_string Not Default Value and compare to expected value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute octet_string Not Default Value and compare to expected value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + XCTAssertTrue([actualValue isEqualToData:[[NSData alloc] initWithBytes:"NotDefault" length:10]]); + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSaveAs_000109_WriteAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute octet_string Default Value"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + id octetStringArgument; + octetStringArgument = [readAttributeOctetStringDefaultValue copy]; + [cluster writeAttributeOctetStringWithValue:octetStringArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute octet_string Default Value Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} - (void)testSendClusterTestConstraints_000000_WaitForCommissionee { diff --git a/src/platform/qpg/BUILD.gn b/src/platform/qpg/BUILD.gn index 54596a15ea5f09..419f73030ed61a 100644 --- a/src/platform/qpg/BUILD.gn +++ b/src/platform/qpg/BUILD.gn @@ -42,6 +42,7 @@ static_library("qpg") { "DiagnosticDataProviderImpl.h", "InetPlatformConfig.h", "Logging.cpp", + "OTAImageProcessorImpl.cpp", "PlatformManagerImpl.cpp", "PlatformManagerImpl.h", "SystemPlatformConfig.h", diff --git a/src/platform/qpg/CHIPDevicePlatformConfig.h b/src/platform/qpg/CHIPDevicePlatformConfig.h index 81bcbcfa269419..ecbad8ade3443a 100644 --- a/src/platform/qpg/CHIPDevicePlatformConfig.h +++ b/src/platform/qpg/CHIPDevicePlatformConfig.h @@ -28,15 +28,18 @@ #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0 +#define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1 + #if CHIP_ENABLE_OPENTHREAD #define CHIP_DEVICE_CONFIG_ENABLE_THREAD 1 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT 1 -#define CHIP_DEVICE_CONFIG_THREAD_SRP_MAX_SERVICES 5 +#define CHIP_DEVICE_CONFIG_THREAD_SRP_MAX_SERVICES (CHIP_CONFIG_MAX_DEVICE_ADMINS + 1) +#define CHIP_DEVICE_CONFIG_ENABLE_THREAD_DNS_CLIENT 1 +#define CHIP_DEVICE_CONFIG_ENABLE_THREAD_COMMISSIONABLE_DISCOVERY 1 #endif #define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1 #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DISCOVERY 1 -#define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0 diff --git a/src/platform/qpg/OTAImageProcessorImpl.cpp b/src/platform/qpg/OTAImageProcessorImpl.cpp new file mode 100644 index 00000000000000..019c104daccb6e --- /dev/null +++ b/src/platform/qpg/OTAImageProcessorImpl.cpp @@ -0,0 +1,210 @@ +/* + * + * Copyright (c) 2021 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 + +#include "OTAImageProcessorImpl.h" + +namespace chip { + +CHIP_ERROR OTAImageProcessorImpl::PrepareDownload() +{ + + // Get OTA status - under what circumstances does prepared break? + // what happens if a prepare is pending and another one is invoked + // Should we store the state here and wait til we receive notification + + DeviceLayer::PlatformMgr().ScheduleWork(HandlePrepareDownload, reinterpret_cast(this)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR OTAImageProcessorImpl::Finalize() +{ + DeviceLayer::PlatformMgr().ScheduleWork(HandleFinalize, reinterpret_cast(this)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR OTAImageProcessorImpl::Apply() +{ + return CHIP_NO_ERROR; +} + +CHIP_ERROR OTAImageProcessorImpl::Abort() +{ + if (mParams.imageFile.empty()) + { + ChipLogError(SoftwareUpdate, "Invalid output image file supplied"); + return CHIP_ERROR_INTERNAL; + } + + DeviceLayer::PlatformMgr().ScheduleWork(HandleAbort, reinterpret_cast(this)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR OTAImageProcessorImpl::ProcessBlock(ByteSpan & block) +{ + if (!1 /* What stops us processing a block?*/) + { + return CHIP_ERROR_INTERNAL; + } + + if ((block.data() == nullptr) || block.empty()) + { + return CHIP_ERROR_INVALID_ARGUMENT; + } + + // Store block data for HandleProcessBlock to access + CHIP_ERROR err = SetBlock(block); + if (err != CHIP_NO_ERROR) + { + ChipLogError(SoftwareUpdate, "Cannot set block data: %" CHIP_ERROR_FORMAT, err.Format()); + } + + DeviceLayer::PlatformMgr().ScheduleWork(HandleProcessBlock, reinterpret_cast(this)); + return CHIP_NO_ERROR; +} + +void OTAImageProcessorImpl::HandlePrepareDownload(intptr_t context) +{ + qvCHIP_OtaStatus_t status = qvCHIP_OtaStatusSuccess; + auto * imageProcessor = reinterpret_cast(context); + if (imageProcessor == nullptr) + { + ChipLogError(SoftwareUpdate, "ImageProcessor context is null"); + return; + } + else if (imageProcessor->mDownloader == nullptr) + { + ChipLogError(SoftwareUpdate, "mDownloader is null"); + return; + } + + // running this in a thread so won't block main event loop + ChipLogProgress(SoftwareUpdate, "Q: HandlePrepareDownload"); + + qvCHIP_OtaEraseArea(); + qvCHIP_OtaStartWrite(); + + imageProcessor->mDownloader->OnPreparedForDownload(CHIP_NO_ERROR); +} + +void OTAImageProcessorImpl::HandleFinalize(intptr_t context) +{ + qvCHIP_OtaStatus_t status = qvCHIP_OtaStatusSuccess; + auto * imageProcessor = reinterpret_cast(context); + if (imageProcessor == nullptr) + { + return; + } + + ChipLogProgress(SoftwareUpdate, "Q: HandleFinalize"); + + // FIXME - Versions need to be filled in + qvCHIP_OtaSetPendingImage(imageProcessor->mSwVer /*swVer*/, imageProcessor->mHwVer /*hwVer*/, qvCHIP_OtaGetAreaStartAddress(), + static_cast(imageProcessor->mParams.downloadedBytes) /*imgSz*/); + + imageProcessor->ReleaseBlock(); +} + +void OTAImageProcessorImpl::HandleAbort(intptr_t context) +{ + auto * imageProcessor = reinterpret_cast(context); + if (imageProcessor == nullptr) + { + return; + } + + // TODO: What do we do when we abort? + ChipLogProgress(SoftwareUpdate, "Q: HandleAbort"); + + remove(imageProcessor->mParams.imageFile.data()); + imageProcessor->ReleaseBlock(); +} + +void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context) +{ + qvCHIP_OtaStatus_t status = qvCHIP_OtaStatusSuccess; + auto * imageProcessor = reinterpret_cast(context); + if (imageProcessor == nullptr) + { + ChipLogError(SoftwareUpdate, "ImageProcessor context is null"); + return; + } + else if (imageProcessor->mDownloader == nullptr) + { + ChipLogError(SoftwareUpdate, "mDownloader is null"); + return; + } + + ChipLogProgress(SoftwareUpdate, "Q: HandleProcessBlock"); + // TODO: Process block header if any + + status = qvCHIP_OtaWriteChunk(qvCHIP_OtaGetAreaStartAddress() + imageProcessor->mParams.downloadedBytes, + static_cast(imageProcessor->mBlock.size()), + reinterpret_cast(imageProcessor->mBlock.data())); + + if (status != qvCHIP_OtaStatusSuccess) + { + imageProcessor->mDownloader->EndDownload(CHIP_ERROR_WRITE_FAILED); + return; + } + + imageProcessor->mParams.downloadedBytes += imageProcessor->mBlock.size(); + imageProcessor->mDownloader->FetchNextData(); +} + +CHIP_ERROR OTAImageProcessorImpl::SetBlock(ByteSpan & block) +{ + if ((block.data() == nullptr) || block.empty()) + { + return CHIP_NO_ERROR; + } + + // Allocate memory for block data if it has not been done yet + if (mBlock.empty()) + { + mBlock = MutableByteSpan(static_cast(chip::Platform::MemoryAlloc(block.size())), block.size()); + if (mBlock.data() == nullptr) + { + return CHIP_ERROR_NO_MEMORY; + } + } + + // Store the actual block data + CHIP_ERROR err = CopySpanToMutableSpan(block, mBlock); + if (err != CHIP_NO_ERROR) + { + ChipLogError(SoftwareUpdate, "Cannot copy block data: %" CHIP_ERROR_FORMAT, err.Format()); + return err; + } + + return CHIP_NO_ERROR; +} + +CHIP_ERROR OTAImageProcessorImpl::ReleaseBlock() +{ + if (mBlock.data() != nullptr) + { + chip::Platform::MemoryFree(mBlock.data()); + } + + mBlock = MutableByteSpan(); + return CHIP_NO_ERROR; +} + +} // namespace chip diff --git a/src/platform/qpg/OTAImageProcessorImpl.h b/src/platform/qpg/OTAImageProcessorImpl.h new file mode 100644 index 00000000000000..ee8c3175536315 --- /dev/null +++ b/src/platform/qpg/OTAImageProcessorImpl.h @@ -0,0 +1,63 @@ +/* + * + * Copyright (c) 2021 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 + +namespace chip { + +class OTAImageProcessorImpl : public OTAImageProcessorInterface +{ +public: + //////////// OTAImageProcessorInterface Implementation /////////////// + CHIP_ERROR PrepareDownload() override; + CHIP_ERROR Finalize() override; + CHIP_ERROR Apply() override; + CHIP_ERROR Abort() override; + CHIP_ERROR ProcessBlock(ByteSpan & block) override; + + void SetOTADownloader(OTADownloader * downloader) { mDownloader = downloader; } + +private: + //////////// Actual handlers for the OTAImageProcessorInterface /////////////// + static void HandlePrepareDownload(intptr_t context); + static void HandleFinalize(intptr_t context); + static void HandleAbort(intptr_t context); + static void HandleProcessBlock(intptr_t context); + + /** + * Called to allocate memory for mBlock if necessary and set it to block + */ + CHIP_ERROR SetBlock(ByteSpan & block); + + /** + * Called to release allocated memory for mBlock + */ + CHIP_ERROR ReleaseBlock(); + + std::uint32_t mSwVer; + std::uint32_t mHwVer; + + MutableByteSpan mBlock; + OTADownloader * mDownloader; +}; + +} // namespace chip diff --git a/src/protocols/secure_channel/BUILD.gn b/src/protocols/secure_channel/BUILD.gn index 5b4c9ef9580cd2..ed9bf68b9dd28e 100644 --- a/src/protocols/secure_channel/BUILD.gn +++ b/src/protocols/secure_channel/BUILD.gn @@ -29,5 +29,6 @@ static_library("secure_channel") { "${chip_root}/src/lib/support", "${chip_root}/src/messaging", "${chip_root}/src/system", + "${chip_root}/src/trace", ] } diff --git a/src/protocols/secure_channel/CASESession.cpp b/src/protocols/secure_channel/CASESession.cpp index 23fc70aed7d565..15df65fa573855 100644 --- a/src/protocols/secure_channel/CASESession.cpp +++ b/src/protocols/secure_channel/CASESession.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include #include @@ -225,6 +226,7 @@ CHIP_ERROR CASESession::EstablishSession(const Transport::PeerAddress peerAddres uint16_t localSessionId, ExchangeContext * exchangeCtxt, SessionEstablishmentDelegate * delegate, Optional mrpConfig) { + TRACE_EVENT_SCOPE("EstablishSession", "CASESession"); CHIP_ERROR err = CHIP_NO_ERROR; // Return early on error here, as we have not initialized any state yet @@ -303,6 +305,7 @@ CHIP_ERROR CASESession::DeriveSecureSession(CryptoContext & session, CryptoConte CHIP_ERROR CASESession::SendSigma1() { + TRACE_EVENT_SCOPE("SendSigma1", "CASESession"); const size_t mrpParamsSize = mLocalMRPConfig.HasValue() ? TLV::EstimateStructOverhead(sizeof(uint16_t), sizeof(uint16_t)) : 0; size_t data_len = TLV::EstimateStructOverhead(kSigmaParamRandomNumberSize, // initiatorRandom sizeof(uint16_t), // initiatorSessionId, @@ -385,6 +388,7 @@ CHIP_ERROR CASESession::SendSigma1() CHIP_ERROR CASESession::HandleSigma1_and_SendSigma2(System::PacketBufferHandle && msg) { + TRACE_EVENT_SCOPE("HandleSigma1_and_SendSigma2", "CASESession"); ReturnErrorOnFailure(HandleSigma1(std::move(msg))); return CHIP_NO_ERROR; @@ -392,6 +396,7 @@ CHIP_ERROR CASESession::HandleSigma1_and_SendSigma2(System::PacketBufferHandle & CHIP_ERROR CASESession::HandleSigma1(System::PacketBufferHandle && msg) { + TRACE_EVENT_SCOPE("HandleSigma1", "CASESession"); CHIP_ERROR err = CHIP_NO_ERROR; System::PacketBufferTLVReader tlvReader; @@ -469,6 +474,7 @@ CHIP_ERROR CASESession::HandleSigma1(System::PacketBufferHandle && msg) CHIP_ERROR CASESession::SendSigma2Resume(const ByteSpan & initiatorRandom) { + TRACE_EVENT_SCOPE("SendSigma2Resume", "CASESession"); const size_t mrpParamsSize = mLocalMRPConfig.HasValue() ? TLV::EstimateStructOverhead(sizeof(uint16_t), sizeof(uint16_t)) : 0; size_t max_sigma2_resume_data_len = TLV::EstimateStructOverhead(kCASEResumptionIDSize, CHIP_CRYPTO_AEAD_MIC_LENGTH_BYTES, sizeof(uint16_t), mrpParamsSize); @@ -519,6 +525,7 @@ CHIP_ERROR CASESession::SendSigma2Resume(const ByteSpan & initiatorRandom) CHIP_ERROR CASESession::SendSigma2() { + TRACE_EVENT_SCOPE("SendSigma2", "CASESession"); VerifyOrReturnError(mFabricInfo != nullptr, CHIP_ERROR_INCORRECT_STATE); ByteSpan icaCert; @@ -649,6 +656,7 @@ CHIP_ERROR CASESession::SendSigma2() CHIP_ERROR CASESession::HandleSigma2Resume(System::PacketBufferHandle && msg) { + TRACE_EVENT_SCOPE("HandleSigma2Resume", "CASESession"); CHIP_ERROR err = CHIP_NO_ERROR; System::PacketBufferTLVReader tlvReader; TLV::TLVType containerType = TLV::kTLVType_Structure; @@ -715,6 +723,7 @@ CHIP_ERROR CASESession::HandleSigma2Resume(System::PacketBufferHandle && msg) CHIP_ERROR CASESession::HandleSigma2_and_SendSigma3(System::PacketBufferHandle && msg) { + TRACE_EVENT_SCOPE("HandleSigma2_and_SendSigma3", "CASESession"); ReturnErrorOnFailure(HandleSigma2(std::move(msg))); ReturnErrorOnFailure(SendSigma3()); @@ -723,6 +732,7 @@ CHIP_ERROR CASESession::HandleSigma2_and_SendSigma3(System::PacketBufferHandle & CHIP_ERROR CASESession::HandleSigma2(System::PacketBufferHandle && msg) { + TRACE_EVENT_SCOPE("HandleSigma2", "CASESession"); CHIP_ERROR err = CHIP_NO_ERROR; System::PacketBufferTLVReader tlvReader; TLV::TLVReader decryptedDataTlvReader; @@ -876,6 +886,7 @@ CHIP_ERROR CASESession::HandleSigma2(System::PacketBufferHandle && msg) CHIP_ERROR CASESession::SendSigma3() { + TRACE_EVENT_SCOPE("SendSigma3", "CASESession"); CHIP_ERROR err = CHIP_NO_ERROR; MutableByteSpan messageDigestSpan(mMessageDigest); @@ -1010,6 +1021,7 @@ CHIP_ERROR CASESession::SendSigma3() CHIP_ERROR CASESession::HandleSigma3(System::PacketBufferHandle && msg) { + TRACE_EVENT_SCOPE("HandleSigma3", "CASESession"); CHIP_ERROR err = CHIP_NO_ERROR; MutableByteSpan messageDigestSpan(mMessageDigest); System::PacketBufferTLVReader tlvReader; @@ -1317,7 +1329,8 @@ CHIP_ERROR CASESession::SetEffectiveTime() { System::Clock::Milliseconds64 currentTimeMS; CHIP_ERROR err = System::SystemClock().GetClock_RealTimeMS(currentTimeMS); - if (err == CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE) + + if (err != CHIP_NO_ERROR) { ChipLogError( SecureChannel, @@ -1325,7 +1338,6 @@ CHIP_ERROR CASESession::SetEffectiveTime() // TODO: Remove use of hardcoded time during CASE setup return GetHardcodedTime(); } - ReturnErrorOnFailure(err); System::Clock::Seconds32 currentTime = std::chrono::duration_cast(currentTimeMS); VerifyOrReturnError(UnixEpochToChipEpochTime(currentTime.count(), mValidContext.mEffectiveTime), CHIP_ERROR_INVALID_TIME); diff --git a/src/protocols/secure_channel/PASESession.cpp b/src/protocols/secure_channel/PASESession.cpp index 3f1d29cadc146e..260dc47e8d7990 100644 --- a/src/protocols/secure_channel/PASESession.cpp +++ b/src/protocols/secure_channel/PASESession.cpp @@ -45,6 +45,7 @@ #include #include #include +#include #include namespace chip { @@ -218,6 +219,7 @@ CHIP_ERROR PASESession::Init(uint16_t mySessionId, uint32_t setupCode, SessionEs CHIP_ERROR PASESession::ComputePASEVerifier(uint32_t setUpPINCode, uint32_t pbkdf2IterCount, const ByteSpan & salt, PASEVerifier & verifier) { + TRACE_EVENT_SCOPE("ComputePASEVerifier", "PASESession"); ReturnErrorCodeIf(salt.empty(), CHIP_ERROR_INVALID_ARGUMENT); ReturnErrorCodeIf(salt.data() == nullptr, CHIP_ERROR_INVALID_ARGUMENT); ReturnErrorCodeIf(setUpPINCode >= (1 << kSetupPINCodeFieldLengthInBits), CHIP_ERROR_INVALID_ARGUMENT); @@ -246,6 +248,7 @@ CHIP_ERROR PASESession::GeneratePASEVerifier(PASEVerifier & verifier, uint32_t p CHIP_ERROR PASESession::SetupSpake2p(uint32_t pbkdf2IterCount, const ByteSpan & salt) { + TRACE_EVENT_SCOPE("SetupSpake2p", "PASESession"); uint8_t context[kSHA256_Hash_Length] = { 0, }; @@ -329,6 +332,7 @@ CHIP_ERROR PASESession::Pair(const Transport::PeerAddress peerAddress, uint32_t Optional mrpConfig, Messaging::ExchangeContext * exchangeCtxt, SessionEstablishmentDelegate * delegate) { + TRACE_EVENT_SCOPE("Pair", "PASESession"); ReturnErrorCodeIf(exchangeCtxt == nullptr, CHIP_ERROR_INVALID_ARGUMENT); CHIP_ERROR err = Init(mySessionId, peerSetUpPINCode, delegate); SuccessOrExit(err); @@ -379,6 +383,7 @@ CHIP_ERROR PASESession::DeriveSecureSession(CryptoContext & session, CryptoConte CHIP_ERROR PASESession::SendPBKDFParamRequest() { + TRACE_EVENT_SCOPE("SendPBKDFParamRequest", "PASESession"); ReturnErrorOnFailure(DRBG_get_bytes(mPBKDFLocalRandomData, sizeof(mPBKDFLocalRandomData))); const size_t mrpParamsSize = mLocalMRPConfig.HasValue() ? TLV::EstimateStructOverhead(sizeof(uint16_t), sizeof(uint16_t)) : 0; @@ -424,6 +429,7 @@ CHIP_ERROR PASESession::SendPBKDFParamRequest() CHIP_ERROR PASESession::HandlePBKDFParamRequest(System::PacketBufferHandle && msg) { + TRACE_EVENT_SCOPE("HandlePBKDFParamRequest", "PASESession"); CHIP_ERROR err = CHIP_NO_ERROR; System::PacketBufferTLVReader tlvReader; @@ -483,6 +489,7 @@ CHIP_ERROR PASESession::HandlePBKDFParamRequest(System::PacketBufferHandle && ms CHIP_ERROR PASESession::SendPBKDFParamResponse(ByteSpan initiatorRandom, bool initiatorHasPBKDFParams) { + TRACE_EVENT_SCOPE("SendPBKDFParamResponse", "PASESession"); ReturnErrorOnFailure(DRBG_get_bytes(mPBKDFLocalRandomData, sizeof(mPBKDFLocalRandomData))); const size_t mrpParamsSize = mLocalMRPConfig.HasValue() ? TLV::EstimateStructOverhead(sizeof(uint16_t), sizeof(uint16_t)) : 0; @@ -543,7 +550,7 @@ CHIP_ERROR PASESession::SendPBKDFParamResponse(ByteSpan initiatorRandom, bool in CHIP_ERROR PASESession::HandlePBKDFParamResponse(System::PacketBufferHandle && msg) { - + TRACE_EVENT_SCOPE("HandlePBKDFParamResponse", "PASESession"); CHIP_ERROR err = CHIP_NO_ERROR; System::PacketBufferTLVReader tlvReader; @@ -633,6 +640,7 @@ CHIP_ERROR PASESession::HandlePBKDFParamResponse(System::PacketBufferHandle && m CHIP_ERROR PASESession::SendMsg1() { + TRACE_EVENT_SCOPE("SendMsg1", "PASESession"); const size_t max_msg_len = TLV::EstimateStructOverhead(kMAX_Point_Length); System::PacketBufferHandle msg = System::PacketBufferHandle::New(max_msg_len); VerifyOrReturnError(!msg.IsNull(), CHIP_ERROR_NO_MEMORY); @@ -667,6 +675,7 @@ CHIP_ERROR PASESession::SendMsg1() CHIP_ERROR PASESession::HandleMsg1_and_SendMsg2(System::PacketBufferHandle && msg1) { + TRACE_EVENT_SCOPE("HandleMsg1_and_SendMsg2", "PASESession"); CHIP_ERROR err = CHIP_NO_ERROR; uint8_t Y[kMAX_Point_Length]; @@ -736,6 +745,7 @@ CHIP_ERROR PASESession::HandleMsg1_and_SendMsg2(System::PacketBufferHandle && ms CHIP_ERROR PASESession::HandleMsg2_and_SendMsg3(System::PacketBufferHandle && msg2) { + TRACE_EVENT_SCOPE("HandleMsg2_and_SendMsg3", "PASESession"); CHIP_ERROR err = CHIP_NO_ERROR; uint8_t verifier[kMAX_Hash_Length]; @@ -811,6 +821,7 @@ CHIP_ERROR PASESession::HandleMsg2_and_SendMsg3(System::PacketBufferHandle && ms CHIP_ERROR PASESession::HandleMsg3(System::PacketBufferHandle && msg) { + TRACE_EVENT_SCOPE("HandleMsg3", "PASESession"); CHIP_ERROR err = CHIP_NO_ERROR; ChipLogDetail(SecureChannel, "Received spake2p msg3"); diff --git a/src/trace/BUILD.gn b/src/trace/BUILD.gn new file mode 100644 index 00000000000000..546107ad45ce67 --- /dev/null +++ b/src/trace/BUILD.gn @@ -0,0 +1,28 @@ +# 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. + +import("//build_overrides/pigweed.gni") + +declare_args() { + chip_build_pw_trace_lib = false +} + +source_set("trace") { + sources = [ "trace.h" ] + + if (chip_build_pw_trace_lib) { + cflags = [ "-DPW_TRACE_BACKEND_SET=1" ] + public_deps = [ "${dir_pigweed}/pw_trace" ] + } +} diff --git a/src/trace/trace.h b/src/trace/trace.h new file mode 100644 index 00000000000000..f6e23134d0191a --- /dev/null +++ b/src/trace/trace.h @@ -0,0 +1,65 @@ +/* + * + * 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. + */ + +#pragma once + +#if defined(PW_TRACE_BACKEND_SET) && PW_TRACE_BACKEND_SET + +#include + +#define TRACE_EVENT_INSTANT(...) PW_TRACE_INSTANT(__VA_ARGS__) +#define TRACE_EVENT_INSTANT_FLAG(...) PW_TRACE_INSTANT_FLAG(__VA_ARGS__) +#define TRACE_EVENT_INSTANT_DATA(...) PW_TRACE_INSTANT_DATA(__VA_ARGS__) +#define TRACE_EVENT_INSTANT_DATA_FLAG(...) PW_TRACE_INSTANT_DATA_FLAG(__VA_ARGS__) +#define TRACE_EVENT_START(...) PW_TRACE_START(__VA_ARGS__) +#define TRACE_EVENT_START_FLAG(...) PW_TRACE_START_FLAG(__VA_ARGS__) +#define TRACE_EVENT_START_DATA(...) PW_TRACE_START_DATA(__VA_ARGS__) +#define TRACE_EVENT_START_DATA_FLAG(...) PW_TRACE_START_DATA_FLAG(__VA_ARGS__) +#define TRACE_EVENT_END(...) PW_TRACE_END(__VA_ARGS__) +#define TRACE_EVENT_END_FLAG(...) PW_TRACE_END_FLAG(__VA_ARGS__) +#define TRACE_EVENT_END_DATA(...) PW_TRACE_END_DATA(__VA_ARGS__) +#define TRACE_EVENT_END_DATA_FLAG(...) PW_TRACE_END_DATA_FLAG(__VA_ARGS__) +#define TRACE_EVENT_SCOPE(...) PW_TRACE_SCOPE(__VA_ARGS__) +#define TRACE_EVENT_SCOPE_FLAG(...) PW_TRACE_SCOPE_FLAG(__VA_ARGS__) +#define TRACE_EVENT_FUNCTION(...) PW_TRACE_FUNCTION(__VA_ARGS__) +#define TRACE_EVENT_FUNCTION_FLAG(...) PW_TRACE_FUNCTION_FLAG(__VA_ARGS__) + +#else // defined(PW_TRACE_BACKEND_SET) && PW_TRACE_BACKEND_SET + +#define _TRACE_EVENT_DISABLE(...) \ + do \ + { \ + } while (0) + +#define TRACE_EVENT_INSTANT(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_INSTANT_FLAG(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_INSTANT_DATA(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_INSTANT_DATA_FLAG(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_START(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_START_FLAG(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_START_DATA(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_START_DATA_FLAG(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_END(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_END_FLAG(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_END_DATA(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_END_DATA_FLAG(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_SCOPE(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_SCOPE_FLAG(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_FUNCTION(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) +#define TRACE_EVENT_FUNCTION_FLAG(...) _TRACE_EVENT_DISABLE(__VA_ARGS__) + +#endif // defined(PW_TRACE_BACKEND_SET) && PW_TRACE_BACKEND_SET diff --git a/src/transport/SessionManager.cpp b/src/transport/SessionManager.cpp index 5b2e088357fc25..29841f0cde4c2e 100644 --- a/src/transport/SessionManager.cpp +++ b/src/transport/SessionManager.cpp @@ -309,8 +309,8 @@ CHIP_ERROR SessionManager::NewPairing(SessionHolder & sessionHolder, const Optio mSecureSessions.ReleaseSession(session.Value()->AsSecureSession()); } - ChipLogDetail(Inet, "New secure session created for device 0x" ChipLogFormatX64 ", key %d!!", ChipLogValueX64(peerNodeId), - peerSessionId); + ChipLogDetail(Inet, "New secure session created for device 0x" ChipLogFormatX64 ", LSID:%d PSID:%d!", + ChipLogValueX64(peerNodeId), localSessionId, peerSessionId); session = mSecureSessions.CreateNewSecureSession(pairing->GetSecureSessionType(), localSessionId, peerNodeId, pairing->GetPeerCATs(), peerSessionId, fabric, pairing->GetMRPConfig()); ReturnErrorCodeIf(!session.HasValue(), CHIP_ERROR_NO_MEMORY); @@ -472,7 +472,7 @@ void SessionManager::SecureUnicastMessageDispatch(const PacketHeader & packetHea if (!session.HasValue()) { - ChipLogError(Inet, "Data received on an unknown connection (%d). Dropping it!!", packetHeader.GetSessionId()); + ChipLogError(Inet, "Data received on an unknown session (LSID=%d). Dropping it!", packetHeader.GetSessionId()); return; } diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index 21153d7c5137cf..eac0efeb0fa85b 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -796,66 +796,68 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MainsVoltage::TypeInfo::DecodableType mainsVoltage; - Attributes::MainsFrequency::TypeInfo::DecodableType mainsFrequency; - Attributes::MainsAlarmMask::TypeInfo::DecodableType mainsAlarmMask; - Attributes::MainsVoltageMinThreshold::TypeInfo::DecodableType mainsVoltageMinThreshold; - Attributes::MainsVoltageMaxThreshold::TypeInfo::DecodableType mainsVoltageMaxThreshold; - Attributes::MainsVoltageDwellTrip::TypeInfo::DecodableType mainsVoltageDwellTrip; - Attributes::BatteryVoltage::TypeInfo::DecodableType batteryVoltage; - Attributes::BatteryPercentageRemaining::TypeInfo::DecodableType batteryPercentageRemaining; + Attributes::MainsVoltage::TypeInfo::DecodableType mainsVoltage = static_cast(0); + Attributes::MainsFrequency::TypeInfo::DecodableType mainsFrequency = static_cast(0); + Attributes::MainsAlarmMask::TypeInfo::DecodableType mainsAlarmMask = static_cast(0); + Attributes::MainsVoltageMinThreshold::TypeInfo::DecodableType mainsVoltageMinThreshold = static_cast(0); + Attributes::MainsVoltageMaxThreshold::TypeInfo::DecodableType mainsVoltageMaxThreshold = static_cast(0); + Attributes::MainsVoltageDwellTrip::TypeInfo::DecodableType mainsVoltageDwellTrip = static_cast(0); + Attributes::BatteryVoltage::TypeInfo::DecodableType batteryVoltage = static_cast(0); + Attributes::BatteryPercentageRemaining::TypeInfo::DecodableType batteryPercentageRemaining = static_cast(0); Attributes::BatteryManufacturer::TypeInfo::DecodableType batteryManufacturer; - Attributes::BatterySize::TypeInfo::DecodableType batterySize; - Attributes::BatteryAhrRating::TypeInfo::DecodableType batteryAhrRating; - Attributes::BatteryQuantity::TypeInfo::DecodableType batteryQuantity; - Attributes::BatteryRatedVoltage::TypeInfo::DecodableType batteryRatedVoltage; - Attributes::BatteryAlarmMask::TypeInfo::DecodableType batteryAlarmMask; - Attributes::BatteryVoltageMinThreshold::TypeInfo::DecodableType batteryVoltageMinThreshold; - Attributes::BatteryVoltageThreshold1::TypeInfo::DecodableType batteryVoltageThreshold1; - Attributes::BatteryVoltageThreshold2::TypeInfo::DecodableType batteryVoltageThreshold2; - Attributes::BatteryVoltageThreshold3::TypeInfo::DecodableType batteryVoltageThreshold3; - Attributes::BatteryPercentageMinThreshold::TypeInfo::DecodableType batteryPercentageMinThreshold; - Attributes::BatteryPercentageThreshold1::TypeInfo::DecodableType batteryPercentageThreshold1; - Attributes::BatteryPercentageThreshold2::TypeInfo::DecodableType batteryPercentageThreshold2; - Attributes::BatteryPercentageThreshold3::TypeInfo::DecodableType batteryPercentageThreshold3; - Attributes::BatteryAlarmState::TypeInfo::DecodableType batteryAlarmState; - Attributes::Battery2Voltage::TypeInfo::DecodableType battery2Voltage; - Attributes::Battery2PercentageRemaining::TypeInfo::DecodableType battery2PercentageRemaining; + Attributes::BatterySize::TypeInfo::DecodableType batterySize = static_cast(0); + Attributes::BatteryAhrRating::TypeInfo::DecodableType batteryAhrRating = static_cast(0); + Attributes::BatteryQuantity::TypeInfo::DecodableType batteryQuantity = static_cast(0); + Attributes::BatteryRatedVoltage::TypeInfo::DecodableType batteryRatedVoltage = static_cast(0); + Attributes::BatteryAlarmMask::TypeInfo::DecodableType batteryAlarmMask = static_cast(0); + Attributes::BatteryVoltageMinThreshold::TypeInfo::DecodableType batteryVoltageMinThreshold = static_cast(0); + Attributes::BatteryVoltageThreshold1::TypeInfo::DecodableType batteryVoltageThreshold1 = static_cast(0); + Attributes::BatteryVoltageThreshold2::TypeInfo::DecodableType batteryVoltageThreshold2 = static_cast(0); + Attributes::BatteryVoltageThreshold3::TypeInfo::DecodableType batteryVoltageThreshold3 = static_cast(0); + Attributes::BatteryPercentageMinThreshold::TypeInfo::DecodableType batteryPercentageMinThreshold = static_cast(0); + Attributes::BatteryPercentageThreshold1::TypeInfo::DecodableType batteryPercentageThreshold1 = static_cast(0); + Attributes::BatteryPercentageThreshold2::TypeInfo::DecodableType batteryPercentageThreshold2 = static_cast(0); + Attributes::BatteryPercentageThreshold3::TypeInfo::DecodableType batteryPercentageThreshold3 = static_cast(0); + Attributes::BatteryAlarmState::TypeInfo::DecodableType batteryAlarmState = static_cast(0); + Attributes::Battery2Voltage::TypeInfo::DecodableType battery2Voltage = static_cast(0); + Attributes::Battery2PercentageRemaining::TypeInfo::DecodableType battery2PercentageRemaining = static_cast(0); Attributes::Battery2Manufacturer::TypeInfo::DecodableType battery2Manufacturer; - Attributes::Battery2Size::TypeInfo::DecodableType battery2Size; - Attributes::Battery2AhrRating::TypeInfo::DecodableType battery2AhrRating; - Attributes::Battery2Quantity::TypeInfo::DecodableType battery2Quantity; - Attributes::Battery2RatedVoltage::TypeInfo::DecodableType battery2RatedVoltage; - Attributes::Battery2AlarmMask::TypeInfo::DecodableType battery2AlarmMask; - Attributes::Battery2VoltageMinThreshold::TypeInfo::DecodableType battery2VoltageMinThreshold; - Attributes::Battery2VoltageThreshold1::TypeInfo::DecodableType battery2VoltageThreshold1; - Attributes::Battery2VoltageThreshold2::TypeInfo::DecodableType battery2VoltageThreshold2; - Attributes::Battery2VoltageThreshold3::TypeInfo::DecodableType battery2VoltageThreshold3; - Attributes::Battery2PercentageMinThreshold::TypeInfo::DecodableType battery2PercentageMinThreshold; - Attributes::Battery2PercentageThreshold1::TypeInfo::DecodableType battery2PercentageThreshold1; - Attributes::Battery2PercentageThreshold2::TypeInfo::DecodableType battery2PercentageThreshold2; - Attributes::Battery2PercentageThreshold3::TypeInfo::DecodableType battery2PercentageThreshold3; - Attributes::Battery2AlarmState::TypeInfo::DecodableType battery2AlarmState; - Attributes::Battery3Voltage::TypeInfo::DecodableType battery3Voltage; - Attributes::Battery3PercentageRemaining::TypeInfo::DecodableType battery3PercentageRemaining; + Attributes::Battery2Size::TypeInfo::DecodableType battery2Size = static_cast(0); + Attributes::Battery2AhrRating::TypeInfo::DecodableType battery2AhrRating = static_cast(0); + Attributes::Battery2Quantity::TypeInfo::DecodableType battery2Quantity = static_cast(0); + Attributes::Battery2RatedVoltage::TypeInfo::DecodableType battery2RatedVoltage = static_cast(0); + Attributes::Battery2AlarmMask::TypeInfo::DecodableType battery2AlarmMask = static_cast(0); + Attributes::Battery2VoltageMinThreshold::TypeInfo::DecodableType battery2VoltageMinThreshold = static_cast(0); + Attributes::Battery2VoltageThreshold1::TypeInfo::DecodableType battery2VoltageThreshold1 = static_cast(0); + Attributes::Battery2VoltageThreshold2::TypeInfo::DecodableType battery2VoltageThreshold2 = static_cast(0); + Attributes::Battery2VoltageThreshold3::TypeInfo::DecodableType battery2VoltageThreshold3 = static_cast(0); + Attributes::Battery2PercentageMinThreshold::TypeInfo::DecodableType battery2PercentageMinThreshold = + static_cast(0); + Attributes::Battery2PercentageThreshold1::TypeInfo::DecodableType battery2PercentageThreshold1 = static_cast(0); + Attributes::Battery2PercentageThreshold2::TypeInfo::DecodableType battery2PercentageThreshold2 = static_cast(0); + Attributes::Battery2PercentageThreshold3::TypeInfo::DecodableType battery2PercentageThreshold3 = static_cast(0); + Attributes::Battery2AlarmState::TypeInfo::DecodableType battery2AlarmState = static_cast(0); + Attributes::Battery3Voltage::TypeInfo::DecodableType battery3Voltage = static_cast(0); + Attributes::Battery3PercentageRemaining::TypeInfo::DecodableType battery3PercentageRemaining = static_cast(0); Attributes::Battery3Manufacturer::TypeInfo::DecodableType battery3Manufacturer; - Attributes::Battery3Size::TypeInfo::DecodableType battery3Size; - Attributes::Battery3AhrRating::TypeInfo::DecodableType battery3AhrRating; - Attributes::Battery3Quantity::TypeInfo::DecodableType battery3Quantity; - Attributes::Battery3RatedVoltage::TypeInfo::DecodableType battery3RatedVoltage; - Attributes::Battery3AlarmMask::TypeInfo::DecodableType battery3AlarmMask; - Attributes::Battery3VoltageMinThreshold::TypeInfo::DecodableType battery3VoltageMinThreshold; - Attributes::Battery3VoltageThreshold1::TypeInfo::DecodableType battery3VoltageThreshold1; - Attributes::Battery3VoltageThreshold2::TypeInfo::DecodableType battery3VoltageThreshold2; - Attributes::Battery3VoltageThreshold3::TypeInfo::DecodableType battery3VoltageThreshold3; - Attributes::Battery3PercentageMinThreshold::TypeInfo::DecodableType battery3PercentageMinThreshold; - Attributes::Battery3PercentageThreshold1::TypeInfo::DecodableType battery3PercentageThreshold1; - Attributes::Battery3PercentageThreshold2::TypeInfo::DecodableType battery3PercentageThreshold2; - Attributes::Battery3PercentageThreshold3::TypeInfo::DecodableType battery3PercentageThreshold3; - Attributes::Battery3AlarmState::TypeInfo::DecodableType battery3AlarmState; + Attributes::Battery3Size::TypeInfo::DecodableType battery3Size = static_cast(0); + Attributes::Battery3AhrRating::TypeInfo::DecodableType battery3AhrRating = static_cast(0); + Attributes::Battery3Quantity::TypeInfo::DecodableType battery3Quantity = static_cast(0); + Attributes::Battery3RatedVoltage::TypeInfo::DecodableType battery3RatedVoltage = static_cast(0); + Attributes::Battery3AlarmMask::TypeInfo::DecodableType battery3AlarmMask = static_cast(0); + Attributes::Battery3VoltageMinThreshold::TypeInfo::DecodableType battery3VoltageMinThreshold = static_cast(0); + Attributes::Battery3VoltageThreshold1::TypeInfo::DecodableType battery3VoltageThreshold1 = static_cast(0); + Attributes::Battery3VoltageThreshold2::TypeInfo::DecodableType battery3VoltageThreshold2 = static_cast(0); + Attributes::Battery3VoltageThreshold3::TypeInfo::DecodableType battery3VoltageThreshold3 = static_cast(0); + Attributes::Battery3PercentageMinThreshold::TypeInfo::DecodableType battery3PercentageMinThreshold = + static_cast(0); + Attributes::Battery3PercentageThreshold1::TypeInfo::DecodableType battery3PercentageThreshold1 = static_cast(0); + Attributes::Battery3PercentageThreshold2::TypeInfo::DecodableType battery3PercentageThreshold2 = static_cast(0); + Attributes::Battery3PercentageThreshold3::TypeInfo::DecodableType battery3PercentageThreshold3 = static_cast(0); + Attributes::Battery3AlarmState::TypeInfo::DecodableType battery3AlarmState = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -1017,18 +1019,18 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::CurrentTemperature::TypeInfo::DecodableType currentTemperature; - Attributes::MinTempExperienced::TypeInfo::DecodableType minTempExperienced; - Attributes::MaxTempExperienced::TypeInfo::DecodableType maxTempExperienced; - Attributes::OverTempTotalDwell::TypeInfo::DecodableType overTempTotalDwell; - Attributes::DeviceTempAlarmMask::TypeInfo::DecodableType deviceTempAlarmMask; - Attributes::LowTempThreshold::TypeInfo::DecodableType lowTempThreshold; - Attributes::HighTempThreshold::TypeInfo::DecodableType highTempThreshold; - Attributes::LowTempDwellTripPoint::TypeInfo::DecodableType lowTempDwellTripPoint; - Attributes::HighTempDwellTripPoint::TypeInfo::DecodableType highTempDwellTripPoint; + Attributes::CurrentTemperature::TypeInfo::DecodableType currentTemperature = static_cast(0); + Attributes::MinTempExperienced::TypeInfo::DecodableType minTempExperienced = static_cast(0); + Attributes::MaxTempExperienced::TypeInfo::DecodableType maxTempExperienced = static_cast(0); + Attributes::OverTempTotalDwell::TypeInfo::DecodableType overTempTotalDwell = static_cast(0); + Attributes::DeviceTempAlarmMask::TypeInfo::DecodableType deviceTempAlarmMask = static_cast(0); + Attributes::LowTempThreshold::TypeInfo::DecodableType lowTempThreshold = static_cast(0); + Attributes::HighTempThreshold::TypeInfo::DecodableType highTempThreshold = static_cast(0); + Attributes::LowTempDwellTripPoint::TypeInfo::DecodableType lowTempDwellTripPoint = static_cast(0); + Attributes::HighTempDwellTripPoint::TypeInfo::DecodableType highTempDwellTripPoint = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -1117,7 +1119,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Identify::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; } - uint16_t identifyTime; + uint16_t identifyTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1132,7 +1134,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Identify::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; } - uint16_t identifyTime; + uint16_t identifyTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Identify @@ -1149,7 +1151,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::IdentifyQueryResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; } - uint16_t timeout; + uint16_t timeout = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1164,7 +1166,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::IdentifyQueryResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; } - uint16_t timeout; + uint16_t timeout = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace IdentifyQueryResponse @@ -1210,8 +1212,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TriggerEffect::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; } - IdentifyEffectIdentifier effectIdentifier; - IdentifyEffectVariant effectVariant; + IdentifyEffectIdentifier effectIdentifier = static_cast(0); + IdentifyEffectVariant effectVariant = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1226,8 +1228,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TriggerEffect::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; } - IdentifyEffectIdentifier effectIdentifier; - IdentifyEffectVariant effectVariant; + IdentifyEffectIdentifier effectIdentifier = static_cast(0); + IdentifyEffectVariant effectVariant = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TriggerEffect @@ -1304,11 +1306,11 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::IdentifyTime::TypeInfo::DecodableType identifyTime; - Attributes::IdentifyType::TypeInfo::DecodableType identifyType; + Attributes::IdentifyTime::TypeInfo::DecodableType identifyTime = static_cast(0); + Attributes::IdentifyType::TypeInfo::DecodableType identifyType = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -1385,7 +1387,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::AddGroup::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); chip::CharSpan groupName; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1401,7 +1403,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::AddGroup::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); chip::CharSpan groupName; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -1420,8 +1422,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::AddGroupResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint8_t status; - uint16_t groupId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1436,8 +1438,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::AddGroupResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint8_t status; - uint16_t groupId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace AddGroupResponse @@ -1454,7 +1456,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ViewGroup::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1469,7 +1471,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ViewGroup::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ViewGroup @@ -1488,8 +1490,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ViewGroupResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint8_t status; - uint16_t groupId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); chip::CharSpan groupName; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1505,8 +1507,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ViewGroupResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint8_t status; - uint16_t groupId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); chip::CharSpan groupName; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -1557,7 +1559,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetGroupMembershipResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint8_t capacity; + uint8_t capacity = static_cast(0); DataModel::List groupList; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1573,7 +1575,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetGroupMembershipResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint8_t capacity; + uint8_t capacity = static_cast(0); DataModel::DecodableList groupList; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -1591,7 +1593,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RemoveGroup::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1606,7 +1608,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RemoveGroup::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RemoveGroup @@ -1624,8 +1626,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RemoveGroupResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint8_t status; - uint16_t groupId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1640,8 +1642,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RemoveGroupResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint8_t status; - uint16_t groupId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RemoveGroupResponse @@ -1687,7 +1689,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::AddGroupIfIdentifying::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); chip::CharSpan groupName; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1703,7 +1705,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::AddGroupIfIdentifying::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); chip::CharSpan groupName; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -1769,10 +1771,10 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::NameSupport::TypeInfo::DecodableType nameSupport; + Attributes::NameSupport::TypeInfo::DecodableType nameSupport = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -1928,9 +1930,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::AddScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); chip::CharSpan sceneName; DataModel::List extensionFieldSets; @@ -1947,9 +1949,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::AddScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); chip::CharSpan sceneName; DataModel::DecodableList extensionFieldSets; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -1970,9 +1972,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::AddSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -1987,9 +1989,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::AddSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace AddSceneResponse @@ -2007,8 +2009,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ViewScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2023,8 +2025,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ViewScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ViewScene @@ -2046,10 +2048,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ViewSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); chip::CharSpan sceneName; DataModel::List extensionFieldSets; @@ -2066,10 +2068,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ViewSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); chip::CharSpan sceneName; DataModel::DecodableList extensionFieldSets; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -2089,8 +2091,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RemoveScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2105,8 +2107,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RemoveScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RemoveScene @@ -2125,9 +2127,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RemoveSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2142,9 +2144,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RemoveSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RemoveSceneResponse @@ -2161,7 +2163,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RemoveAllScenes::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2176,7 +2178,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RemoveAllScenes::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RemoveAllScenes @@ -2194,8 +2196,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RemoveAllScenesResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2210,8 +2212,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RemoveAllScenesResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RemoveAllScenesResponse @@ -2229,8 +2231,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StoreScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2245,8 +2247,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StoreScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StoreScene @@ -2265,9 +2267,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StoreSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2282,9 +2284,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StoreSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StoreSceneResponse @@ -2303,9 +2305,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RecallScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2320,9 +2322,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RecallScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RecallScene @@ -2339,7 +2341,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetSceneMembership::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2354,7 +2356,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetSceneMembership::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; + uint16_t groupId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetSceneMembership @@ -2375,10 +2377,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetSceneMembershipResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint8_t capacity; - uint16_t groupId; - uint8_t sceneCount; + uint8_t status = static_cast(0); + uint8_t capacity = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneCount = static_cast(0); DataModel::List sceneList; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2394,10 +2396,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetSceneMembershipResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint8_t capacity; - uint16_t groupId; - uint8_t sceneCount; + uint8_t status = static_cast(0); + uint8_t capacity = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneCount = static_cast(0); DataModel::DecodableList sceneList; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -2419,9 +2421,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnhancedAddScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); chip::CharSpan sceneName; DataModel::List extensionFieldSets; @@ -2438,9 +2440,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnhancedAddScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); chip::CharSpan sceneName; DataModel::DecodableList extensionFieldSets; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -2461,9 +2463,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnhancedAddSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2478,9 +2480,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnhancedAddSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnhancedAddSceneResponse @@ -2498,8 +2500,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnhancedViewScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2514,8 +2516,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnhancedViewScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint16_t groupId; - uint8_t sceneId; + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnhancedViewScene @@ -2537,10 +2539,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnhancedViewSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); chip::CharSpan sceneName; DataModel::List extensionFieldSets; @@ -2557,10 +2559,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnhancedViewSceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupId; - uint8_t sceneId; - uint16_t transitionTime; + uint8_t status = static_cast(0); + uint16_t groupId = static_cast(0); + uint8_t sceneId = static_cast(0); + uint16_t transitionTime = static_cast(0); chip::CharSpan sceneName; DataModel::DecodableList extensionFieldSets; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -2583,11 +2585,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::CopyScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - chip::BitFlags mode; - uint16_t groupIdFrom; - uint8_t sceneIdFrom; - uint16_t groupIdTo; - uint8_t sceneIdTo; + chip::BitFlags mode = static_cast>(0); + uint16_t groupIdFrom = static_cast(0); + uint8_t sceneIdFrom = static_cast(0); + uint16_t groupIdTo = static_cast(0); + uint8_t sceneIdTo = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2602,11 +2604,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::CopyScene::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - chip::BitFlags mode; - uint16_t groupIdFrom; - uint8_t sceneIdFrom; - uint16_t groupIdTo; - uint8_t sceneIdTo; + chip::BitFlags mode = static_cast>(0); + uint16_t groupIdFrom = static_cast(0); + uint8_t sceneIdFrom = static_cast(0); + uint16_t groupIdTo = static_cast(0); + uint8_t sceneIdTo = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace CopyScene @@ -2625,9 +2627,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::CopySceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupIdFrom; - uint8_t sceneIdFrom; + uint8_t status = static_cast(0); + uint16_t groupIdFrom = static_cast(0); + uint8_t sceneIdFrom = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2642,9 +2644,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::CopySceneResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; } - uint8_t status; - uint16_t groupIdFrom; - uint8_t sceneIdFrom; + uint8_t status = static_cast(0); + uint16_t groupIdFrom = static_cast(0); + uint8_t sceneIdFrom = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace CopySceneResponse @@ -2769,15 +2771,15 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::SceneCount::TypeInfo::DecodableType sceneCount; - Attributes::CurrentScene::TypeInfo::DecodableType currentScene; - Attributes::CurrentGroup::TypeInfo::DecodableType currentGroup; - Attributes::SceneValid::TypeInfo::DecodableType sceneValid; - Attributes::NameSupport::TypeInfo::DecodableType nameSupport; - Attributes::LastConfiguredBy::TypeInfo::DecodableType lastConfiguredBy; + Attributes::SceneCount::TypeInfo::DecodableType sceneCount = static_cast(0); + Attributes::CurrentScene::TypeInfo::DecodableType currentScene = static_cast(0); + Attributes::CurrentGroup::TypeInfo::DecodableType currentGroup = static_cast(0); + Attributes::SceneValid::TypeInfo::DecodableType sceneValid = static_cast(0); + Attributes::NameSupport::TypeInfo::DecodableType nameSupport = static_cast(0); + Attributes::LastConfiguredBy::TypeInfo::DecodableType lastConfiguredBy = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -2960,8 +2962,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::OffWithEffect::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } - OnOffEffectIdentifier effectId; - OnOffDelayedAllOffEffectVariant effectVariant; + OnOffEffectIdentifier effectId = static_cast(0); + OnOffDelayedAllOffEffectVariant effectVariant = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -2976,8 +2978,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::OffWithEffect::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } - OnOffEffectIdentifier effectId; - OnOffDelayedAllOffEffectVariant effectVariant; + OnOffEffectIdentifier effectId = static_cast(0); + OnOffDelayedAllOffEffectVariant effectVariant = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace OffWithEffect @@ -3024,9 +3026,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::OnWithTimedOff::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } - chip::BitFlags onOffControl; - uint16_t onTime; - uint16_t offWaitTime; + chip::BitFlags onOffControl = static_cast>(0); + uint16_t onTime = static_cast(0); + uint16_t offWaitTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3041,9 +3043,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::OnWithTimedOff::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } - chip::BitFlags onOffControl; - uint16_t onTime; - uint16_t offWaitTime; + chip::BitFlags onOffControl = static_cast>(0); + uint16_t onTime = static_cast(0); + uint16_t offWaitTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace OnWithTimedOff @@ -3156,14 +3158,14 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::OnOff::TypeInfo::DecodableType onOff; - Attributes::GlobalSceneControl::TypeInfo::DecodableType globalSceneControl; - Attributes::OnTime::TypeInfo::DecodableType onTime; - Attributes::OffWaitTime::TypeInfo::DecodableType offWaitTime; - Attributes::StartUpOnOff::TypeInfo::DecodableType startUpOnOff; + Attributes::OnOff::TypeInfo::DecodableType onOff = static_cast(0); + Attributes::GlobalSceneControl::TypeInfo::DecodableType globalSceneControl = static_cast(0); + Attributes::OnTime::TypeInfo::DecodableType onTime = static_cast(0); + Attributes::OffWaitTime::TypeInfo::DecodableType offWaitTime = static_cast(0); + Attributes::StartUpOnOff::TypeInfo::DecodableType startUpOnOff = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -3241,11 +3243,11 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::SwitchType::TypeInfo::DecodableType switchType; - Attributes::SwitchActions::TypeInfo::DecodableType switchActions; + Attributes::SwitchType::TypeInfo::DecodableType switchType = static_cast(0); + Attributes::SwitchActions::TypeInfo::DecodableType switchActions = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -3338,10 +3340,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveToLevel::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - uint8_t level; - uint16_t transitionTime; - uint8_t optionMask; - uint8_t optionOverride; + uint8_t level = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionMask = static_cast(0); + uint8_t optionOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3356,10 +3358,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveToLevel::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - uint8_t level; - uint16_t transitionTime; - uint8_t optionMask; - uint8_t optionOverride; + uint8_t level = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionMask = static_cast(0); + uint8_t optionOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveToLevel @@ -3379,10 +3381,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Move::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - MoveMode moveMode; - uint8_t rate; - uint8_t optionMask; - uint8_t optionOverride; + MoveMode moveMode = static_cast(0); + uint8_t rate = static_cast(0); + uint8_t optionMask = static_cast(0); + uint8_t optionOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3397,10 +3399,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Move::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - MoveMode moveMode; - uint8_t rate; - uint8_t optionMask; - uint8_t optionOverride; + MoveMode moveMode = static_cast(0); + uint8_t rate = static_cast(0); + uint8_t optionMask = static_cast(0); + uint8_t optionOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Move @@ -3421,11 +3423,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Step::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - StepMode stepMode; - uint8_t stepSize; - uint16_t transitionTime; - uint8_t optionMask; - uint8_t optionOverride; + StepMode stepMode = static_cast(0); + uint8_t stepSize = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionMask = static_cast(0); + uint8_t optionOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3440,11 +3442,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Step::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - StepMode stepMode; - uint8_t stepSize; - uint16_t transitionTime; - uint8_t optionMask; - uint8_t optionOverride; + StepMode stepMode = static_cast(0); + uint8_t stepSize = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionMask = static_cast(0); + uint8_t optionOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Step @@ -3462,8 +3464,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Stop::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - uint8_t optionMask; - uint8_t optionOverride; + uint8_t optionMask = static_cast(0); + uint8_t optionOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3478,8 +3480,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Stop::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - uint8_t optionMask; - uint8_t optionOverride; + uint8_t optionMask = static_cast(0); + uint8_t optionOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Stop @@ -3497,8 +3499,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveToLevelWithOnOff::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - uint8_t level; - uint16_t transitionTime; + uint8_t level = static_cast(0); + uint16_t transitionTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3513,8 +3515,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveToLevelWithOnOff::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - uint8_t level; - uint16_t transitionTime; + uint8_t level = static_cast(0); + uint16_t transitionTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveToLevelWithOnOff @@ -3532,8 +3534,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveWithOnOff::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - MoveMode moveMode; - uint8_t rate; + MoveMode moveMode = static_cast(0); + uint8_t rate = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3548,8 +3550,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveWithOnOff::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - MoveMode moveMode; - uint8_t rate; + MoveMode moveMode = static_cast(0); + uint8_t rate = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveWithOnOff @@ -3568,9 +3570,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StepWithOnOff::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - StepMode stepMode; - uint8_t stepSize; - uint16_t transitionTime; + StepMode stepMode = static_cast(0); + uint8_t stepSize = static_cast(0); + uint16_t transitionTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3585,9 +3587,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StepWithOnOff::Id; } static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } - StepMode stepMode; - uint8_t stepSize; - uint16_t transitionTime; + StepMode stepMode = static_cast(0); + uint8_t stepSize = static_cast(0); + uint16_t transitionTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StepWithOnOff @@ -3836,23 +3838,23 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::CurrentLevel::TypeInfo::DecodableType currentLevel; - Attributes::RemainingTime::TypeInfo::DecodableType remainingTime; - Attributes::MinLevel::TypeInfo::DecodableType minLevel; - Attributes::MaxLevel::TypeInfo::DecodableType maxLevel; - Attributes::CurrentFrequency::TypeInfo::DecodableType currentFrequency; - Attributes::MinFrequency::TypeInfo::DecodableType minFrequency; - Attributes::MaxFrequency::TypeInfo::DecodableType maxFrequency; - Attributes::Options::TypeInfo::DecodableType options; - Attributes::OnOffTransitionTime::TypeInfo::DecodableType onOffTransitionTime; + Attributes::CurrentLevel::TypeInfo::DecodableType currentLevel = static_cast(0); + Attributes::RemainingTime::TypeInfo::DecodableType remainingTime = static_cast(0); + Attributes::MinLevel::TypeInfo::DecodableType minLevel = static_cast(0); + Attributes::MaxLevel::TypeInfo::DecodableType maxLevel = static_cast(0); + Attributes::CurrentFrequency::TypeInfo::DecodableType currentFrequency = static_cast(0); + Attributes::MinFrequency::TypeInfo::DecodableType minFrequency = static_cast(0); + Attributes::MaxFrequency::TypeInfo::DecodableType maxFrequency = static_cast(0); + Attributes::Options::TypeInfo::DecodableType options = static_cast(0); + Attributes::OnOffTransitionTime::TypeInfo::DecodableType onOffTransitionTime = static_cast(0); Attributes::OnLevel::TypeInfo::DecodableType onLevel; Attributes::OnTransitionTime::TypeInfo::DecodableType onTransitionTime; Attributes::OffTransitionTime::TypeInfo::DecodableType offTransitionTime; Attributes::DefaultMoveRate::TypeInfo::DecodableType defaultMoveRate; - Attributes::StartUpCurrentLevel::TypeInfo::DecodableType startUpCurrentLevel; + Attributes::StartUpCurrentLevel::TypeInfo::DecodableType startUpCurrentLevel = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -3909,8 +3911,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ResetAlarm::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } - uint8_t alarmCode; - chip::ClusterId clusterId; + uint8_t alarmCode = static_cast(0); + chip::ClusterId clusterId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3925,8 +3927,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ResetAlarm::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } - uint8_t alarmCode; - chip::ClusterId clusterId; + uint8_t alarmCode = static_cast(0); + chip::ClusterId clusterId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ResetAlarm @@ -3944,8 +3946,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Alarm::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } - uint8_t alarmCode; - chip::ClusterId clusterId; + uint8_t alarmCode = static_cast(0); + chip::ClusterId clusterId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -3960,8 +3962,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Alarm::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } - uint8_t alarmCode; - chip::ClusterId clusterId; + uint8_t alarmCode = static_cast(0); + chip::ClusterId clusterId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Alarm @@ -4009,10 +4011,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetAlarmResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } - uint8_t status; - uint8_t alarmCode; - chip::ClusterId clusterId; - uint32_t timeStamp; + uint8_t status = static_cast(0); + uint8_t alarmCode = static_cast(0); + chip::ClusterId clusterId = static_cast(0); + uint32_t timeStamp = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -4027,10 +4029,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetAlarmResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } - uint8_t status; - uint8_t alarmCode; - chip::ClusterId clusterId; - uint32_t timeStamp; + uint8_t status = static_cast(0); + uint8_t alarmCode = static_cast(0); + chip::ClusterId clusterId = static_cast(0); + uint32_t timeStamp = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetAlarmResponse @@ -4151,10 +4153,10 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::AlarmCount::TypeInfo::DecodableType alarmCount; + Attributes::AlarmCount::TypeInfo::DecodableType alarmCount = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -4328,19 +4330,19 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::Time::TypeInfo::DecodableType time; - Attributes::TimeStatus::TypeInfo::DecodableType timeStatus; - Attributes::TimeZone::TypeInfo::DecodableType timeZone; - Attributes::DstStart::TypeInfo::DecodableType dstStart; - Attributes::DstEnd::TypeInfo::DecodableType dstEnd; - Attributes::DstShift::TypeInfo::DecodableType dstShift; - Attributes::StandardTime::TypeInfo::DecodableType standardTime; - Attributes::LocalTime::TypeInfo::DecodableType localTime; - Attributes::LastSetTime::TypeInfo::DecodableType lastSetTime; - Attributes::ValidUntilTime::TypeInfo::DecodableType validUntilTime; + Attributes::Time::TypeInfo::DecodableType time = static_cast(0); + Attributes::TimeStatus::TypeInfo::DecodableType timeStatus = static_cast(0); + Attributes::TimeZone::TypeInfo::DecodableType timeZone = static_cast(0); + Attributes::DstStart::TypeInfo::DecodableType dstStart = static_cast(0); + Attributes::DstEnd::TypeInfo::DecodableType dstEnd = static_cast(0); + Attributes::DstShift::TypeInfo::DecodableType dstShift = static_cast(0); + Attributes::StandardTime::TypeInfo::DecodableType standardTime = static_cast(0); + Attributes::LocalTime::TypeInfo::DecodableType localTime = static_cast(0); + Attributes::LastSetTime::TypeInfo::DecodableType lastSetTime = static_cast(0); + Attributes::ValidUntilTime::TypeInfo::DecodableType validUntilTime = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -4505,15 +4507,15 @@ struct TypeInfo Attributes::ActiveText::TypeInfo::DecodableType activeText; Attributes::Description::TypeInfo::DecodableType description; Attributes::InactiveText::TypeInfo::DecodableType inactiveText; - Attributes::OutOfService::TypeInfo::DecodableType outOfService; - Attributes::Polarity::TypeInfo::DecodableType polarity; - Attributes::PresentValue::TypeInfo::DecodableType presentValue; - Attributes::Reliability::TypeInfo::DecodableType reliability; - Attributes::StatusFlags::TypeInfo::DecodableType statusFlags; - Attributes::ApplicationType::TypeInfo::DecodableType applicationType; + Attributes::OutOfService::TypeInfo::DecodableType outOfService = static_cast(0); + Attributes::Polarity::TypeInfo::DecodableType polarity = static_cast(0); + Attributes::PresentValue::TypeInfo::DecodableType presentValue = static_cast(0); + Attributes::Reliability::TypeInfo::DecodableType reliability = static_cast(0); + Attributes::StatusFlags::TypeInfo::DecodableType statusFlags = static_cast(0); + Attributes::ApplicationType::TypeInfo::DecodableType applicationType = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -4719,7 +4721,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PowerProfileRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -4734,7 +4736,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PowerProfileRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace PowerProfileRequest @@ -4754,9 +4756,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PowerProfileNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t totalProfileNum; - uint8_t powerProfileId; - uint8_t numOfTransferredPhases; + uint8_t totalProfileNum = static_cast(0); + uint8_t powerProfileId = static_cast(0); + uint8_t numOfTransferredPhases = static_cast(0); DataModel::List transferredPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -4772,9 +4774,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PowerProfileNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t totalProfileNum; - uint8_t powerProfileId; - uint8_t numOfTransferredPhases; + uint8_t totalProfileNum = static_cast(0); + uint8_t powerProfileId = static_cast(0); + uint8_t numOfTransferredPhases = static_cast(0); DataModel::DecodableList transferredPhases; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -4823,9 +4825,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PowerProfileResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t totalProfileNum; - uint8_t powerProfileId; - uint8_t numOfTransferredPhases; + uint8_t totalProfileNum = static_cast(0); + uint8_t powerProfileId = static_cast(0); + uint8_t numOfTransferredPhases = static_cast(0); DataModel::List transferredPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -4841,9 +4843,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PowerProfileResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t totalProfileNum; - uint8_t powerProfileId; - uint8_t numOfTransferredPhases; + uint8_t totalProfileNum = static_cast(0); + uint8_t powerProfileId = static_cast(0); + uint8_t numOfTransferredPhases = static_cast(0); DataModel::DecodableList transferredPhases; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -4864,10 +4866,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetPowerProfilePriceResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint16_t currency; - uint32_t price; - uint8_t priceTrailingDigit; + uint8_t powerProfileId = static_cast(0); + uint16_t currency = static_cast(0); + uint32_t price = static_cast(0); + uint8_t priceTrailingDigit = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -4882,10 +4884,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetPowerProfilePriceResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint16_t currency; - uint32_t price; - uint8_t priceTrailingDigit; + uint8_t powerProfileId = static_cast(0); + uint16_t currency = static_cast(0); + uint32_t price = static_cast(0); + uint8_t priceTrailingDigit = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetPowerProfilePriceResponse @@ -4903,7 +4905,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PowerProfileStateResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileCount; + uint8_t powerProfileCount = static_cast(0); DataModel::List powerProfileRecords; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -4919,7 +4921,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PowerProfileStateResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileCount; + uint8_t powerProfileCount = static_cast(0); DataModel::DecodableList powerProfileRecords; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -4939,9 +4941,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetOverallSchedulePriceResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint16_t currency; - uint32_t price; - uint8_t priceTrailingDigit; + uint16_t currency = static_cast(0); + uint32_t price = static_cast(0); + uint8_t priceTrailingDigit = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -4956,9 +4958,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetOverallSchedulePriceResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint16_t currency; - uint32_t price; - uint8_t priceTrailingDigit; + uint16_t currency = static_cast(0); + uint32_t price = static_cast(0); + uint8_t priceTrailingDigit = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetOverallSchedulePriceResponse @@ -4975,7 +4977,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetPowerProfilePrice::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -4990,7 +4992,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetPowerProfilePrice::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetPowerProfilePrice @@ -5009,8 +5011,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint8_t numOfScheduledPhases; + uint8_t powerProfileId = static_cast(0); + uint8_t numOfScheduledPhases = static_cast(0); DataModel::List scheduledPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5026,8 +5028,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint8_t numOfScheduledPhases; + uint8_t powerProfileId = static_cast(0); + uint8_t numOfScheduledPhases = static_cast(0); DataModel::DecodableList scheduledPhases; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -5046,7 +5048,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PowerProfilesStateNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileCount; + uint8_t powerProfileCount = static_cast(0); DataModel::List powerProfileRecords; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5062,7 +5064,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PowerProfilesStateNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileCount; + uint8_t powerProfileCount = static_cast(0); DataModel::DecodableList powerProfileRecords; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -5082,8 +5084,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint8_t numOfScheduledPhases; + uint8_t powerProfileId = static_cast(0); + uint8_t numOfScheduledPhases = static_cast(0); DataModel::List scheduledPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5099,8 +5101,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint8_t numOfScheduledPhases; + uint8_t powerProfileId = static_cast(0); + uint8_t numOfScheduledPhases = static_cast(0); DataModel::DecodableList scheduledPhases; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -5146,7 +5148,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PowerProfileScheduleConstraintsRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5161,7 +5163,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PowerProfileScheduleConstraintsRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace PowerProfileScheduleConstraintsRequest @@ -5178,7 +5180,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5193,7 +5195,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnergyPhasesScheduleRequest @@ -5210,7 +5212,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleStateRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5225,7 +5227,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleStateRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; + uint8_t powerProfileId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnergyPhasesScheduleStateRequest @@ -5244,8 +5246,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleStateResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint8_t numOfScheduledPhases; + uint8_t powerProfileId = static_cast(0); + uint8_t numOfScheduledPhases = static_cast(0); DataModel::List scheduledPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5261,8 +5263,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleStateResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint8_t numOfScheduledPhases; + uint8_t powerProfileId = static_cast(0); + uint8_t numOfScheduledPhases = static_cast(0); DataModel::DecodableList scheduledPhases; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -5283,10 +5285,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetPowerProfilePriceExtendedResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint16_t currency; - uint32_t price; - uint8_t priceTrailingDigit; + uint8_t powerProfileId = static_cast(0); + uint16_t currency = static_cast(0); + uint32_t price = static_cast(0); + uint8_t priceTrailingDigit = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5301,10 +5303,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetPowerProfilePriceExtendedResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint16_t currency; - uint32_t price; - uint8_t priceTrailingDigit; + uint8_t powerProfileId = static_cast(0); + uint16_t currency = static_cast(0); + uint32_t price = static_cast(0); + uint8_t priceTrailingDigit = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetPowerProfilePriceExtendedResponse @@ -5323,8 +5325,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleStateNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint8_t numOfScheduledPhases; + uint8_t powerProfileId = static_cast(0); + uint8_t numOfScheduledPhases = static_cast(0); DataModel::List scheduledPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5340,8 +5342,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnergyPhasesScheduleStateNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint8_t numOfScheduledPhases; + uint8_t powerProfileId = static_cast(0); + uint8_t numOfScheduledPhases = static_cast(0); DataModel::DecodableList scheduledPhases; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -5361,9 +5363,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PowerProfileScheduleConstraintsNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint16_t startAfter; - uint16_t stopBefore; + uint8_t powerProfileId = static_cast(0); + uint16_t startAfter = static_cast(0); + uint16_t stopBefore = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5378,9 +5380,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PowerProfileScheduleConstraintsNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint16_t startAfter; - uint16_t stopBefore; + uint8_t powerProfileId = static_cast(0); + uint16_t startAfter = static_cast(0); + uint16_t stopBefore = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace PowerProfileScheduleConstraintsNotification @@ -5399,9 +5401,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PowerProfileScheduleConstraintsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint16_t startAfter; - uint16_t stopBefore; + uint8_t powerProfileId = static_cast(0); + uint16_t startAfter = static_cast(0); + uint16_t stopBefore = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5416,9 +5418,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PowerProfileScheduleConstraintsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t powerProfileId; - uint16_t startAfter; - uint16_t stopBefore; + uint8_t powerProfileId = static_cast(0); + uint16_t startAfter = static_cast(0); + uint16_t stopBefore = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace PowerProfileScheduleConstraintsResponse @@ -5437,9 +5439,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetPowerProfilePriceExtended::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t options; - uint8_t powerProfileId; - uint16_t powerProfileStartTime; + uint8_t options = static_cast(0); + uint8_t powerProfileId = static_cast(0); + uint16_t powerProfileStartTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5454,9 +5456,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetPowerProfilePriceExtended::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } - uint8_t options; - uint8_t powerProfileId; - uint16_t powerProfileStartTime; + uint8_t options = static_cast(0); + uint8_t powerProfileId = static_cast(0); + uint16_t powerProfileStartTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetPowerProfilePriceExtended @@ -5569,14 +5571,14 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::TotalProfileNum::TypeInfo::DecodableType totalProfileNum; - Attributes::MultipleScheduling::TypeInfo::DecodableType multipleScheduling; - Attributes::EnergyFormatting::TypeInfo::DecodableType energyFormatting; - Attributes::EnergyRemote::TypeInfo::DecodableType energyRemote; - Attributes::ScheduleMode::TypeInfo::DecodableType scheduleMode; + Attributes::TotalProfileNum::TypeInfo::DecodableType totalProfileNum = static_cast(0); + Attributes::MultipleScheduling::TypeInfo::DecodableType multipleScheduling = static_cast(0); + Attributes::EnergyFormatting::TypeInfo::DecodableType energyFormatting = static_cast(0); + Attributes::EnergyRemote::TypeInfo::DecodableType energyRemote = static_cast(0); + Attributes::ScheduleMode::TypeInfo::DecodableType scheduleMode = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -5692,7 +5694,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ExecutionOfACommand::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - CommandIdentification commandId; + CommandIdentification commandId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5707,7 +5709,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ExecutionOfACommand::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - CommandIdentification commandId; + CommandIdentification commandId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ExecutionOfACommand @@ -5726,9 +5728,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SignalStateResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - ApplianceStatus applianceStatus; - chip::BitFlags remoteEnableFlagsAndDeviceStatus2; - ApplianceStatus applianceStatus2; + ApplianceStatus applianceStatus = static_cast(0); + chip::BitFlags remoteEnableFlagsAndDeviceStatus2 = + static_cast>(0); + ApplianceStatus applianceStatus2 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5743,9 +5746,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SignalStateResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - ApplianceStatus applianceStatus; - chip::BitFlags remoteEnableFlagsAndDeviceStatus2; - ApplianceStatus applianceStatus2; + ApplianceStatus applianceStatus = static_cast(0); + chip::BitFlags remoteEnableFlagsAndDeviceStatus2 = + static_cast>(0); + ApplianceStatus applianceStatus2 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SignalStateResponse @@ -5792,9 +5796,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SignalStateNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - ApplianceStatus applianceStatus; - chip::BitFlags remoteEnableFlagsAndDeviceStatus2; - ApplianceStatus applianceStatus2; + ApplianceStatus applianceStatus = static_cast(0); + chip::BitFlags remoteEnableFlagsAndDeviceStatus2 = + static_cast>(0); + ApplianceStatus applianceStatus2 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5809,9 +5814,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SignalStateNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - ApplianceStatus applianceStatus; - chip::BitFlags remoteEnableFlagsAndDeviceStatus2; - ApplianceStatus applianceStatus2; + ApplianceStatus applianceStatus = static_cast(0); + chip::BitFlags remoteEnableFlagsAndDeviceStatus2 = + static_cast>(0); + ApplianceStatus applianceStatus2 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SignalStateNotification @@ -5830,8 +5836,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::WriteFunctions::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - uint16_t functionId; - uint8_t functionDataType; + uint16_t functionId = static_cast(0); + uint8_t functionDataType = static_cast(0); DataModel::List functionData; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5847,8 +5853,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::WriteFunctions::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - uint16_t functionId; - uint8_t functionDataType; + uint16_t functionId = static_cast(0); + uint8_t functionDataType = static_cast(0); DataModel::DecodableList functionData; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -5922,7 +5928,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::OverloadWarning::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - WarningEvent warningEvent; + WarningEvent warningEvent = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -5937,7 +5943,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::OverloadWarning::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } - WarningEvent warningEvent; + WarningEvent warningEvent = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace OverloadWarning @@ -6026,12 +6032,12 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::StartTime::TypeInfo::DecodableType startTime; - Attributes::FinishTime::TypeInfo::DecodableType finishTime; - Attributes::RemainingTime::TypeInfo::DecodableType remainingTime; + Attributes::StartTime::TypeInfo::DecodableType startTime = static_cast(0); + Attributes::FinishTime::TypeInfo::DecodableType finishTime = static_cast(0); + Attributes::RemainingTime::TypeInfo::DecodableType remainingTime = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -6086,8 +6092,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -6218,8 +6224,8 @@ struct TypeInfo Attributes::ClientList::TypeInfo::DecodableType clientList; Attributes::PartsList::TypeInfo::DecodableType partsList; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -6258,10 +6264,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Bind::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Binding::Id; } - chip::NodeId nodeId; - chip::GroupId groupId; - chip::EndpointId endpointId; - chip::ClusterId clusterId; + chip::NodeId nodeId = static_cast(0); + chip::GroupId groupId = static_cast(0); + chip::EndpointId endpointId = static_cast(0); + chip::ClusterId clusterId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -6276,10 +6282,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Bind::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Binding::Id; } - chip::NodeId nodeId; - chip::GroupId groupId; - chip::EndpointId endpointId; - chip::ClusterId clusterId; + chip::NodeId nodeId = static_cast(0); + chip::GroupId groupId = static_cast(0); + chip::EndpointId endpointId = static_cast(0); + chip::ClusterId clusterId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Bind @@ -6299,10 +6305,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Unbind::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Binding::Id; } - chip::NodeId nodeId; - chip::GroupId groupId; - chip::EndpointId endpointId; - chip::ClusterId clusterId; + chip::NodeId nodeId = static_cast(0); + chip::GroupId groupId = static_cast(0); + chip::EndpointId endpointId = static_cast(0); + chip::ClusterId clusterId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -6317,10 +6323,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Unbind::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Binding::Id; } - chip::NodeId nodeId; - chip::GroupId groupId; - chip::EndpointId endpointId; - chip::ClusterId clusterId; + chip::NodeId nodeId = static_cast(0); + chip::GroupId groupId = static_cast(0); + chip::EndpointId endpointId = static_cast(0); + chip::ClusterId clusterId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Unbind @@ -6374,8 +6380,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -6557,8 +6563,8 @@ struct TypeInfo Attributes::Acl::TypeInfo::DecodableType acl; Attributes::Extension::TypeInfo::DecodableType extension; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -6638,8 +6644,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::CheckInResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; } - bool startFastPolling; - uint16_t fastPollTimeout; + bool startFastPolling = static_cast(0); + uint16_t fastPollTimeout = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -6654,8 +6660,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::CheckInResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; } - bool startFastPolling; - uint16_t fastPollTimeout; + bool startFastPolling = static_cast(0); + uint16_t fastPollTimeout = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace CheckInResponse @@ -6700,7 +6706,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetLongPollInterval::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; } - uint32_t newLongPollInterval; + uint32_t newLongPollInterval = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -6715,7 +6721,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetLongPollInterval::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; } - uint32_t newLongPollInterval; + uint32_t newLongPollInterval = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetLongPollInterval @@ -6732,7 +6738,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetShortPollInterval::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; } - uint16_t newShortPollInterval; + uint16_t newShortPollInterval = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -6747,7 +6753,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetShortPollInterval::Id; } static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; } - uint16_t newShortPollInterval; + uint16_t newShortPollInterval = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetShortPollInterval @@ -6884,16 +6890,16 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::CheckInInterval::TypeInfo::DecodableType checkInInterval; - Attributes::LongPollInterval::TypeInfo::DecodableType longPollInterval; - Attributes::ShortPollInterval::TypeInfo::DecodableType shortPollInterval; - Attributes::FastPollTimeout::TypeInfo::DecodableType fastPollTimeout; - Attributes::CheckInIntervalMin::TypeInfo::DecodableType checkInIntervalMin; - Attributes::LongPollIntervalMin::TypeInfo::DecodableType longPollIntervalMin; - Attributes::FastPollTimeoutMax::TypeInfo::DecodableType fastPollTimeoutMax; + Attributes::CheckInInterval::TypeInfo::DecodableType checkInInterval = static_cast(0); + Attributes::LongPollInterval::TypeInfo::DecodableType longPollInterval = static_cast(0); + Attributes::ShortPollInterval::TypeInfo::DecodableType shortPollInterval = static_cast(0); + Attributes::FastPollTimeout::TypeInfo::DecodableType fastPollTimeout = static_cast(0); + Attributes::CheckInIntervalMin::TypeInfo::DecodableType checkInIntervalMin = static_cast(0); + Attributes::LongPollIntervalMin::TypeInfo::DecodableType longPollIntervalMin = static_cast(0); + Attributes::FastPollTimeoutMax::TypeInfo::DecodableType fastPollTimeoutMax = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -7091,7 +7097,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::InstantAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7107,7 +7113,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::InstantAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -7127,9 +7133,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::InstantActionWithTransition::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint16_t transitionTime; + uint16_t transitionTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7144,9 +7150,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::InstantActionWithTransition::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint16_t transitionTime; + uint16_t transitionTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace InstantActionWithTransition @@ -7164,7 +7170,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StartAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7180,7 +7186,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StartAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -7200,9 +7206,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StartActionWithDuration::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint32_t duration; + uint32_t duration = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7217,9 +7223,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StartActionWithDuration::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint32_t duration; + uint32_t duration = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StartActionWithDuration @@ -7237,7 +7243,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StopAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7253,7 +7259,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StopAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -7272,7 +7278,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PauseAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7288,7 +7294,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PauseAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -7308,9 +7314,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PauseActionWithDuration::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint32_t duration; + uint32_t duration = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7325,9 +7331,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PauseActionWithDuration::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint32_t duration; + uint32_t duration = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace PauseActionWithDuration @@ -7345,7 +7351,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ResumeAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7361,7 +7367,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ResumeAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -7380,7 +7386,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnableAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7396,7 +7402,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnableAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -7416,9 +7422,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnableActionWithDuration::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint32_t duration; + uint32_t duration = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7433,9 +7439,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnableActionWithDuration::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint32_t duration; + uint32_t duration = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnableActionWithDuration @@ -7453,7 +7459,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::DisableAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7469,7 +7475,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::DisableAction::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -7489,9 +7495,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::DisableActionWithDuration::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint32_t duration; + uint32_t duration = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -7506,9 +7512,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::DisableActionWithDuration::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; + uint16_t actionID = static_cast(0); Optional invokeID; - uint32_t duration; + uint32_t duration = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace DisableActionWithDuration @@ -7605,8 +7611,8 @@ struct TypeInfo Attributes::EndpointList::TypeInfo::DecodableType endpointList; Attributes::SetupUrl::TypeInfo::DecodableType setupUrl; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -7629,9 +7635,9 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; - uint32_t invokeID; - ActionStateEnum newState; + uint16_t actionID = static_cast(0); + uint32_t invokeID = static_cast(0); + ActionStateEnum newState = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -7643,9 +7649,9 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; - uint32_t invokeID; - ActionStateEnum newState; + uint16_t actionID = static_cast(0); + uint32_t invokeID = static_cast(0); + ActionStateEnum newState = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -7669,10 +7675,10 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; - uint32_t invokeID; - ActionStateEnum newState; - ActionErrorEnum error; + uint16_t actionID = static_cast(0); + uint32_t invokeID = static_cast(0); + ActionStateEnum newState = static_cast(0); + ActionErrorEnum error = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -7684,10 +7690,10 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::BridgedActions::Id; } - uint16_t actionID; - uint32_t invokeID; - ActionStateEnum newState; - ActionErrorEnum error; + uint16_t actionID = static_cast(0); + uint32_t invokeID = static_cast(0); + ActionStateEnum newState = static_cast(0); + ActionErrorEnum error = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -8012,28 +8018,28 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::InteractionModelVersion::TypeInfo::DecodableType interactionModelVersion; + Attributes::InteractionModelVersion::TypeInfo::DecodableType interactionModelVersion = static_cast(0); Attributes::VendorName::TypeInfo::DecodableType vendorName; - Attributes::VendorID::TypeInfo::DecodableType vendorID; + Attributes::VendorID::TypeInfo::DecodableType vendorID = static_cast(0); Attributes::ProductName::TypeInfo::DecodableType productName; - Attributes::ProductID::TypeInfo::DecodableType productID; + Attributes::ProductID::TypeInfo::DecodableType productID = static_cast(0); Attributes::NodeLabel::TypeInfo::DecodableType nodeLabel; Attributes::Location::TypeInfo::DecodableType location; - Attributes::HardwareVersion::TypeInfo::DecodableType hardwareVersion; + Attributes::HardwareVersion::TypeInfo::DecodableType hardwareVersion = static_cast(0); Attributes::HardwareVersionString::TypeInfo::DecodableType hardwareVersionString; - Attributes::SoftwareVersion::TypeInfo::DecodableType softwareVersion; + Attributes::SoftwareVersion::TypeInfo::DecodableType softwareVersion = static_cast(0); Attributes::SoftwareVersionString::TypeInfo::DecodableType softwareVersionString; Attributes::ManufacturingDate::TypeInfo::DecodableType manufacturingDate; Attributes::PartNumber::TypeInfo::DecodableType partNumber; Attributes::ProductURL::TypeInfo::DecodableType productURL; Attributes::ProductLabel::TypeInfo::DecodableType productLabel; Attributes::SerialNumber::TypeInfo::DecodableType serialNumber; - Attributes::LocalConfigDisabled::TypeInfo::DecodableType localConfigDisabled; - Attributes::Reachable::TypeInfo::DecodableType reachable; + Attributes::LocalConfigDisabled::TypeInfo::DecodableType localConfigDisabled = static_cast(0); + Attributes::Reachable::TypeInfo::DecodableType reachable = static_cast(0); Attributes::UniqueID::TypeInfo::DecodableType uniqueID; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -8054,7 +8060,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; } - uint32_t softwareVersion; + uint32_t softwareVersion = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -8066,7 +8072,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; } - uint32_t softwareVersion; + uint32_t softwareVersion = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -8143,7 +8149,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; } - bool reachableNewValue; + bool reachableNewValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -8155,7 +8161,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; } - bool reachableNewValue; + bool reachableNewValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -8238,9 +8244,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::QueryImage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } - chip::VendorId vendorId; - uint16_t productId; - uint32_t softwareVersion; + chip::VendorId vendorId = static_cast(0); + uint16_t productId = static_cast(0); + uint32_t softwareVersion = static_cast(0); DataModel::List protocolsSupported; Optional hardwareVersion; Optional location; @@ -8260,9 +8266,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::QueryImage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } - chip::VendorId vendorId; - uint16_t productId; - uint32_t softwareVersion; + chip::VendorId vendorId = static_cast(0); + uint16_t productId = static_cast(0); + uint32_t softwareVersion = static_cast(0); DataModel::DecodableList protocolsSupported; Optional hardwareVersion; Optional location; @@ -8291,7 +8297,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::QueryImageResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } - OTAQueryStatus status; + OTAQueryStatus status = static_cast(0); Optional delayedActionTime; Optional imageURI; Optional softwareVersion; @@ -8313,7 +8319,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::QueryImageResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } - OTAQueryStatus status; + OTAQueryStatus status = static_cast(0); Optional delayedActionTime; Optional imageURI; Optional softwareVersion; @@ -8339,7 +8345,7 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } chip::ByteSpan updateToken; - uint32_t newVersion; + uint32_t newVersion = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -8355,7 +8361,7 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } chip::ByteSpan updateToken; - uint32_t newVersion; + uint32_t newVersion = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ApplyUpdateRequest @@ -8373,8 +8379,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ApplyUpdateResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } - OTAApplyUpdateAction action; - uint32_t delayedActionTime; + OTAApplyUpdateAction action = static_cast(0); + uint32_t delayedActionTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -8389,8 +8395,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ApplyUpdateResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } - OTAApplyUpdateAction action; - uint32_t delayedActionTime; + OTAApplyUpdateAction action = static_cast(0); + uint32_t delayedActionTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ApplyUpdateResponse @@ -8409,7 +8415,7 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } chip::ByteSpan updateToken; - uint32_t softwareVersion; + uint32_t softwareVersion = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -8425,7 +8431,7 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; } chip::ByteSpan updateToken; - uint32_t softwareVersion; + uint32_t softwareVersion = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace NotifyUpdateApplied @@ -8479,8 +8485,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -8570,11 +8576,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::AnnounceOtaProvider::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; } - chip::NodeId providerNodeId; - chip::VendorId vendorId; - OTAAnnouncementReason announcementReason; + chip::NodeId providerNodeId = static_cast(0); + chip::VendorId vendorId = static_cast(0); + OTAAnnouncementReason announcementReason = static_cast(0); Optional metadataForNode; - chip::EndpointId endpoint; + chip::EndpointId endpoint = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -8589,11 +8595,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::AnnounceOtaProvider::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; } - chip::NodeId providerNodeId; - chip::VendorId vendorId; - OTAAnnouncementReason announcementReason; + chip::NodeId providerNodeId = static_cast(0); + chip::VendorId vendorId = static_cast(0); + OTAAnnouncementReason announcementReason = static_cast(0); Optional metadataForNode; - chip::EndpointId endpoint; + chip::EndpointId endpoint = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace AnnounceOtaProvider @@ -8697,12 +8703,12 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::DefaultOtaProviders::TypeInfo::DecodableType defaultOtaProviders; - Attributes::UpdatePossible::TypeInfo::DecodableType updatePossible; - Attributes::UpdateState::TypeInfo::DecodableType updateState; + Attributes::UpdatePossible::TypeInfo::DecodableType updatePossible = static_cast(0); + Attributes::UpdateState::TypeInfo::DecodableType updateState = static_cast(0); Attributes::UpdateStateProgress::TypeInfo::DecodableType updateStateProgress; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -8727,8 +8733,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; } DataModel::Nullable previousState; - OTAUpdateStateEnum newState; - OTAChangeReasonEnum reason; + OTAUpdateStateEnum newState = static_cast(0); + OTAChangeReasonEnum reason = static_cast(0); DataModel::Nullable targetSoftwareVersion; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -8742,8 +8748,8 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; } DataModel::Nullable previousState; - OTAUpdateStateEnum newState; - OTAChangeReasonEnum reason; + OTAUpdateStateEnum newState = static_cast(0); + OTAChangeReasonEnum reason = static_cast(0); DataModel::Nullable targetSoftwareVersion; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -8766,8 +8772,8 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; } - uint32_t softwareVersion; - uint16_t productID; + uint32_t softwareVersion = static_cast(0); + uint16_t productID = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -8779,8 +8785,8 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; } - uint32_t softwareVersion; - uint16_t productID; + uint32_t softwareVersion = static_cast(0); + uint16_t productID = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -8804,9 +8810,9 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; } - uint32_t softwareVersion; - uint64_t bytesDownloaded; - uint8_t progressPercent; + uint32_t softwareVersion = static_cast(0); + uint64_t bytesDownloaded = static_cast(0); + uint8_t progressPercent = static_cast(0); DataModel::Nullable platformCode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -8819,9 +8825,9 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; } - uint32_t softwareVersion; - uint64_t bytesDownloaded; - uint8_t progressPercent; + uint32_t softwareVersion = static_cast(0); + uint64_t bytesDownloaded = static_cast(0); + uint8_t progressPercent = static_cast(0); DataModel::Nullable platformCode; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -8905,8 +8911,8 @@ struct TypeInfo Attributes::ActiveLocale::TypeInfo::DecodableType activeLocale; Attributes::SupportedLocales::TypeInfo::DecodableType supportedLocales; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -9018,12 +9024,12 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::HourFormat::TypeInfo::DecodableType hourFormat; - Attributes::CalendarType::TypeInfo::DecodableType calendarType; + Attributes::HourFormat::TypeInfo::DecodableType hourFormat = static_cast(0); + Attributes::CalendarType::TypeInfo::DecodableType calendarType = static_cast(0); Attributes::SupportedCalendarTypes::TypeInfo::DecodableType supportedCalendarTypes; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -9091,8 +9097,8 @@ struct TypeInfo Attributes::Sources::TypeInfo::DecodableType sources; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -9527,40 +9533,40 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::Status::TypeInfo::DecodableType status; - Attributes::Order::TypeInfo::DecodableType order; + Attributes::Status::TypeInfo::DecodableType status = static_cast(0); + Attributes::Order::TypeInfo::DecodableType order = static_cast(0); Attributes::Description::TypeInfo::DecodableType description; - Attributes::WiredAssessedInputVoltage::TypeInfo::DecodableType wiredAssessedInputVoltage; - Attributes::WiredAssessedInputFrequency::TypeInfo::DecodableType wiredAssessedInputFrequency; - Attributes::WiredCurrentType::TypeInfo::DecodableType wiredCurrentType; - Attributes::WiredAssessedCurrent::TypeInfo::DecodableType wiredAssessedCurrent; - Attributes::WiredNominalVoltage::TypeInfo::DecodableType wiredNominalVoltage; - Attributes::WiredMaximumCurrent::TypeInfo::DecodableType wiredMaximumCurrent; - Attributes::WiredPresent::TypeInfo::DecodableType wiredPresent; + Attributes::WiredAssessedInputVoltage::TypeInfo::DecodableType wiredAssessedInputVoltage = static_cast(0); + Attributes::WiredAssessedInputFrequency::TypeInfo::DecodableType wiredAssessedInputFrequency = static_cast(0); + Attributes::WiredCurrentType::TypeInfo::DecodableType wiredCurrentType = static_cast(0); + Attributes::WiredAssessedCurrent::TypeInfo::DecodableType wiredAssessedCurrent = static_cast(0); + Attributes::WiredNominalVoltage::TypeInfo::DecodableType wiredNominalVoltage = static_cast(0); + Attributes::WiredMaximumCurrent::TypeInfo::DecodableType wiredMaximumCurrent = static_cast(0); + Attributes::WiredPresent::TypeInfo::DecodableType wiredPresent = static_cast(0); Attributes::ActiveWiredFaults::TypeInfo::DecodableType activeWiredFaults; - Attributes::BatteryVoltage::TypeInfo::DecodableType batteryVoltage; - Attributes::BatteryPercentRemaining::TypeInfo::DecodableType batteryPercentRemaining; - Attributes::BatteryTimeRemaining::TypeInfo::DecodableType batteryTimeRemaining; - Attributes::BatteryChargeLevel::TypeInfo::DecodableType batteryChargeLevel; - Attributes::BatteryReplacementNeeded::TypeInfo::DecodableType batteryReplacementNeeded; - Attributes::BatteryReplaceability::TypeInfo::DecodableType batteryReplaceability; - Attributes::BatteryPresent::TypeInfo::DecodableType batteryPresent; + Attributes::BatteryVoltage::TypeInfo::DecodableType batteryVoltage = static_cast(0); + Attributes::BatteryPercentRemaining::TypeInfo::DecodableType batteryPercentRemaining = static_cast(0); + Attributes::BatteryTimeRemaining::TypeInfo::DecodableType batteryTimeRemaining = static_cast(0); + Attributes::BatteryChargeLevel::TypeInfo::DecodableType batteryChargeLevel = static_cast(0); + Attributes::BatteryReplacementNeeded::TypeInfo::DecodableType batteryReplacementNeeded = static_cast(0); + Attributes::BatteryReplaceability::TypeInfo::DecodableType batteryReplaceability = static_cast(0); + Attributes::BatteryPresent::TypeInfo::DecodableType batteryPresent = static_cast(0); Attributes::ActiveBatteryFaults::TypeInfo::DecodableType activeBatteryFaults; Attributes::BatteryReplacementDescription::TypeInfo::DecodableType batteryReplacementDescription; - Attributes::BatteryCommonDesignation::TypeInfo::DecodableType batteryCommonDesignation; + Attributes::BatteryCommonDesignation::TypeInfo::DecodableType batteryCommonDesignation = static_cast(0); Attributes::BatteryANSIDesignation::TypeInfo::DecodableType batteryANSIDesignation; Attributes::BatteryIECDesignation::TypeInfo::DecodableType batteryIECDesignation; - Attributes::BatteryApprovedChemistry::TypeInfo::DecodableType batteryApprovedChemistry; - Attributes::BatteryCapacity::TypeInfo::DecodableType batteryCapacity; - Attributes::BatteryQuantity::TypeInfo::DecodableType batteryQuantity; - Attributes::BatteryChargeState::TypeInfo::DecodableType batteryChargeState; - Attributes::BatteryTimeToFullCharge::TypeInfo::DecodableType batteryTimeToFullCharge; - Attributes::BatteryFunctionalWhileCharging::TypeInfo::DecodableType batteryFunctionalWhileCharging; - Attributes::BatteryChargingCurrent::TypeInfo::DecodableType batteryChargingCurrent; + Attributes::BatteryApprovedChemistry::TypeInfo::DecodableType batteryApprovedChemistry = static_cast(0); + Attributes::BatteryCapacity::TypeInfo::DecodableType batteryCapacity = static_cast(0); + Attributes::BatteryQuantity::TypeInfo::DecodableType batteryQuantity = static_cast(0); + Attributes::BatteryChargeState::TypeInfo::DecodableType batteryChargeState = static_cast(0); + Attributes::BatteryTimeToFullCharge::TypeInfo::DecodableType batteryTimeToFullCharge = static_cast(0); + Attributes::BatteryFunctionalWhileCharging::TypeInfo::DecodableType batteryFunctionalWhileCharging = static_cast(0); + Attributes::BatteryChargingCurrent::TypeInfo::DecodableType batteryChargingCurrent = static_cast(0); Attributes::ActiveBatteryChargeFaults::TypeInfo::DecodableType activeBatteryChargeFaults; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -9654,9 +9660,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ArmFailSafe::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - uint16_t expiryLengthSeconds; - uint64_t breadcrumb; - uint32_t timeoutMs; + uint16_t expiryLengthSeconds = static_cast(0); + uint64_t breadcrumb = static_cast(0); + uint32_t timeoutMs = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -9671,9 +9677,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ArmFailSafe::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - uint16_t expiryLengthSeconds; - uint64_t breadcrumb; - uint32_t timeoutMs; + uint16_t expiryLengthSeconds = static_cast(0); + uint64_t breadcrumb = static_cast(0); + uint32_t timeoutMs = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ArmFailSafe @@ -9691,7 +9697,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ArmFailSafeResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - GeneralCommissioningError errorCode; + GeneralCommissioningError errorCode = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -9707,7 +9713,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ArmFailSafeResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - GeneralCommissioningError errorCode; + GeneralCommissioningError errorCode = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -9728,10 +9734,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetRegulatoryConfig::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - RegulatoryLocationType location; + RegulatoryLocationType location = static_cast(0); chip::CharSpan countryCode; - uint64_t breadcrumb; - uint32_t timeoutMs; + uint64_t breadcrumb = static_cast(0); + uint32_t timeoutMs = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -9746,10 +9752,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetRegulatoryConfig::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - RegulatoryLocationType location; + RegulatoryLocationType location = static_cast(0); chip::CharSpan countryCode; - uint64_t breadcrumb; - uint32_t timeoutMs; + uint64_t breadcrumb = static_cast(0); + uint32_t timeoutMs = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetRegulatoryConfig @@ -9767,7 +9773,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetRegulatoryConfigResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - GeneralCommissioningError errorCode; + GeneralCommissioningError errorCode = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -9783,7 +9789,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetRegulatoryConfigResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - GeneralCommissioningError errorCode; + GeneralCommissioningError errorCode = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -9830,7 +9836,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::CommissioningCompleteResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - GeneralCommissioningError errorCode; + GeneralCommissioningError errorCode = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -9846,7 +9852,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::CommissioningCompleteResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } - GeneralCommissioningError errorCode; + GeneralCommissioningError errorCode = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -9951,13 +9957,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::Breadcrumb::TypeInfo::DecodableType breadcrumb; + Attributes::Breadcrumb::TypeInfo::DecodableType breadcrumb = static_cast(0); Attributes::BasicCommissioningInfoList::TypeInfo::DecodableType basicCommissioningInfoList; - Attributes::RegulatoryConfig::TypeInfo::DecodableType regulatoryConfig; - Attributes::LocationCapability::TypeInfo::DecodableType locationCapability; + Attributes::RegulatoryConfig::TypeInfo::DecodableType regulatoryConfig = static_cast(0); + Attributes::LocationCapability::TypeInfo::DecodableType locationCapability = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -10139,7 +10145,7 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan ssid; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10155,7 +10161,7 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan ssid; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ScanNetworks @@ -10175,7 +10181,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ScanNetworksResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } - NetworkCommissioningStatus networkingStatus; + NetworkCommissioningStatus networkingStatus = static_cast(0); chip::CharSpan debugText; Optional> wiFiScanResults; Optional> threadScanResults; @@ -10193,7 +10199,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ScanNetworksResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } - NetworkCommissioningStatus networkingStatus; + NetworkCommissioningStatus networkingStatus = static_cast(0); chip::CharSpan debugText; Optional> wiFiScanResults; Optional> threadScanResults; @@ -10217,7 +10223,7 @@ struct Type chip::ByteSpan ssid; chip::ByteSpan credentials; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10234,7 +10240,7 @@ struct DecodableType chip::ByteSpan ssid; chip::ByteSpan credentials; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace AddOrUpdateWiFiNetwork @@ -10253,7 +10259,7 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan operationalDataset; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10269,7 +10275,7 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan operationalDataset; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace AddOrUpdateThreadNetwork @@ -10288,7 +10294,7 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan networkID; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10304,7 +10310,7 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan networkID; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RemoveNetwork @@ -10322,7 +10328,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::NetworkConfigResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } - NetworkCommissioningStatus networkingStatus; + NetworkCommissioningStatus networkingStatus = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10338,7 +10344,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::NetworkConfigResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } - NetworkCommissioningStatus networkingStatus; + NetworkCommissioningStatus networkingStatus = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -10358,7 +10364,7 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan networkID; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10374,7 +10380,7 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan networkID; - uint64_t breadcrumb; + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ConnectNetwork @@ -10393,9 +10399,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ConnectNetworkResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } - NetworkCommissioningStatus networkingStatus; + NetworkCommissioningStatus networkingStatus = static_cast(0); chip::CharSpan debugText; - int32_t errorValue; + int32_t errorValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10410,9 +10416,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ConnectNetworkResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } - NetworkCommissioningStatus networkingStatus; + NetworkCommissioningStatus networkingStatus = static_cast(0); chip::CharSpan debugText; - int32_t errorValue; + int32_t errorValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ConnectNetworkResponse @@ -10432,8 +10438,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan networkID; - uint8_t networkIndex; - uint64_t breadcrumb; + uint8_t networkIndex = static_cast(0); + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10449,8 +10455,8 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; } chip::ByteSpan networkID; - uint8_t networkIndex; - uint64_t breadcrumb; + uint8_t networkIndex = static_cast(0); + uint64_t breadcrumb = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ReorderNetwork @@ -10601,17 +10607,17 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MaxNetworks::TypeInfo::DecodableType maxNetworks; + Attributes::MaxNetworks::TypeInfo::DecodableType maxNetworks = static_cast(0); Attributes::Networks::TypeInfo::DecodableType networks; - Attributes::ScanMaxTimeSeconds::TypeInfo::DecodableType scanMaxTimeSeconds; - Attributes::ConnectMaxTimeSeconds::TypeInfo::DecodableType connectMaxTimeSeconds; - Attributes::InterfaceEnabled::TypeInfo::DecodableType interfaceEnabled; - Attributes::LastNetworkingStatus::TypeInfo::DecodableType lastNetworkingStatus; + Attributes::ScanMaxTimeSeconds::TypeInfo::DecodableType scanMaxTimeSeconds = static_cast(0); + Attributes::ConnectMaxTimeSeconds::TypeInfo::DecodableType connectMaxTimeSeconds = static_cast(0); + Attributes::InterfaceEnabled::TypeInfo::DecodableType interfaceEnabled = static_cast(0); + Attributes::LastNetworkingStatus::TypeInfo::DecodableType lastNetworkingStatus = static_cast(0); Attributes::LastNetworkID::TypeInfo::DecodableType lastNetworkID; - Attributes::LastConnectErrorValue::TypeInfo::DecodableType lastConnectErrorValue; + Attributes::LastConnectErrorValue::TypeInfo::DecodableType lastConnectErrorValue = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -10671,8 +10677,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RetrieveLogsRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DiagnosticLogs::Id; } - LogsIntent intent; - LogsTransferProtocol requestedProtocol; + LogsIntent intent = static_cast(0); + LogsTransferProtocol requestedProtocol = static_cast(0); chip::ByteSpan transferFileDesignator; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10688,8 +10694,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RetrieveLogsRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DiagnosticLogs::Id; } - LogsIntent intent; - LogsTransferProtocol requestedProtocol; + LogsIntent intent = static_cast(0); + LogsTransferProtocol requestedProtocol = static_cast(0); chip::ByteSpan transferFileDesignator; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -10710,10 +10716,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RetrieveLogsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DiagnosticLogs::Id; } - LogsStatus status; + LogsStatus status = static_cast(0); chip::ByteSpan content; - uint32_t timeStamp; - uint32_t timeSinceBoot; + uint32_t timeStamp = static_cast(0); + uint32_t timeSinceBoot = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -10728,10 +10734,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RetrieveLogsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DiagnosticLogs::Id; } - LogsStatus status; + LogsStatus status = static_cast(0); chip::ByteSpan content; - uint32_t timeStamp; - uint32_t timeSinceBoot; + uint32_t timeStamp = static_cast(0); + uint32_t timeSinceBoot = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RetrieveLogsResponse @@ -10785,8 +10791,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -11054,16 +11060,16 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::NetworkInterfaces::TypeInfo::DecodableType networkInterfaces; - Attributes::RebootCount::TypeInfo::DecodableType rebootCount; - Attributes::UpTime::TypeInfo::DecodableType upTime; - Attributes::TotalOperationalHours::TypeInfo::DecodableType totalOperationalHours; - Attributes::BootReasons::TypeInfo::DecodableType bootReasons; + Attributes::RebootCount::TypeInfo::DecodableType rebootCount = static_cast(0); + Attributes::UpTime::TypeInfo::DecodableType upTime = static_cast(0); + Attributes::TotalOperationalHours::TypeInfo::DecodableType totalOperationalHours = static_cast(0); + Attributes::BootReasons::TypeInfo::DecodableType bootReasons = static_cast(0); Attributes::ActiveHardwareFaults::TypeInfo::DecodableType activeHardwareFaults; Attributes::ActiveRadioFaults::TypeInfo::DecodableType activeRadioFaults; Attributes::ActiveNetworkFaults::TypeInfo::DecodableType activeNetworkFaults; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -11192,7 +11198,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; } - BootReasonType bootReason; + BootReasonType bootReason = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -11204,7 +11210,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; } - BootReasonType bootReason; + BootReasonType bootReason = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -11403,12 +11409,12 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::ThreadMetrics::TypeInfo::DecodableType threadMetrics; - Attributes::CurrentHeapFree::TypeInfo::DecodableType currentHeapFree; - Attributes::CurrentHeapUsed::TypeInfo::DecodableType currentHeapUsed; - Attributes::CurrentHeapHighWatermark::TypeInfo::DecodableType currentHeapHighWatermark; + Attributes::CurrentHeapFree::TypeInfo::DecodableType currentHeapFree = static_cast(0); + Attributes::CurrentHeapUsed::TypeInfo::DecodableType currentHeapUsed = static_cast(0); + Attributes::CurrentHeapHighWatermark::TypeInfo::DecodableType currentHeapHighWatermark = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -12478,72 +12484,73 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::Channel::TypeInfo::DecodableType channel; - Attributes::RoutingRole::TypeInfo::DecodableType routingRole; + Attributes::Channel::TypeInfo::DecodableType channel = static_cast(0); + Attributes::RoutingRole::TypeInfo::DecodableType routingRole = static_cast(0); Attributes::NetworkName::TypeInfo::DecodableType networkName; - Attributes::PanId::TypeInfo::DecodableType panId; - Attributes::ExtendedPanId::TypeInfo::DecodableType extendedPanId; + Attributes::PanId::TypeInfo::DecodableType panId = static_cast(0); + Attributes::ExtendedPanId::TypeInfo::DecodableType extendedPanId = static_cast(0); Attributes::MeshLocalPrefix::TypeInfo::DecodableType meshLocalPrefix; - Attributes::OverrunCount::TypeInfo::DecodableType overrunCount; + Attributes::OverrunCount::TypeInfo::DecodableType overrunCount = static_cast(0); Attributes::NeighborTableList::TypeInfo::DecodableType neighborTableList; Attributes::RouteTableList::TypeInfo::DecodableType routeTableList; - Attributes::PartitionId::TypeInfo::DecodableType partitionId; - Attributes::Weighting::TypeInfo::DecodableType weighting; - Attributes::DataVersion::TypeInfo::DecodableType dataVersion; - Attributes::StableDataVersion::TypeInfo::DecodableType stableDataVersion; - Attributes::LeaderRouterId::TypeInfo::DecodableType leaderRouterId; - Attributes::DetachedRoleCount::TypeInfo::DecodableType detachedRoleCount; - Attributes::ChildRoleCount::TypeInfo::DecodableType childRoleCount; - Attributes::RouterRoleCount::TypeInfo::DecodableType routerRoleCount; - Attributes::LeaderRoleCount::TypeInfo::DecodableType leaderRoleCount; - Attributes::AttachAttemptCount::TypeInfo::DecodableType attachAttemptCount; - Attributes::PartitionIdChangeCount::TypeInfo::DecodableType partitionIdChangeCount; - Attributes::BetterPartitionAttachAttemptCount::TypeInfo::DecodableType betterPartitionAttachAttemptCount; - Attributes::ParentChangeCount::TypeInfo::DecodableType parentChangeCount; - Attributes::TxTotalCount::TypeInfo::DecodableType txTotalCount; - Attributes::TxUnicastCount::TypeInfo::DecodableType txUnicastCount; - Attributes::TxBroadcastCount::TypeInfo::DecodableType txBroadcastCount; - Attributes::TxAckRequestedCount::TypeInfo::DecodableType txAckRequestedCount; - Attributes::TxAckedCount::TypeInfo::DecodableType txAckedCount; - Attributes::TxNoAckRequestedCount::TypeInfo::DecodableType txNoAckRequestedCount; - Attributes::TxDataCount::TypeInfo::DecodableType txDataCount; - Attributes::TxDataPollCount::TypeInfo::DecodableType txDataPollCount; - Attributes::TxBeaconCount::TypeInfo::DecodableType txBeaconCount; - Attributes::TxBeaconRequestCount::TypeInfo::DecodableType txBeaconRequestCount; - Attributes::TxOtherCount::TypeInfo::DecodableType txOtherCount; - Attributes::TxRetryCount::TypeInfo::DecodableType txRetryCount; - Attributes::TxDirectMaxRetryExpiryCount::TypeInfo::DecodableType txDirectMaxRetryExpiryCount; - Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo::DecodableType txIndirectMaxRetryExpiryCount; - Attributes::TxErrCcaCount::TypeInfo::DecodableType txErrCcaCount; - Attributes::TxErrAbortCount::TypeInfo::DecodableType txErrAbortCount; - Attributes::TxErrBusyChannelCount::TypeInfo::DecodableType txErrBusyChannelCount; - Attributes::RxTotalCount::TypeInfo::DecodableType rxTotalCount; - Attributes::RxUnicastCount::TypeInfo::DecodableType rxUnicastCount; - Attributes::RxBroadcastCount::TypeInfo::DecodableType rxBroadcastCount; - Attributes::RxDataCount::TypeInfo::DecodableType rxDataCount; - Attributes::RxDataPollCount::TypeInfo::DecodableType rxDataPollCount; - Attributes::RxBeaconCount::TypeInfo::DecodableType rxBeaconCount; - Attributes::RxBeaconRequestCount::TypeInfo::DecodableType rxBeaconRequestCount; - Attributes::RxOtherCount::TypeInfo::DecodableType rxOtherCount; - Attributes::RxAddressFilteredCount::TypeInfo::DecodableType rxAddressFilteredCount; - Attributes::RxDestAddrFilteredCount::TypeInfo::DecodableType rxDestAddrFilteredCount; - Attributes::RxDuplicatedCount::TypeInfo::DecodableType rxDuplicatedCount; - Attributes::RxErrNoFrameCount::TypeInfo::DecodableType rxErrNoFrameCount; - Attributes::RxErrUnknownNeighborCount::TypeInfo::DecodableType rxErrUnknownNeighborCount; - Attributes::RxErrInvalidSrcAddrCount::TypeInfo::DecodableType rxErrInvalidSrcAddrCount; - Attributes::RxErrSecCount::TypeInfo::DecodableType rxErrSecCount; - Attributes::RxErrFcsCount::TypeInfo::DecodableType rxErrFcsCount; - Attributes::RxErrOtherCount::TypeInfo::DecodableType rxErrOtherCount; - Attributes::ActiveTimestamp::TypeInfo::DecodableType activeTimestamp; - Attributes::PendingTimestamp::TypeInfo::DecodableType pendingTimestamp; - Attributes::Delay::TypeInfo::DecodableType delay; + Attributes::PartitionId::TypeInfo::DecodableType partitionId = static_cast(0); + Attributes::Weighting::TypeInfo::DecodableType weighting = static_cast(0); + Attributes::DataVersion::TypeInfo::DecodableType dataVersion = static_cast(0); + Attributes::StableDataVersion::TypeInfo::DecodableType stableDataVersion = static_cast(0); + Attributes::LeaderRouterId::TypeInfo::DecodableType leaderRouterId = static_cast(0); + Attributes::DetachedRoleCount::TypeInfo::DecodableType detachedRoleCount = static_cast(0); + Attributes::ChildRoleCount::TypeInfo::DecodableType childRoleCount = static_cast(0); + Attributes::RouterRoleCount::TypeInfo::DecodableType routerRoleCount = static_cast(0); + Attributes::LeaderRoleCount::TypeInfo::DecodableType leaderRoleCount = static_cast(0); + Attributes::AttachAttemptCount::TypeInfo::DecodableType attachAttemptCount = static_cast(0); + Attributes::PartitionIdChangeCount::TypeInfo::DecodableType partitionIdChangeCount = static_cast(0); + Attributes::BetterPartitionAttachAttemptCount::TypeInfo::DecodableType betterPartitionAttachAttemptCount = + static_cast(0); + Attributes::ParentChangeCount::TypeInfo::DecodableType parentChangeCount = static_cast(0); + Attributes::TxTotalCount::TypeInfo::DecodableType txTotalCount = static_cast(0); + Attributes::TxUnicastCount::TypeInfo::DecodableType txUnicastCount = static_cast(0); + Attributes::TxBroadcastCount::TypeInfo::DecodableType txBroadcastCount = static_cast(0); + Attributes::TxAckRequestedCount::TypeInfo::DecodableType txAckRequestedCount = static_cast(0); + Attributes::TxAckedCount::TypeInfo::DecodableType txAckedCount = static_cast(0); + Attributes::TxNoAckRequestedCount::TypeInfo::DecodableType txNoAckRequestedCount = static_cast(0); + Attributes::TxDataCount::TypeInfo::DecodableType txDataCount = static_cast(0); + Attributes::TxDataPollCount::TypeInfo::DecodableType txDataPollCount = static_cast(0); + Attributes::TxBeaconCount::TypeInfo::DecodableType txBeaconCount = static_cast(0); + Attributes::TxBeaconRequestCount::TypeInfo::DecodableType txBeaconRequestCount = static_cast(0); + Attributes::TxOtherCount::TypeInfo::DecodableType txOtherCount = static_cast(0); + Attributes::TxRetryCount::TypeInfo::DecodableType txRetryCount = static_cast(0); + Attributes::TxDirectMaxRetryExpiryCount::TypeInfo::DecodableType txDirectMaxRetryExpiryCount = static_cast(0); + Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo::DecodableType txIndirectMaxRetryExpiryCount = static_cast(0); + Attributes::TxErrCcaCount::TypeInfo::DecodableType txErrCcaCount = static_cast(0); + Attributes::TxErrAbortCount::TypeInfo::DecodableType txErrAbortCount = static_cast(0); + Attributes::TxErrBusyChannelCount::TypeInfo::DecodableType txErrBusyChannelCount = static_cast(0); + Attributes::RxTotalCount::TypeInfo::DecodableType rxTotalCount = static_cast(0); + Attributes::RxUnicastCount::TypeInfo::DecodableType rxUnicastCount = static_cast(0); + Attributes::RxBroadcastCount::TypeInfo::DecodableType rxBroadcastCount = static_cast(0); + Attributes::RxDataCount::TypeInfo::DecodableType rxDataCount = static_cast(0); + Attributes::RxDataPollCount::TypeInfo::DecodableType rxDataPollCount = static_cast(0); + Attributes::RxBeaconCount::TypeInfo::DecodableType rxBeaconCount = static_cast(0); + Attributes::RxBeaconRequestCount::TypeInfo::DecodableType rxBeaconRequestCount = static_cast(0); + Attributes::RxOtherCount::TypeInfo::DecodableType rxOtherCount = static_cast(0); + Attributes::RxAddressFilteredCount::TypeInfo::DecodableType rxAddressFilteredCount = static_cast(0); + Attributes::RxDestAddrFilteredCount::TypeInfo::DecodableType rxDestAddrFilteredCount = static_cast(0); + Attributes::RxDuplicatedCount::TypeInfo::DecodableType rxDuplicatedCount = static_cast(0); + Attributes::RxErrNoFrameCount::TypeInfo::DecodableType rxErrNoFrameCount = static_cast(0); + Attributes::RxErrUnknownNeighborCount::TypeInfo::DecodableType rxErrUnknownNeighborCount = static_cast(0); + Attributes::RxErrInvalidSrcAddrCount::TypeInfo::DecodableType rxErrInvalidSrcAddrCount = static_cast(0); + Attributes::RxErrSecCount::TypeInfo::DecodableType rxErrSecCount = static_cast(0); + Attributes::RxErrFcsCount::TypeInfo::DecodableType rxErrFcsCount = static_cast(0); + Attributes::RxErrOtherCount::TypeInfo::DecodableType rxErrOtherCount = static_cast(0); + Attributes::ActiveTimestamp::TypeInfo::DecodableType activeTimestamp = static_cast(0); + Attributes::PendingTimestamp::TypeInfo::DecodableType pendingTimestamp = static_cast(0); + Attributes::Delay::TypeInfo::DecodableType delay = static_cast(0); Attributes::SecurityPolicy::TypeInfo::DecodableType securityPolicy; Attributes::ChannelMask::TypeInfo::DecodableType channelMask; Attributes::OperationalDatasetComponents::TypeInfo::DecodableType operationalDatasetComponents; Attributes::ActiveNetworkFaultsList::TypeInfo::DecodableType activeNetworkFaultsList; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -12564,7 +12571,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; } - ThreadConnectionStatus connectionStatus; + ThreadConnectionStatus connectionStatus = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -12576,7 +12583,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; } - ThreadConnectionStatus connectionStatus; + ThreadConnectionStatus connectionStatus = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -12876,21 +12883,21 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::Bssid::TypeInfo::DecodableType bssid; - Attributes::SecurityType::TypeInfo::DecodableType securityType; - Attributes::WiFiVersion::TypeInfo::DecodableType wiFiVersion; - Attributes::ChannelNumber::TypeInfo::DecodableType channelNumber; - Attributes::Rssi::TypeInfo::DecodableType rssi; - Attributes::BeaconLostCount::TypeInfo::DecodableType beaconLostCount; - Attributes::BeaconRxCount::TypeInfo::DecodableType beaconRxCount; - Attributes::PacketMulticastRxCount::TypeInfo::DecodableType packetMulticastRxCount; - Attributes::PacketMulticastTxCount::TypeInfo::DecodableType packetMulticastTxCount; - Attributes::PacketUnicastRxCount::TypeInfo::DecodableType packetUnicastRxCount; - Attributes::PacketUnicastTxCount::TypeInfo::DecodableType packetUnicastTxCount; - Attributes::CurrentMaxRate::TypeInfo::DecodableType currentMaxRate; - Attributes::OverrunCount::TypeInfo::DecodableType overrunCount; + Attributes::SecurityType::TypeInfo::DecodableType securityType = static_cast(0); + Attributes::WiFiVersion::TypeInfo::DecodableType wiFiVersion = static_cast(0); + Attributes::ChannelNumber::TypeInfo::DecodableType channelNumber = static_cast(0); + Attributes::Rssi::TypeInfo::DecodableType rssi = static_cast(0); + Attributes::BeaconLostCount::TypeInfo::DecodableType beaconLostCount = static_cast(0); + Attributes::BeaconRxCount::TypeInfo::DecodableType beaconRxCount = static_cast(0); + Attributes::PacketMulticastRxCount::TypeInfo::DecodableType packetMulticastRxCount = static_cast(0); + Attributes::PacketMulticastTxCount::TypeInfo::DecodableType packetMulticastTxCount = static_cast(0); + Attributes::PacketUnicastRxCount::TypeInfo::DecodableType packetUnicastRxCount = static_cast(0); + Attributes::PacketUnicastTxCount::TypeInfo::DecodableType packetUnicastTxCount = static_cast(0); + Attributes::CurrentMaxRate::TypeInfo::DecodableType currentMaxRate = static_cast(0); + Attributes::OverrunCount::TypeInfo::DecodableType overrunCount = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -12911,7 +12918,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; } - uint16_t reasonCode; + uint16_t reasonCode = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -12923,7 +12930,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; } - uint16_t reasonCode; + uint16_t reasonCode = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -12945,8 +12952,8 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; } - AssociationFailureCause associationFailure; - uint16_t status; + AssociationFailureCause associationFailure = static_cast(0); + uint16_t status = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -12958,8 +12965,8 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; } - AssociationFailureCause associationFailure; - uint16_t status; + AssociationFailureCause associationFailure = static_cast(0); + uint16_t status = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -12980,7 +12987,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; } - WiFiConnectionStatus connectionStatus; + WiFiConnectionStatus connectionStatus = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -12992,7 +12999,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; } - WiFiConnectionStatus connectionStatus; + WiFiConnectionStatus connectionStatus = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -13217,18 +13224,18 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::PHYRate::TypeInfo::DecodableType PHYRate; - Attributes::FullDuplex::TypeInfo::DecodableType fullDuplex; - Attributes::PacketRxCount::TypeInfo::DecodableType packetRxCount; - Attributes::PacketTxCount::TypeInfo::DecodableType packetTxCount; - Attributes::TxErrCount::TypeInfo::DecodableType txErrCount; - Attributes::CollisionCount::TypeInfo::DecodableType collisionCount; - Attributes::OverrunCount::TypeInfo::DecodableType overrunCount; - Attributes::CarrierDetect::TypeInfo::DecodableType carrierDetect; - Attributes::TimeSinceReset::TypeInfo::DecodableType timeSinceReset; + Attributes::PHYRate::TypeInfo::DecodableType PHYRate = static_cast(0); + Attributes::FullDuplex::TypeInfo::DecodableType fullDuplex = static_cast(0); + Attributes::PacketRxCount::TypeInfo::DecodableType packetRxCount = static_cast(0); + Attributes::PacketTxCount::TypeInfo::DecodableType packetTxCount = static_cast(0); + Attributes::TxErrCount::TypeInfo::DecodableType txErrCount = static_cast(0); + Attributes::CollisionCount::TypeInfo::DecodableType collisionCount = static_cast(0); + Attributes::OverrunCount::TypeInfo::DecodableType overrunCount = static_cast(0); + Attributes::CarrierDetect::TypeInfo::DecodableType carrierDetect = static_cast(0); + Attributes::TimeSinceReset::TypeInfo::DecodableType timeSinceReset = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -13283,8 +13290,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -13659,23 +13666,23 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::VendorName::TypeInfo::DecodableType vendorName; - Attributes::VendorID::TypeInfo::DecodableType vendorID; + Attributes::VendorID::TypeInfo::DecodableType vendorID = static_cast(0); Attributes::ProductName::TypeInfo::DecodableType productName; Attributes::NodeLabel::TypeInfo::DecodableType nodeLabel; - Attributes::HardwareVersion::TypeInfo::DecodableType hardwareVersion; + Attributes::HardwareVersion::TypeInfo::DecodableType hardwareVersion = static_cast(0); Attributes::HardwareVersionString::TypeInfo::DecodableType hardwareVersionString; - Attributes::SoftwareVersion::TypeInfo::DecodableType softwareVersion; + Attributes::SoftwareVersion::TypeInfo::DecodableType softwareVersion = static_cast(0); Attributes::SoftwareVersionString::TypeInfo::DecodableType softwareVersionString; Attributes::ManufacturingDate::TypeInfo::DecodableType manufacturingDate; Attributes::PartNumber::TypeInfo::DecodableType partNumber; Attributes::ProductURL::TypeInfo::DecodableType productURL; Attributes::ProductLabel::TypeInfo::DecodableType productLabel; Attributes::SerialNumber::TypeInfo::DecodableType serialNumber; - Attributes::Reachable::TypeInfo::DecodableType reachable; + Attributes::Reachable::TypeInfo::DecodableType reachable = static_cast(0); Attributes::UniqueID::TypeInfo::DecodableType uniqueID; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -13765,12 +13772,12 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::NumberOfPositions::TypeInfo::DecodableType numberOfPositions; - Attributes::CurrentPosition::TypeInfo::DecodableType currentPosition; - Attributes::MultiPressMax::TypeInfo::DecodableType multiPressMax; + Attributes::NumberOfPositions::TypeInfo::DecodableType numberOfPositions = static_cast(0); + Attributes::CurrentPosition::TypeInfo::DecodableType currentPosition = static_cast(0); + Attributes::MultiPressMax::TypeInfo::DecodableType multiPressMax = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -13791,7 +13798,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; + uint8_t newPosition = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -13803,7 +13810,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; + uint8_t newPosition = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -13824,7 +13831,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; + uint8_t newPosition = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -13836,7 +13843,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; + uint8_t newPosition = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -13857,7 +13864,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; + uint8_t newPosition = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -13869,7 +13876,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; + uint8_t newPosition = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -13890,7 +13897,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t previousPosition; + uint8_t previousPosition = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -13902,7 +13909,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t previousPosition; + uint8_t previousPosition = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -13923,7 +13930,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t previousPosition; + uint8_t previousPosition = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -13935,7 +13942,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t previousPosition; + uint8_t previousPosition = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -13957,8 +13964,8 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; - uint8_t currentNumberOfPressesCounted; + uint8_t newPosition = static_cast(0); + uint8_t currentNumberOfPressesCounted = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -13970,8 +13977,8 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; - uint8_t currentNumberOfPressesCounted; + uint8_t newPosition = static_cast(0); + uint8_t currentNumberOfPressesCounted = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -13993,8 +14000,8 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; - uint8_t totalNumberOfPressesCounted; + uint8_t newPosition = static_cast(0); + uint8_t totalNumberOfPressesCounted = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -14006,8 +14013,8 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; } - uint8_t newPosition; - uint8_t totalNumberOfPressesCounted; + uint8_t newPosition = static_cast(0); + uint8_t totalNumberOfPressesCounted = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -14075,12 +14082,12 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::OpenCommissioningWindow::Id; } static constexpr ClusterId GetClusterId() { return Clusters::AdministratorCommissioning::Id; } - uint16_t commissioningTimeout; + uint16_t commissioningTimeout = static_cast(0); chip::ByteSpan PAKEVerifier; - uint16_t discriminator; - uint32_t iterations; + uint16_t discriminator = static_cast(0); + uint32_t iterations = static_cast(0); chip::ByteSpan salt; - uint16_t passcodeID; + uint16_t passcodeID = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -14095,12 +14102,12 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::OpenCommissioningWindow::Id; } static constexpr ClusterId GetClusterId() { return Clusters::AdministratorCommissioning::Id; } - uint16_t commissioningTimeout; + uint16_t commissioningTimeout = static_cast(0); chip::ByteSpan PAKEVerifier; - uint16_t discriminator; - uint32_t iterations; + uint16_t discriminator = static_cast(0); + uint32_t iterations = static_cast(0); chip::ByteSpan salt; - uint16_t passcodeID; + uint16_t passcodeID = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace OpenCommissioningWindow @@ -14117,7 +14124,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::OpenBasicCommissioningWindow::Id; } static constexpr ClusterId GetClusterId() { return Clusters::AdministratorCommissioning::Id; } - uint16_t commissioningTimeout; + uint16_t commissioningTimeout = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -14132,7 +14139,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::OpenBasicCommissioningWindow::Id; } static constexpr ClusterId GetClusterId() { return Clusters::AdministratorCommissioning::Id; } - uint16_t commissioningTimeout; + uint16_t commissioningTimeout = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace OpenBasicCommissioningWindow @@ -14249,12 +14256,12 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::WindowStatus::TypeInfo::DecodableType windowStatus; - Attributes::AdminFabricIndex::TypeInfo::DecodableType adminFabricIndex; - Attributes::AdminVendorId::TypeInfo::DecodableType adminVendorId; + Attributes::WindowStatus::TypeInfo::DecodableType windowStatus = static_cast(0); + Attributes::AdminFabricIndex::TypeInfo::DecodableType adminFabricIndex = static_cast(0); + Attributes::AdminVendorId::TypeInfo::DecodableType adminVendorId = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -14483,7 +14490,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::CertificateChainRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; } - uint8_t certificateType; + uint8_t certificateType = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -14498,7 +14505,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::CertificateChainRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; } - uint8_t certificateType; + uint8_t certificateType = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace CertificateChainRequest @@ -14621,8 +14628,8 @@ struct Type chip::ByteSpan NOCValue; Optional ICACValue; chip::ByteSpan IPKValue; - chip::NodeId caseAdminNode; - uint16_t adminVendorId; + chip::NodeId caseAdminNode = static_cast(0); + uint16_t adminVendorId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -14640,8 +14647,8 @@ struct DecodableType chip::ByteSpan NOCValue; Optional ICACValue; chip::ByteSpan IPKValue; - chip::NodeId caseAdminNode; - uint16_t adminVendorId; + chip::NodeId caseAdminNode = static_cast(0); + uint16_t adminVendorId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace AddNOC @@ -14695,8 +14702,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::NOCResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; } - uint8_t statusCode; - uint8_t fabricIndex; + uint8_t statusCode = static_cast(0); + uint8_t fabricIndex = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -14712,8 +14719,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::NOCResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; } - uint8_t statusCode; - uint8_t fabricIndex; + uint8_t statusCode = static_cast(0); + uint8_t fabricIndex = static_cast(0); chip::CharSpan debugText; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -14763,7 +14770,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RemoveFabric::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; } - uint8_t fabricIndex; + uint8_t fabricIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -14778,7 +14785,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RemoveFabric::Id; } static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; } - uint8_t fabricIndex; + uint8_t fabricIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace RemoveFabric @@ -14958,13 +14965,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::FabricsList::TypeInfo::DecodableType fabricsList; - Attributes::SupportedFabrics::TypeInfo::DecodableType supportedFabrics; - Attributes::CommissionedFabrics::TypeInfo::DecodableType commissionedFabrics; + Attributes::SupportedFabrics::TypeInfo::DecodableType supportedFabrics = static_cast(0); + Attributes::CommissionedFabrics::TypeInfo::DecodableType commissionedFabrics = static_cast(0); Attributes::TrustedRootCertificates::TypeInfo::DecodableType trustedRootCertificates; - Attributes::CurrentFabricIndex::TypeInfo::DecodableType currentFabricIndex; + Attributes::CurrentFabricIndex::TypeInfo::DecodableType currentFabricIndex = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -15147,7 +15154,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::KeySetRead::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GroupKeyManagement::Id; } - uint16_t groupKeySetID; + uint16_t groupKeySetID = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -15162,7 +15169,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::KeySetRead::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GroupKeyManagement::Id; } - uint16_t groupKeySetID; + uint16_t groupKeySetID = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace KeySetRead @@ -15211,7 +15218,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::KeySetRemove::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GroupKeyManagement::Id; } - uint16_t groupKeySetID; + uint16_t groupKeySetID = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -15226,7 +15233,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::KeySetRemove::Id; } static constexpr ClusterId GetClusterId() { return Clusters::GroupKeyManagement::Id; } - uint16_t groupKeySetID; + uint16_t groupKeySetID = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace KeySetRemove @@ -15397,11 +15404,11 @@ struct TypeInfo Attributes::GroupKeyMap::TypeInfo::DecodableType groupKeyMap; Attributes::GroupTable::TypeInfo::DecodableType groupTable; - Attributes::MaxGroupsPerFabric::TypeInfo::DecodableType maxGroupsPerFabric; - Attributes::MaxGroupKeysPerFabric::TypeInfo::DecodableType maxGroupKeysPerFabric; + Attributes::MaxGroupsPerFabric::TypeInfo::DecodableType maxGroupsPerFabric = static_cast(0); + Attributes::MaxGroupKeysPerFabric::TypeInfo::DecodableType maxGroupKeysPerFabric = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -15474,8 +15481,8 @@ struct TypeInfo Attributes::LabelList::TypeInfo::DecodableType labelList; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -15548,8 +15555,8 @@ struct TypeInfo Attributes::LabelList::TypeInfo::DecodableType labelList; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -15604,8 +15611,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -15660,8 +15667,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -15716,8 +15723,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -15783,10 +15790,10 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::StateValue::TypeInfo::DecodableType stateValue; + Attributes::StateValue::TypeInfo::DecodableType stateValue = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -15807,7 +15814,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::BooleanState::Id; } - bool stateValue; + bool stateValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -15819,7 +15826,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::BooleanState::Id; } - bool stateValue; + bool stateValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -15897,7 +15904,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ChangeToMode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; } - uint8_t newMode; + uint8_t newMode = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -15912,7 +15919,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ChangeToMode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; } - uint8_t newMode; + uint8_t newMode = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ChangeToMode @@ -16027,14 +16034,14 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::CurrentMode::TypeInfo::DecodableType currentMode; + Attributes::CurrentMode::TypeInfo::DecodableType currentMode = static_cast(0); Attributes::SupportedModes::TypeInfo::DecodableType supportedModes; - Attributes::OnMode::TypeInfo::DecodableType onMode; - Attributes::StartUpMode::TypeInfo::DecodableType startUpMode; + Attributes::OnMode::TypeInfo::DecodableType onMode = static_cast(0); + Attributes::StartUpMode::TypeInfo::DecodableType startUpMode = static_cast(0); Attributes::Description::TypeInfo::DecodableType description; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -16148,14 +16155,14 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::PhysicalClosedLimit::TypeInfo::DecodableType physicalClosedLimit; - Attributes::MotorStepSize::TypeInfo::DecodableType motorStepSize; - Attributes::Status::TypeInfo::DecodableType status; - Attributes::ClosedLimit::TypeInfo::DecodableType closedLimit; - Attributes::Mode::TypeInfo::DecodableType mode; + Attributes::PhysicalClosedLimit::TypeInfo::DecodableType physicalClosedLimit = static_cast(0); + Attributes::MotorStepSize::TypeInfo::DecodableType motorStepSize = static_cast(0); + Attributes::Status::TypeInfo::DecodableType status = static_cast(0); + Attributes::ClosedLimit::TypeInfo::DecodableType closedLimit = static_cast(0); + Attributes::Mode::TypeInfo::DecodableType mode = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -16884,7 +16891,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::UnlockWithTimeout::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t timeout; + uint16_t timeout = static_cast(0); Optional pinCode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -16900,7 +16907,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::UnlockWithTimeout::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t timeout; + uint16_t timeout = static_cast(0); Optional pinCode; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -16918,7 +16925,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetLogRecord::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t logIndex; + uint16_t logIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -16933,7 +16940,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetLogRecord::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t logIndex; + uint16_t logIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetLogRecord @@ -16956,12 +16963,12 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetLogRecordResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t logEntryId; - uint32_t timestamp; - uint8_t eventType; - uint8_t source; - uint8_t eventIdOrAlarmCode; - uint16_t userId; + uint16_t logEntryId = static_cast(0); + uint32_t timestamp = static_cast(0); + uint8_t eventType = static_cast(0); + uint8_t source = static_cast(0); + uint8_t eventIdOrAlarmCode = static_cast(0); + uint16_t userId = static_cast(0); chip::ByteSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -16977,12 +16984,12 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetLogRecordResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t logEntryId; - uint32_t timestamp; - uint8_t eventType; - uint8_t source; - uint8_t eventIdOrAlarmCode; - uint16_t userId; + uint16_t logEntryId = static_cast(0); + uint32_t timestamp = static_cast(0); + uint8_t eventType = static_cast(0); + uint8_t source = static_cast(0); + uint8_t eventIdOrAlarmCode = static_cast(0); + uint16_t userId = static_cast(0); chip::ByteSpan pin; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -17003,9 +17010,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetPINCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserStatus userStatus; - DlUserType userType; + uint16_t userId = static_cast(0); + DlUserStatus userStatus = static_cast(0); + DlUserType userType = static_cast(0); chip::ByteSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17021,9 +17028,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetPINCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserStatus userStatus; - DlUserType userType; + uint16_t userId = static_cast(0); + DlUserStatus userStatus = static_cast(0); + DlUserType userType = static_cast(0); chip::ByteSpan pin; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -17041,7 +17048,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetPINCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17056,7 +17063,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetPINCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetPINCode @@ -17076,7 +17083,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetPINCodeResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); DataModel::Nullable userStatus; DataModel::Nullable userType; DataModel::Nullable pin; @@ -17094,7 +17101,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetPINCodeResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); DataModel::Nullable userStatus; DataModel::Nullable userType; DataModel::Nullable pin; @@ -17114,7 +17121,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ClearPINCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t pinSlotIndex; + uint16_t pinSlotIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17129,7 +17136,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ClearPINCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t pinSlotIndex; + uint16_t pinSlotIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ClearPINCode @@ -17175,8 +17182,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetUserStatus::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserStatus userStatus; + uint16_t userId = static_cast(0); + DlUserStatus userStatus = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17191,8 +17198,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetUserStatus::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserStatus userStatus; + uint16_t userId = static_cast(0); + DlUserStatus userStatus = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetUserStatus @@ -17209,7 +17216,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetUserStatus::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17224,7 +17231,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetUserStatus::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetUserStatus @@ -17242,8 +17249,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetUserStatusResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserStatus userStatus; + uint16_t userId = static_cast(0); + DlUserStatus userStatus = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17258,8 +17265,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetUserStatusResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserStatus userStatus; + uint16_t userId = static_cast(0); + DlUserStatus userStatus = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetUserStatusResponse @@ -17282,13 +17289,13 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t weekDayIndex; - uint16_t userIndex; - chip::BitFlags daysMask; - uint8_t startHour; - uint8_t startMinute; - uint8_t endHour; - uint8_t endMinute; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + chip::BitFlags daysMask = static_cast>(0); + uint8_t startHour = static_cast(0); + uint8_t startMinute = static_cast(0); + uint8_t endHour = static_cast(0); + uint8_t endMinute = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17303,13 +17310,13 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t weekDayIndex; - uint16_t userIndex; - chip::BitFlags daysMask; - uint8_t startHour; - uint8_t startMinute; - uint8_t endHour; - uint8_t endMinute; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + chip::BitFlags daysMask = static_cast>(0); + uint8_t startHour = static_cast(0); + uint8_t startMinute = static_cast(0); + uint8_t endHour = static_cast(0); + uint8_t endMinute = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetWeekDaySchedule @@ -17327,8 +17334,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t weekDayIndex; - uint16_t userIndex; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17343,8 +17350,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t weekDayIndex; - uint16_t userIndex; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetWeekDaySchedule @@ -17368,14 +17375,14 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetWeekDayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t weekDayIndex; - uint16_t userIndex; - DlStatus status; - chip::BitFlags daysMask; - uint8_t startHour; - uint8_t startMinute; - uint8_t endHour; - uint8_t endMinute; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + DlStatus status = static_cast(0); + chip::BitFlags daysMask = static_cast>(0); + uint8_t startHour = static_cast(0); + uint8_t startMinute = static_cast(0); + uint8_t endHour = static_cast(0); + uint8_t endMinute = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17390,14 +17397,14 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetWeekDayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t weekDayIndex; - uint16_t userIndex; - DlStatus status; - chip::BitFlags daysMask; - uint8_t startHour; - uint8_t startMinute; - uint8_t endHour; - uint8_t endMinute; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + DlStatus status = static_cast(0); + chip::BitFlags daysMask = static_cast>(0); + uint8_t startHour = static_cast(0); + uint8_t startMinute = static_cast(0); + uint8_t endHour = static_cast(0); + uint8_t endMinute = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetWeekDayScheduleResponse @@ -17415,8 +17422,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ClearWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t weekDayIndex; - uint16_t userIndex; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17431,8 +17438,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ClearWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t weekDayIndex; - uint16_t userIndex; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ClearWeekDaySchedule @@ -17452,10 +17459,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t yearDayIndex; - uint16_t userIndex; - uint32_t localStartTime; - uint32_t localEndTime; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17470,10 +17477,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t yearDayIndex; - uint16_t userIndex; - uint32_t localStartTime; - uint32_t localEndTime; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetYearDaySchedule @@ -17491,8 +17498,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t yearDayIndex; - uint16_t userIndex; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17507,8 +17514,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t yearDayIndex; - uint16_t userIndex; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetYearDaySchedule @@ -17529,11 +17536,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetYearDayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t yearDayIndex; - uint16_t userIndex; - DlStatus status; - uint32_t localStartTime; - uint32_t localEndTime; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + DlStatus status = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17548,11 +17555,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetYearDayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t yearDayIndex; - uint16_t userIndex; - DlStatus status; - uint32_t localStartTime; - uint32_t localEndTime; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + DlStatus status = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetYearDayScheduleResponse @@ -17570,8 +17577,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ClearYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t yearDayIndex; - uint16_t userIndex; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17586,8 +17593,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ClearYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t yearDayIndex; - uint16_t userIndex; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ClearYearDaySchedule @@ -17607,10 +17614,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex; - uint32_t localStartTime; - uint32_t localEndTime; - DlOperatingMode operatingMode; + uint8_t holidayIndex = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); + DlOperatingMode operatingMode = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17625,10 +17632,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex; - uint32_t localStartTime; - uint32_t localEndTime; - DlOperatingMode operatingMode; + uint8_t holidayIndex = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); + DlOperatingMode operatingMode = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetHolidaySchedule @@ -17645,7 +17652,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex; + uint8_t holidayIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17660,7 +17667,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex; + uint8_t holidayIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetHolidaySchedule @@ -17681,11 +17688,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetHolidayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex; - DlStatus status; - uint32_t localStartTime; - uint32_t localEndTime; - DlOperatingMode operatingMode; + uint8_t holidayIndex = static_cast(0); + DlStatus status = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); + DlOperatingMode operatingMode = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17700,11 +17707,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetHolidayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex; - DlStatus status; - uint32_t localStartTime; - uint32_t localEndTime; - DlOperatingMode operatingMode; + uint8_t holidayIndex = static_cast(0); + DlStatus status = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); + DlOperatingMode operatingMode = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetHolidayScheduleResponse @@ -17721,7 +17728,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ClearHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex; + uint8_t holidayIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17736,7 +17743,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ClearHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex; + uint8_t holidayIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ClearHolidaySchedule @@ -17754,8 +17761,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetUserType::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserType userType; + uint16_t userId = static_cast(0); + DlUserType userType = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17770,8 +17777,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetUserType::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserType userType; + uint16_t userId = static_cast(0); + DlUserType userType = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetUserType @@ -17788,7 +17795,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetUserType::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17803,7 +17810,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetUserType::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetUserType @@ -17821,8 +17828,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetUserTypeResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserType userType; + uint16_t userId = static_cast(0); + DlUserType userType = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17837,8 +17844,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetUserTypeResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserType userType; + uint16_t userId = static_cast(0); + DlUserType userType = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetUserTypeResponse @@ -17858,9 +17865,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetRFIDCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserStatus userStatus; - DlUserType userType; + uint16_t userId = static_cast(0); + DlUserStatus userStatus = static_cast(0); + DlUserType userType = static_cast(0); chip::ByteSpan rfidCode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17876,9 +17883,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetRFIDCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; - DlUserStatus userStatus; - DlUserType userType; + uint16_t userId = static_cast(0); + DlUserStatus userStatus = static_cast(0); + DlUserType userType = static_cast(0); chip::ByteSpan rfidCode; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -17896,7 +17903,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetRFIDCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17911,7 +17918,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetRFIDCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetRFIDCode @@ -17931,7 +17938,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetRFIDCodeResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); DataModel::Nullable userStatus; DataModel::Nullable userType; DataModel::Nullable rfidCode; @@ -17949,7 +17956,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetRFIDCodeResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId; + uint16_t userId = static_cast(0); DataModel::Nullable userStatus; DataModel::Nullable userType; DataModel::Nullable rfidCode; @@ -17969,7 +17976,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ClearRFIDCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t rfidSlotIndex; + uint16_t rfidSlotIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -17984,7 +17991,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ClearRFIDCode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t rfidSlotIndex; + uint16_t rfidSlotIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ClearRFIDCode @@ -18035,13 +18042,13 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetUser::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlDataOperationType operationType; - uint16_t userIndex; + DlDataOperationType operationType = static_cast(0); + uint16_t userIndex = static_cast(0); DataModel::Nullable userName; DataModel::Nullable userUniqueId; - DlUserStatus userStatus; - DlUserType userType; - DlCredentialRule credentialRule; + DlUserStatus userStatus = static_cast(0); + DlUserType userType = static_cast(0); + DlCredentialRule credentialRule = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18056,13 +18063,13 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetUser::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlDataOperationType operationType; - uint16_t userIndex; + DlDataOperationType operationType = static_cast(0); + uint16_t userIndex = static_cast(0); DataModel::Nullable userName; DataModel::Nullable userUniqueId; - DlUserStatus userStatus; - DlUserType userType; - DlCredentialRule credentialRule; + DlUserStatus userStatus = static_cast(0); + DlUserType userType = static_cast(0); + DlCredentialRule credentialRule = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetUser @@ -18079,7 +18086,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetUser::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userIndex; + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18094,7 +18101,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetUser::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userIndex; + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetUser @@ -18120,7 +18127,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetUserResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userIndex; + uint16_t userIndex = static_cast(0); DataModel::Nullable userName; DataModel::Nullable userUniqueId; DataModel::Nullable userStatus; @@ -18129,7 +18136,7 @@ struct Type DataModel::Nullable> credentials; DataModel::Nullable creatorFabricIndex; DataModel::Nullable lastModifiedFabricIndex; - uint16_t nextUserIndex; + uint16_t nextUserIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18144,7 +18151,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetUserResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userIndex; + uint16_t userIndex = static_cast(0); DataModel::Nullable userName; DataModel::Nullable userUniqueId; DataModel::Nullable userStatus; @@ -18153,7 +18160,7 @@ struct DecodableType DataModel::Nullable> credentials; DataModel::Nullable creatorFabricIndex; DataModel::Nullable lastModifiedFabricIndex; - uint16_t nextUserIndex; + uint16_t nextUserIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetUserResponse @@ -18170,7 +18177,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ClearUser::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userIndex; + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18185,7 +18192,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ClearUser::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userIndex; + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ClearUser @@ -18207,11 +18214,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::OperatingEventNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t operationEventSource; - uint8_t operationEventCode; - uint16_t userId; + uint8_t operationEventSource = static_cast(0); + uint8_t operationEventCode = static_cast(0); + uint16_t userId = static_cast(0); chip::ByteSpan pin; - uint32_t localTime; + uint32_t localTime = static_cast(0); Optional data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18227,11 +18234,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::OperatingEventNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t operationEventSource; - uint8_t operationEventCode; - uint16_t userId; + uint8_t operationEventSource = static_cast(0); + uint8_t operationEventCode = static_cast(0); + uint16_t userId = static_cast(0); chip::ByteSpan pin; - uint32_t localTime; + uint32_t localTime = static_cast(0); Optional data; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -18256,13 +18263,13 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ProgrammingEventNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t programEventSource; - uint8_t programEventCode; - uint16_t userId; + uint8_t programEventSource = static_cast(0); + uint8_t programEventCode = static_cast(0); + uint16_t userId = static_cast(0); chip::ByteSpan pin; - DlUserType userType; - DlUserStatus userStatus; - uint32_t localTime; + DlUserType userType = static_cast(0); + DlUserStatus userStatus = static_cast(0); + uint32_t localTime = static_cast(0); Optional data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18278,13 +18285,13 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ProgrammingEventNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t programEventSource; - uint8_t programEventCode; - uint16_t userId; + uint8_t programEventSource = static_cast(0); + uint8_t programEventCode = static_cast(0); + uint16_t userId = static_cast(0); chip::ByteSpan pin; - DlUserType userType; - DlUserStatus userStatus; - uint32_t localTime; + DlUserType userType = static_cast(0); + DlUserStatus userStatus = static_cast(0); + uint32_t localTime = static_cast(0); Optional data; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -18306,11 +18313,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetCredential::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlDataOperationType operationType; + DlDataOperationType operationType = static_cast(0); Structs::DlCredential::Type credential; chip::ByteSpan credentialData; - uint16_t userIndex; - DlUserStatus userStatus; + uint16_t userIndex = static_cast(0); + DlUserStatus userStatus = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18325,11 +18332,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetCredential::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlDataOperationType operationType; + DlDataOperationType operationType = static_cast(0); Structs::DlCredential::DecodableType credential; chip::ByteSpan credentialData; - uint16_t userIndex; - DlUserStatus userStatus; + uint16_t userIndex = static_cast(0); + DlUserStatus userStatus = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetCredential @@ -18348,7 +18355,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetCredentialResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlStatus status; + DlStatus status = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable nextCredentialIndex; @@ -18365,7 +18372,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetCredentialResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlStatus status; + DlStatus status = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable nextCredentialIndex; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -18418,7 +18425,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetCredentialStatusResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - bool credentialExists; + bool credentialExists = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable nextCredentialIndex; @@ -18435,7 +18442,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetCredentialStatusResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - bool credentialExists; + bool credentialExists = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable nextCredentialIndex; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -19063,53 +19070,56 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::LockState::TypeInfo::DecodableType lockState; - Attributes::LockType::TypeInfo::DecodableType lockType; - Attributes::ActuatorEnabled::TypeInfo::DecodableType actuatorEnabled; + Attributes::LockType::TypeInfo::DecodableType lockType = static_cast(0); + Attributes::ActuatorEnabled::TypeInfo::DecodableType actuatorEnabled = static_cast(0); Attributes::DoorState::TypeInfo::DecodableType doorState; - Attributes::DoorOpenEvents::TypeInfo::DecodableType doorOpenEvents; - Attributes::DoorClosedEvents::TypeInfo::DecodableType doorClosedEvents; - Attributes::OpenPeriod::TypeInfo::DecodableType openPeriod; - Attributes::NumberOfLogRecordsSupported::TypeInfo::DecodableType numberOfLogRecordsSupported; - Attributes::NumberOfTotalUsersSupported::TypeInfo::DecodableType numberOfTotalUsersSupported; - Attributes::NumberOfPINUsersSupported::TypeInfo::DecodableType numberOfPINUsersSupported; - Attributes::NumberOfRFIDUsersSupported::TypeInfo::DecodableType numberOfRFIDUsersSupported; - Attributes::NumberOfWeekDaySchedulesSupportedPerUser::TypeInfo::DecodableType numberOfWeekDaySchedulesSupportedPerUser; - Attributes::NumberOfYearDaySchedulesSupportedPerUser::TypeInfo::DecodableType numberOfYearDaySchedulesSupportedPerUser; - Attributes::NumberOfHolidaySchedulesSupported::TypeInfo::DecodableType numberOfHolidaySchedulesSupported; - Attributes::MaxPINCodeLength::TypeInfo::DecodableType maxPINCodeLength; - Attributes::MinPINCodeLength::TypeInfo::DecodableType minPINCodeLength; - Attributes::MaxRFIDCodeLength::TypeInfo::DecodableType maxRFIDCodeLength; - Attributes::MinRFIDCodeLength::TypeInfo::DecodableType minRFIDCodeLength; - Attributes::CredentialRulesSupport::TypeInfo::DecodableType credentialRulesSupport; - Attributes::EnableLogging::TypeInfo::DecodableType enableLogging; + Attributes::DoorOpenEvents::TypeInfo::DecodableType doorOpenEvents = static_cast(0); + Attributes::DoorClosedEvents::TypeInfo::DecodableType doorClosedEvents = static_cast(0); + Attributes::OpenPeriod::TypeInfo::DecodableType openPeriod = static_cast(0); + Attributes::NumberOfLogRecordsSupported::TypeInfo::DecodableType numberOfLogRecordsSupported = static_cast(0); + Attributes::NumberOfTotalUsersSupported::TypeInfo::DecodableType numberOfTotalUsersSupported = static_cast(0); + Attributes::NumberOfPINUsersSupported::TypeInfo::DecodableType numberOfPINUsersSupported = static_cast(0); + Attributes::NumberOfRFIDUsersSupported::TypeInfo::DecodableType numberOfRFIDUsersSupported = static_cast(0); + Attributes::NumberOfWeekDaySchedulesSupportedPerUser::TypeInfo::DecodableType numberOfWeekDaySchedulesSupportedPerUser = + static_cast(0); + Attributes::NumberOfYearDaySchedulesSupportedPerUser::TypeInfo::DecodableType numberOfYearDaySchedulesSupportedPerUser = + static_cast(0); + Attributes::NumberOfHolidaySchedulesSupported::TypeInfo::DecodableType numberOfHolidaySchedulesSupported = + static_cast(0); + Attributes::MaxPINCodeLength::TypeInfo::DecodableType maxPINCodeLength = static_cast(0); + Attributes::MinPINCodeLength::TypeInfo::DecodableType minPINCodeLength = static_cast(0); + Attributes::MaxRFIDCodeLength::TypeInfo::DecodableType maxRFIDCodeLength = static_cast(0); + Attributes::MinRFIDCodeLength::TypeInfo::DecodableType minRFIDCodeLength = static_cast(0); + Attributes::CredentialRulesSupport::TypeInfo::DecodableType credentialRulesSupport = static_cast(0); + Attributes::EnableLogging::TypeInfo::DecodableType enableLogging = static_cast(0); Attributes::Language::TypeInfo::DecodableType language; - Attributes::LEDSettings::TypeInfo::DecodableType LEDSettings; - Attributes::AutoRelockTime::TypeInfo::DecodableType autoRelockTime; - Attributes::SoundVolume::TypeInfo::DecodableType soundVolume; - Attributes::OperatingMode::TypeInfo::DecodableType operatingMode; - Attributes::SupportedOperatingModes::TypeInfo::DecodableType supportedOperatingModes; - Attributes::DefaultConfigurationRegister::TypeInfo::DecodableType defaultConfigurationRegister; - Attributes::EnableLocalProgramming::TypeInfo::DecodableType enableLocalProgramming; - Attributes::EnableOneTouchLocking::TypeInfo::DecodableType enableOneTouchLocking; - Attributes::EnableInsideStatusLED::TypeInfo::DecodableType enableInsideStatusLED; - Attributes::EnablePrivacyModeButton::TypeInfo::DecodableType enablePrivacyModeButton; - Attributes::LocalProgrammingFeatures::TypeInfo::DecodableType localProgrammingFeatures; - Attributes::WrongCodeEntryLimit::TypeInfo::DecodableType wrongCodeEntryLimit; - Attributes::UserCodeTemporaryDisableTime::TypeInfo::DecodableType userCodeTemporaryDisableTime; - Attributes::SendPINOverTheAir::TypeInfo::DecodableType sendPINOverTheAir; - Attributes::RequirePINforRemoteOperation::TypeInfo::DecodableType requirePINforRemoteOperation; - Attributes::ExpiringUserTimeout::TypeInfo::DecodableType expiringUserTimeout; - Attributes::AlarmMask::TypeInfo::DecodableType alarmMask; - Attributes::KeypadOperationEventMask::TypeInfo::DecodableType keypadOperationEventMask; - Attributes::RemoteOperationEventMask::TypeInfo::DecodableType remoteOperationEventMask; - Attributes::ManualOperationEventMask::TypeInfo::DecodableType manualOperationEventMask; - Attributes::RFIDOperationEventMask::TypeInfo::DecodableType RFIDOperationEventMask; - Attributes::KeypadProgrammingEventMask::TypeInfo::DecodableType keypadProgrammingEventMask; - Attributes::RemoteProgrammingEventMask::TypeInfo::DecodableType remoteProgrammingEventMask; - Attributes::RFIDProgrammingEventMask::TypeInfo::DecodableType RFIDProgrammingEventMask; + Attributes::LEDSettings::TypeInfo::DecodableType LEDSettings = static_cast(0); + Attributes::AutoRelockTime::TypeInfo::DecodableType autoRelockTime = static_cast(0); + Attributes::SoundVolume::TypeInfo::DecodableType soundVolume = static_cast(0); + Attributes::OperatingMode::TypeInfo::DecodableType operatingMode = static_cast(0); + Attributes::SupportedOperatingModes::TypeInfo::DecodableType supportedOperatingModes = static_cast(0); + Attributes::DefaultConfigurationRegister::TypeInfo::DecodableType defaultConfigurationRegister = static_cast(0); + Attributes::EnableLocalProgramming::TypeInfo::DecodableType enableLocalProgramming = static_cast(0); + Attributes::EnableOneTouchLocking::TypeInfo::DecodableType enableOneTouchLocking = static_cast(0); + Attributes::EnableInsideStatusLED::TypeInfo::DecodableType enableInsideStatusLED = static_cast(0); + Attributes::EnablePrivacyModeButton::TypeInfo::DecodableType enablePrivacyModeButton = static_cast(0); + Attributes::LocalProgrammingFeatures::TypeInfo::DecodableType localProgrammingFeatures = static_cast(0); + Attributes::WrongCodeEntryLimit::TypeInfo::DecodableType wrongCodeEntryLimit = static_cast(0); + Attributes::UserCodeTemporaryDisableTime::TypeInfo::DecodableType userCodeTemporaryDisableTime = static_cast(0); + Attributes::SendPINOverTheAir::TypeInfo::DecodableType sendPINOverTheAir = static_cast(0); + Attributes::RequirePINforRemoteOperation::TypeInfo::DecodableType requirePINforRemoteOperation = static_cast(0); + Attributes::ExpiringUserTimeout::TypeInfo::DecodableType expiringUserTimeout = static_cast(0); + Attributes::AlarmMask::TypeInfo::DecodableType alarmMask = static_cast(0); + Attributes::KeypadOperationEventMask::TypeInfo::DecodableType keypadOperationEventMask = static_cast(0); + Attributes::RemoteOperationEventMask::TypeInfo::DecodableType remoteOperationEventMask = static_cast(0); + Attributes::ManualOperationEventMask::TypeInfo::DecodableType manualOperationEventMask = static_cast(0); + Attributes::RFIDOperationEventMask::TypeInfo::DecodableType RFIDOperationEventMask = static_cast(0); + Attributes::KeypadProgrammingEventMask::TypeInfo::DecodableType keypadProgrammingEventMask = static_cast(0); + Attributes::RemoteProgrammingEventMask::TypeInfo::DecodableType remoteProgrammingEventMask = static_cast(0); + Attributes::RFIDProgrammingEventMask::TypeInfo::DecodableType RFIDProgrammingEventMask = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -19130,7 +19140,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlAlarmCode alarmCode; + DlAlarmCode alarmCode = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -19142,7 +19152,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlAlarmCode alarmCode; + DlAlarmCode alarmCode = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -19163,7 +19173,7 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlDoorState doorState; + DlDoorState doorState = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; }; @@ -19175,7 +19185,7 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlDoorState doorState; + DlDoorState doorState = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -19201,8 +19211,8 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlLockOperationType lockOperationType; - DlOperationSource operationSource; + DlLockOperationType lockOperationType = static_cast(0); + DlOperationSource operationSource = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable fabricIndex; DataModel::Nullable sourceNode; @@ -19218,8 +19228,8 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlLockOperationType lockOperationType; - DlOperationSource operationSource; + DlLockOperationType lockOperationType = static_cast(0); + DlOperationSource operationSource = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable fabricIndex; DataModel::Nullable sourceNode; @@ -19250,9 +19260,9 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlLockOperationType lockOperationType; - DlOperationSource operationSource; - DlOperationError operationError; + DlLockOperationType lockOperationType = static_cast(0); + DlOperationSource operationSource = static_cast(0); + DlOperationError operationError = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable fabricIndex; DataModel::Nullable sourceNode; @@ -19268,9 +19278,9 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlLockOperationType lockOperationType; - DlOperationSource operationSource; - DlOperationError operationError; + DlLockOperationType lockOperationType = static_cast(0); + DlOperationSource operationSource = static_cast(0); + DlOperationError operationError = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable fabricIndex; DataModel::Nullable sourceNode; @@ -19301,9 +19311,9 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlLockDataType lockDataType; - DlDataOperationType dataOperationType; - DlOperationSource operationSource; + DlLockDataType lockDataType = static_cast(0); + DlDataOperationType dataOperationType = static_cast(0); + DlOperationSource operationSource = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable fabricIndex; DataModel::Nullable sourceNode; @@ -19319,9 +19329,9 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - DlLockDataType lockDataType; - DlDataOperationType dataOperationType; - DlOperationSource operationSource; + DlLockDataType lockDataType = static_cast(0); + DlDataOperationType dataOperationType = static_cast(0); + DlOperationSource operationSource = static_cast(0); DataModel::Nullable userIndex; DataModel::Nullable fabricIndex; DataModel::Nullable sourceNode; @@ -19528,7 +19538,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GoToLiftValue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } - uint16_t liftValue; + uint16_t liftValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -19543,7 +19553,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GoToLiftValue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } - uint16_t liftValue; + uint16_t liftValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GoToLiftValue @@ -19561,8 +19571,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GoToLiftPercentage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } - chip::Percent liftPercentageValue; - chip::Percent100ths liftPercent100thsValue; + chip::Percent liftPercentageValue = static_cast(0); + chip::Percent100ths liftPercent100thsValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -19577,8 +19587,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GoToLiftPercentage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } - chip::Percent liftPercentageValue; - chip::Percent100ths liftPercent100thsValue; + chip::Percent liftPercentageValue = static_cast(0); + chip::Percent100ths liftPercent100thsValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GoToLiftPercentage @@ -19595,7 +19605,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GoToTiltValue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } - uint16_t tiltValue; + uint16_t tiltValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -19610,7 +19620,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GoToTiltValue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } - uint16_t tiltValue; + uint16_t tiltValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GoToTiltValue @@ -19628,8 +19638,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GoToTiltPercentage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } - chip::Percent tiltPercentageValue; - chip::Percent100ths tiltPercent100thsValue; + chip::Percent tiltPercentageValue = static_cast(0); + chip::Percent100ths tiltPercent100thsValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -19644,8 +19654,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GoToTiltPercentage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } - chip::Percent tiltPercentageValue; - chip::Percent100ths tiltPercent100thsValue; + chip::Percent tiltPercentageValue = static_cast(0); + chip::Percent100ths tiltPercent100thsValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GoToTiltPercentage @@ -19962,31 +19972,31 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::Type::TypeInfo::DecodableType type; - Attributes::PhysicalClosedLimitLift::TypeInfo::DecodableType physicalClosedLimitLift; - Attributes::PhysicalClosedLimitTilt::TypeInfo::DecodableType physicalClosedLimitTilt; + Attributes::Type::TypeInfo::DecodableType type = static_cast(0); + Attributes::PhysicalClosedLimitLift::TypeInfo::DecodableType physicalClosedLimitLift = static_cast(0); + Attributes::PhysicalClosedLimitTilt::TypeInfo::DecodableType physicalClosedLimitTilt = static_cast(0); Attributes::CurrentPositionLift::TypeInfo::DecodableType currentPositionLift; Attributes::CurrentPositionTilt::TypeInfo::DecodableType currentPositionTilt; - Attributes::NumberOfActuationsLift::TypeInfo::DecodableType numberOfActuationsLift; - Attributes::NumberOfActuationsTilt::TypeInfo::DecodableType numberOfActuationsTilt; - Attributes::ConfigStatus::TypeInfo::DecodableType configStatus; + Attributes::NumberOfActuationsLift::TypeInfo::DecodableType numberOfActuationsLift = static_cast(0); + Attributes::NumberOfActuationsTilt::TypeInfo::DecodableType numberOfActuationsTilt = static_cast(0); + Attributes::ConfigStatus::TypeInfo::DecodableType configStatus = static_cast(0); Attributes::CurrentPositionLiftPercentage::TypeInfo::DecodableType currentPositionLiftPercentage; Attributes::CurrentPositionTiltPercentage::TypeInfo::DecodableType currentPositionTiltPercentage; - Attributes::OperationalStatus::TypeInfo::DecodableType operationalStatus; + Attributes::OperationalStatus::TypeInfo::DecodableType operationalStatus = static_cast(0); Attributes::TargetPositionLiftPercent100ths::TypeInfo::DecodableType targetPositionLiftPercent100ths; Attributes::TargetPositionTiltPercent100ths::TypeInfo::DecodableType targetPositionTiltPercent100ths; - Attributes::EndProductType::TypeInfo::DecodableType endProductType; + Attributes::EndProductType::TypeInfo::DecodableType endProductType = static_cast(0); Attributes::CurrentPositionLiftPercent100ths::TypeInfo::DecodableType currentPositionLiftPercent100ths; Attributes::CurrentPositionTiltPercent100ths::TypeInfo::DecodableType currentPositionTiltPercent100ths; - Attributes::InstalledOpenLimitLift::TypeInfo::DecodableType installedOpenLimitLift; - Attributes::InstalledClosedLimitLift::TypeInfo::DecodableType installedClosedLimitLift; - Attributes::InstalledOpenLimitTilt::TypeInfo::DecodableType installedOpenLimitTilt; - Attributes::InstalledClosedLimitTilt::TypeInfo::DecodableType installedClosedLimitTilt; - Attributes::Mode::TypeInfo::DecodableType mode; - Attributes::SafetyStatus::TypeInfo::DecodableType safetyStatus; + Attributes::InstalledOpenLimitLift::TypeInfo::DecodableType installedOpenLimitLift = static_cast(0); + Attributes::InstalledClosedLimitLift::TypeInfo::DecodableType installedClosedLimitLift = static_cast(0); + Attributes::InstalledOpenLimitTilt::TypeInfo::DecodableType installedOpenLimitTilt = static_cast(0); + Attributes::InstalledClosedLimitTilt::TypeInfo::DecodableType installedClosedLimitTilt = static_cast(0); + Attributes::Mode::TypeInfo::DecodableType mode = static_cast(0); + Attributes::SafetyStatus::TypeInfo::DecodableType safetyStatus = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -20022,7 +20032,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::BarrierControlGoToPercent::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; } - uint8_t percentOpen; + uint8_t percentOpen = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -20037,7 +20047,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::BarrierControlGoToPercent::Id; } static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; } - uint8_t percentOpen; + uint8_t percentOpen = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace BarrierControlGoToPercent @@ -20238,19 +20248,19 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::BarrierMovingState::TypeInfo::DecodableType barrierMovingState; - Attributes::BarrierSafetyStatus::TypeInfo::DecodableType barrierSafetyStatus; - Attributes::BarrierCapabilities::TypeInfo::DecodableType barrierCapabilities; - Attributes::BarrierOpenEvents::TypeInfo::DecodableType barrierOpenEvents; - Attributes::BarrierCloseEvents::TypeInfo::DecodableType barrierCloseEvents; - Attributes::BarrierCommandOpenEvents::TypeInfo::DecodableType barrierCommandOpenEvents; - Attributes::BarrierCommandCloseEvents::TypeInfo::DecodableType barrierCommandCloseEvents; - Attributes::BarrierOpenPeriod::TypeInfo::DecodableType barrierOpenPeriod; - Attributes::BarrierClosePeriod::TypeInfo::DecodableType barrierClosePeriod; - Attributes::BarrierPosition::TypeInfo::DecodableType barrierPosition; + Attributes::BarrierMovingState::TypeInfo::DecodableType barrierMovingState = static_cast(0); + Attributes::BarrierSafetyStatus::TypeInfo::DecodableType barrierSafetyStatus = static_cast(0); + Attributes::BarrierCapabilities::TypeInfo::DecodableType barrierCapabilities = static_cast(0); + Attributes::BarrierOpenEvents::TypeInfo::DecodableType barrierOpenEvents = static_cast(0); + Attributes::BarrierCloseEvents::TypeInfo::DecodableType barrierCloseEvents = static_cast(0); + Attributes::BarrierCommandOpenEvents::TypeInfo::DecodableType barrierCommandOpenEvents = static_cast(0); + Attributes::BarrierCommandCloseEvents::TypeInfo::DecodableType barrierCommandCloseEvents = static_cast(0); + Attributes::BarrierOpenPeriod::TypeInfo::DecodableType barrierOpenPeriod = static_cast(0); + Attributes::BarrierClosePeriod::TypeInfo::DecodableType barrierClosePeriod = static_cast(0); + Attributes::BarrierPosition::TypeInfo::DecodableType barrierPosition = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -20624,33 +20634,33 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MaxPressure::TypeInfo::DecodableType maxPressure; - Attributes::MaxSpeed::TypeInfo::DecodableType maxSpeed; - Attributes::MaxFlow::TypeInfo::DecodableType maxFlow; - Attributes::MinConstPressure::TypeInfo::DecodableType minConstPressure; - Attributes::MaxConstPressure::TypeInfo::DecodableType maxConstPressure; - Attributes::MinCompPressure::TypeInfo::DecodableType minCompPressure; - Attributes::MaxCompPressure::TypeInfo::DecodableType maxCompPressure; - Attributes::MinConstSpeed::TypeInfo::DecodableType minConstSpeed; - Attributes::MaxConstSpeed::TypeInfo::DecodableType maxConstSpeed; - Attributes::MinConstFlow::TypeInfo::DecodableType minConstFlow; - Attributes::MaxConstFlow::TypeInfo::DecodableType maxConstFlow; - Attributes::MinConstTemp::TypeInfo::DecodableType minConstTemp; - Attributes::MaxConstTemp::TypeInfo::DecodableType maxConstTemp; - Attributes::PumpStatus::TypeInfo::DecodableType pumpStatus; - Attributes::EffectiveOperationMode::TypeInfo::DecodableType effectiveOperationMode; - Attributes::EffectiveControlMode::TypeInfo::DecodableType effectiveControlMode; - Attributes::Capacity::TypeInfo::DecodableType capacity; - Attributes::Speed::TypeInfo::DecodableType speed; + Attributes::MaxPressure::TypeInfo::DecodableType maxPressure = static_cast(0); + Attributes::MaxSpeed::TypeInfo::DecodableType maxSpeed = static_cast(0); + Attributes::MaxFlow::TypeInfo::DecodableType maxFlow = static_cast(0); + Attributes::MinConstPressure::TypeInfo::DecodableType minConstPressure = static_cast(0); + Attributes::MaxConstPressure::TypeInfo::DecodableType maxConstPressure = static_cast(0); + Attributes::MinCompPressure::TypeInfo::DecodableType minCompPressure = static_cast(0); + Attributes::MaxCompPressure::TypeInfo::DecodableType maxCompPressure = static_cast(0); + Attributes::MinConstSpeed::TypeInfo::DecodableType minConstSpeed = static_cast(0); + Attributes::MaxConstSpeed::TypeInfo::DecodableType maxConstSpeed = static_cast(0); + Attributes::MinConstFlow::TypeInfo::DecodableType minConstFlow = static_cast(0); + Attributes::MaxConstFlow::TypeInfo::DecodableType maxConstFlow = static_cast(0); + Attributes::MinConstTemp::TypeInfo::DecodableType minConstTemp = static_cast(0); + Attributes::MaxConstTemp::TypeInfo::DecodableType maxConstTemp = static_cast(0); + Attributes::PumpStatus::TypeInfo::DecodableType pumpStatus = static_cast(0); + Attributes::EffectiveOperationMode::TypeInfo::DecodableType effectiveOperationMode = static_cast(0); + Attributes::EffectiveControlMode::TypeInfo::DecodableType effectiveControlMode = static_cast(0); + Attributes::Capacity::TypeInfo::DecodableType capacity = static_cast(0); + Attributes::Speed::TypeInfo::DecodableType speed = static_cast(0); Attributes::LifetimeRunningHours::TypeInfo::DecodableType lifetimeRunningHours; - Attributes::Power::TypeInfo::DecodableType power; + Attributes::Power::TypeInfo::DecodableType power = static_cast(0); Attributes::LifetimeEnergyConsumed::TypeInfo::DecodableType lifetimeEnergyConsumed; - Attributes::OperationMode::TypeInfo::DecodableType operationMode; - Attributes::ControlMode::TypeInfo::DecodableType controlMode; - Attributes::AlarmMask::TypeInfo::DecodableType alarmMask; + Attributes::OperationMode::TypeInfo::DecodableType operationMode = static_cast(0); + Attributes::ControlMode::TypeInfo::DecodableType controlMode = static_cast(0); + Attributes::AlarmMask::TypeInfo::DecodableType alarmMask = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -21234,8 +21244,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetpointRaiseLower::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - SetpointAdjustMode mode; - int8_t amount; + SetpointAdjustMode mode = static_cast(0); + int8_t amount = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -21250,8 +21260,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetpointRaiseLower::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - SetpointAdjustMode mode; - int8_t amount; + SetpointAdjustMode mode = static_cast(0); + int8_t amount = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetpointRaiseLower @@ -21271,9 +21281,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetWeeklyScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence; - chip::BitFlags dayOfWeekForSequence; - chip::BitFlags modeForSequence; + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitFlags dayOfWeekForSequence = static_cast>(0); + chip::BitFlags modeForSequence = static_cast>(0); DataModel::List payload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -21289,9 +21299,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetWeeklyScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence; - chip::BitFlags dayOfWeekForSequence; - chip::BitFlags modeForSequence; + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitFlags dayOfWeekForSequence = static_cast>(0); + chip::BitFlags modeForSequence = static_cast>(0); DataModel::DecodableList payload; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -21312,9 +21322,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetWeeklySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence; - chip::BitFlags dayOfWeekForSequence; - chip::BitFlags modeForSequence; + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitFlags dayOfWeekForSequence = static_cast>(0); + chip::BitFlags modeForSequence = static_cast>(0); DataModel::List payload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -21330,9 +21340,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetWeeklySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence; - chip::BitFlags dayOfWeekForSequence; - chip::BitFlags modeForSequence; + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitFlags dayOfWeekForSequence = static_cast>(0); + chip::BitFlags modeForSequence = static_cast>(0); DataModel::DecodableList payload; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -21355,12 +21365,12 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetRelayStatusLogResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint16_t timeOfDay; - uint16_t relayStatus; - int16_t localTemperature; - uint8_t humidityInPercentage; - int16_t setpoint; - uint16_t unreadEntries; + uint16_t timeOfDay = static_cast(0); + uint16_t relayStatus = static_cast(0); + int16_t localTemperature = static_cast(0); + uint8_t humidityInPercentage = static_cast(0); + int16_t setpoint = static_cast(0); + uint16_t unreadEntries = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -21375,12 +21385,12 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetRelayStatusLogResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint16_t timeOfDay; - uint16_t relayStatus; - int16_t localTemperature; - uint8_t humidityInPercentage; - int16_t setpoint; - uint16_t unreadEntries; + uint16_t timeOfDay = static_cast(0); + uint16_t relayStatus = static_cast(0); + int16_t localTemperature = static_cast(0); + uint8_t humidityInPercentage = static_cast(0); + int16_t setpoint = static_cast(0); + uint16_t unreadEntries = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetRelayStatusLogResponse @@ -21398,8 +21408,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetWeeklySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - chip::BitFlags daysToReturn; - chip::BitFlags modeToReturn; + chip::BitFlags daysToReturn = static_cast>(0); + chip::BitFlags modeToReturn = static_cast>(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -21414,8 +21424,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetWeeklySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - chip::BitFlags daysToReturn; - chip::BitFlags modeToReturn; + chip::BitFlags daysToReturn = static_cast>(0); + chip::BitFlags modeToReturn = static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetWeeklySchedule @@ -22040,52 +22050,54 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::LocalTemperature::TypeInfo::DecodableType localTemperature; - Attributes::OutdoorTemperature::TypeInfo::DecodableType outdoorTemperature; - Attributes::Occupancy::TypeInfo::DecodableType occupancy; - Attributes::AbsMinHeatSetpointLimit::TypeInfo::DecodableType absMinHeatSetpointLimit; - Attributes::AbsMaxHeatSetpointLimit::TypeInfo::DecodableType absMaxHeatSetpointLimit; - Attributes::AbsMinCoolSetpointLimit::TypeInfo::DecodableType absMinCoolSetpointLimit; - Attributes::AbsMaxCoolSetpointLimit::TypeInfo::DecodableType absMaxCoolSetpointLimit; - Attributes::PiCoolingDemand::TypeInfo::DecodableType piCoolingDemand; - Attributes::PiHeatingDemand::TypeInfo::DecodableType piHeatingDemand; - Attributes::HvacSystemTypeConfiguration::TypeInfo::DecodableType hvacSystemTypeConfiguration; - Attributes::LocalTemperatureCalibration::TypeInfo::DecodableType localTemperatureCalibration; - Attributes::OccupiedCoolingSetpoint::TypeInfo::DecodableType occupiedCoolingSetpoint; - Attributes::OccupiedHeatingSetpoint::TypeInfo::DecodableType occupiedHeatingSetpoint; - Attributes::UnoccupiedCoolingSetpoint::TypeInfo::DecodableType unoccupiedCoolingSetpoint; - Attributes::UnoccupiedHeatingSetpoint::TypeInfo::DecodableType unoccupiedHeatingSetpoint; - Attributes::MinHeatSetpointLimit::TypeInfo::DecodableType minHeatSetpointLimit; - Attributes::MaxHeatSetpointLimit::TypeInfo::DecodableType maxHeatSetpointLimit; - Attributes::MinCoolSetpointLimit::TypeInfo::DecodableType minCoolSetpointLimit; - Attributes::MaxCoolSetpointLimit::TypeInfo::DecodableType maxCoolSetpointLimit; - Attributes::MinSetpointDeadBand::TypeInfo::DecodableType minSetpointDeadBand; - Attributes::RemoteSensing::TypeInfo::DecodableType remoteSensing; - Attributes::ControlSequenceOfOperation::TypeInfo::DecodableType controlSequenceOfOperation; - Attributes::SystemMode::TypeInfo::DecodableType systemMode; - Attributes::AlarmMask::TypeInfo::DecodableType alarmMask; - Attributes::ThermostatRunningMode::TypeInfo::DecodableType thermostatRunningMode; - Attributes::StartOfWeek::TypeInfo::DecodableType startOfWeek; - Attributes::NumberOfWeeklyTransitions::TypeInfo::DecodableType numberOfWeeklyTransitions; - Attributes::NumberOfDailyTransitions::TypeInfo::DecodableType numberOfDailyTransitions; - Attributes::TemperatureSetpointHold::TypeInfo::DecodableType temperatureSetpointHold; - Attributes::TemperatureSetpointHoldDuration::TypeInfo::DecodableType temperatureSetpointHoldDuration; - Attributes::ThermostatProgrammingOperationMode::TypeInfo::DecodableType thermostatProgrammingOperationMode; - Attributes::ThermostatRunningState::TypeInfo::DecodableType thermostatRunningState; - Attributes::SetpointChangeSource::TypeInfo::DecodableType setpointChangeSource; - Attributes::SetpointChangeAmount::TypeInfo::DecodableType setpointChangeAmount; - Attributes::SetpointChangeSourceTimestamp::TypeInfo::DecodableType setpointChangeSourceTimestamp; - Attributes::AcType::TypeInfo::DecodableType acType; - Attributes::AcCapacity::TypeInfo::DecodableType acCapacity; - Attributes::AcRefrigerantType::TypeInfo::DecodableType acRefrigerantType; - Attributes::AcCompressor::TypeInfo::DecodableType acCompressor; - Attributes::AcErrorCode::TypeInfo::DecodableType acErrorCode; - Attributes::AcLouverPosition::TypeInfo::DecodableType acLouverPosition; - Attributes::AcCoilTemperature::TypeInfo::DecodableType acCoilTemperature; - Attributes::AcCapacityFormat::TypeInfo::DecodableType acCapacityFormat; + Attributes::LocalTemperature::TypeInfo::DecodableType localTemperature = static_cast(0); + Attributes::OutdoorTemperature::TypeInfo::DecodableType outdoorTemperature = static_cast(0); + Attributes::Occupancy::TypeInfo::DecodableType occupancy = static_cast(0); + Attributes::AbsMinHeatSetpointLimit::TypeInfo::DecodableType absMinHeatSetpointLimit = static_cast(0); + Attributes::AbsMaxHeatSetpointLimit::TypeInfo::DecodableType absMaxHeatSetpointLimit = static_cast(0); + Attributes::AbsMinCoolSetpointLimit::TypeInfo::DecodableType absMinCoolSetpointLimit = static_cast(0); + Attributes::AbsMaxCoolSetpointLimit::TypeInfo::DecodableType absMaxCoolSetpointLimit = static_cast(0); + Attributes::PiCoolingDemand::TypeInfo::DecodableType piCoolingDemand = static_cast(0); + Attributes::PiHeatingDemand::TypeInfo::DecodableType piHeatingDemand = static_cast(0); + Attributes::HvacSystemTypeConfiguration::TypeInfo::DecodableType hvacSystemTypeConfiguration = static_cast(0); + Attributes::LocalTemperatureCalibration::TypeInfo::DecodableType localTemperatureCalibration = static_cast(0); + Attributes::OccupiedCoolingSetpoint::TypeInfo::DecodableType occupiedCoolingSetpoint = static_cast(0); + Attributes::OccupiedHeatingSetpoint::TypeInfo::DecodableType occupiedHeatingSetpoint = static_cast(0); + Attributes::UnoccupiedCoolingSetpoint::TypeInfo::DecodableType unoccupiedCoolingSetpoint = static_cast(0); + Attributes::UnoccupiedHeatingSetpoint::TypeInfo::DecodableType unoccupiedHeatingSetpoint = static_cast(0); + Attributes::MinHeatSetpointLimit::TypeInfo::DecodableType minHeatSetpointLimit = static_cast(0); + Attributes::MaxHeatSetpointLimit::TypeInfo::DecodableType maxHeatSetpointLimit = static_cast(0); + Attributes::MinCoolSetpointLimit::TypeInfo::DecodableType minCoolSetpointLimit = static_cast(0); + Attributes::MaxCoolSetpointLimit::TypeInfo::DecodableType maxCoolSetpointLimit = static_cast(0); + Attributes::MinSetpointDeadBand::TypeInfo::DecodableType minSetpointDeadBand = static_cast(0); + Attributes::RemoteSensing::TypeInfo::DecodableType remoteSensing = static_cast(0); + Attributes::ControlSequenceOfOperation::TypeInfo::DecodableType controlSequenceOfOperation = static_cast(0); + Attributes::SystemMode::TypeInfo::DecodableType systemMode = static_cast(0); + Attributes::AlarmMask::TypeInfo::DecodableType alarmMask = static_cast(0); + Attributes::ThermostatRunningMode::TypeInfo::DecodableType thermostatRunningMode = static_cast(0); + Attributes::StartOfWeek::TypeInfo::DecodableType startOfWeek = static_cast(0); + Attributes::NumberOfWeeklyTransitions::TypeInfo::DecodableType numberOfWeeklyTransitions = static_cast(0); + Attributes::NumberOfDailyTransitions::TypeInfo::DecodableType numberOfDailyTransitions = static_cast(0); + Attributes::TemperatureSetpointHold::TypeInfo::DecodableType temperatureSetpointHold = static_cast(0); + Attributes::TemperatureSetpointHoldDuration::TypeInfo::DecodableType temperatureSetpointHoldDuration = + static_cast(0); + Attributes::ThermostatProgrammingOperationMode::TypeInfo::DecodableType thermostatProgrammingOperationMode = + static_cast(0); + Attributes::ThermostatRunningState::TypeInfo::DecodableType thermostatRunningState = static_cast(0); + Attributes::SetpointChangeSource::TypeInfo::DecodableType setpointChangeSource = static_cast(0); + Attributes::SetpointChangeAmount::TypeInfo::DecodableType setpointChangeAmount = static_cast(0); + Attributes::SetpointChangeSourceTimestamp::TypeInfo::DecodableType setpointChangeSourceTimestamp = static_cast(0); + Attributes::AcType::TypeInfo::DecodableType acType = static_cast(0); + Attributes::AcCapacity::TypeInfo::DecodableType acCapacity = static_cast(0); + Attributes::AcRefrigerantType::TypeInfo::DecodableType acRefrigerantType = static_cast(0); + Attributes::AcCompressor::TypeInfo::DecodableType acCompressor = static_cast(0); + Attributes::AcErrorCode::TypeInfo::DecodableType acErrorCode = static_cast(0); + Attributes::AcLouverPosition::TypeInfo::DecodableType acLouverPosition = static_cast(0); + Attributes::AcCoilTemperature::TypeInfo::DecodableType acCoilTemperature = static_cast(0); + Attributes::AcCapacityFormat::TypeInfo::DecodableType acCapacityFormat = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -22163,11 +22175,11 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::FanMode::TypeInfo::DecodableType fanMode; - Attributes::FanModeSequence::TypeInfo::DecodableType fanModeSequence; + Attributes::FanMode::TypeInfo::DecodableType fanMode = static_cast(0); + Attributes::FanModeSequence::TypeInfo::DecodableType fanModeSequence = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -22317,17 +22329,17 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::RelativeHumidity::TypeInfo::DecodableType relativeHumidity; - Attributes::DehumidificationCooling::TypeInfo::DecodableType dehumidificationCooling; - Attributes::RhDehumidificationSetpoint::TypeInfo::DecodableType rhDehumidificationSetpoint; - Attributes::RelativeHumidityMode::TypeInfo::DecodableType relativeHumidityMode; - Attributes::DehumidificationLockout::TypeInfo::DecodableType dehumidificationLockout; - Attributes::DehumidificationHysteresis::TypeInfo::DecodableType dehumidificationHysteresis; - Attributes::DehumidificationMaxCool::TypeInfo::DecodableType dehumidificationMaxCool; - Attributes::RelativeHumidityDisplay::TypeInfo::DecodableType relativeHumidityDisplay; + Attributes::RelativeHumidity::TypeInfo::DecodableType relativeHumidity = static_cast(0); + Attributes::DehumidificationCooling::TypeInfo::DecodableType dehumidificationCooling = static_cast(0); + Attributes::RhDehumidificationSetpoint::TypeInfo::DecodableType rhDehumidificationSetpoint = static_cast(0); + Attributes::RelativeHumidityMode::TypeInfo::DecodableType relativeHumidityMode = static_cast(0); + Attributes::DehumidificationLockout::TypeInfo::DecodableType dehumidificationLockout = static_cast(0); + Attributes::DehumidificationHysteresis::TypeInfo::DecodableType dehumidificationHysteresis = static_cast(0); + Attributes::DehumidificationMaxCool::TypeInfo::DecodableType dehumidificationMaxCool = static_cast(0); + Attributes::RelativeHumidityDisplay::TypeInfo::DecodableType relativeHumidityDisplay = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -22417,12 +22429,12 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::TemperatureDisplayMode::TypeInfo::DecodableType temperatureDisplayMode; - Attributes::KeypadLockout::TypeInfo::DecodableType keypadLockout; - Attributes::ScheduleProgrammingVisibility::TypeInfo::DecodableType scheduleProgrammingVisibility; + Attributes::TemperatureDisplayMode::TypeInfo::DecodableType temperatureDisplayMode = static_cast(0); + Attributes::KeypadLockout::TypeInfo::DecodableType keypadLockout = static_cast(0); + Attributes::ScheduleProgrammingVisibility::TypeInfo::DecodableType scheduleProgrammingVisibility = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -22668,11 +22680,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveToHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint8_t hue; - HueDirection direction; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint8_t hue = static_cast(0); + HueDirection direction = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -22687,11 +22699,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveToHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint8_t hue; - HueDirection direction; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint8_t hue = static_cast(0); + HueDirection direction = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveToHue @@ -22711,10 +22723,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueMoveMode moveMode; - uint8_t rate; - uint8_t optionsMask; - uint8_t optionsOverride; + HueMoveMode moveMode = static_cast(0); + uint8_t rate = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -22729,10 +22741,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueMoveMode moveMode; - uint8_t rate; - uint8_t optionsMask; - uint8_t optionsOverride; + HueMoveMode moveMode = static_cast(0); + uint8_t rate = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveHue @@ -22753,11 +22765,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StepHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueStepMode stepMode; - uint8_t stepSize; - uint8_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + HueStepMode stepMode = static_cast(0); + uint8_t stepSize = static_cast(0); + uint8_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -22772,11 +22784,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StepHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueStepMode stepMode; - uint8_t stepSize; - uint8_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + HueStepMode stepMode = static_cast(0); + uint8_t stepSize = static_cast(0); + uint8_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StepHue @@ -22796,10 +22808,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveToSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint8_t saturation; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint8_t saturation = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -22814,10 +22826,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveToSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint8_t saturation; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint8_t saturation = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveToSaturation @@ -22837,10 +22849,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - SaturationMoveMode moveMode; - uint8_t rate; - uint8_t optionsMask; - uint8_t optionsOverride; + SaturationMoveMode moveMode = static_cast(0); + uint8_t rate = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -22855,10 +22867,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - SaturationMoveMode moveMode; - uint8_t rate; - uint8_t optionsMask; - uint8_t optionsOverride; + SaturationMoveMode moveMode = static_cast(0); + uint8_t rate = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveSaturation @@ -22879,11 +22891,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StepSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - SaturationStepMode stepMode; - uint8_t stepSize; - uint8_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + SaturationStepMode stepMode = static_cast(0); + uint8_t stepSize = static_cast(0); + uint8_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -22898,11 +22910,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StepSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - SaturationStepMode stepMode; - uint8_t stepSize; - uint8_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + SaturationStepMode stepMode = static_cast(0); + uint8_t stepSize = static_cast(0); + uint8_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StepSaturation @@ -22923,11 +22935,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveToHueAndSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint8_t hue; - uint8_t saturation; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint8_t hue = static_cast(0); + uint8_t saturation = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -22942,11 +22954,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveToHueAndSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint8_t hue; - uint8_t saturation; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint8_t hue = static_cast(0); + uint8_t saturation = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveToHueAndSaturation @@ -22967,11 +22979,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveToColor::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint16_t colorX; - uint16_t colorY; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint16_t colorX = static_cast(0); + uint16_t colorY = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -22986,11 +22998,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveToColor::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint16_t colorX; - uint16_t colorY; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint16_t colorX = static_cast(0); + uint16_t colorY = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveToColor @@ -23010,10 +23022,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveColor::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - int16_t rateX; - int16_t rateY; - uint8_t optionsMask; - uint8_t optionsOverride; + int16_t rateX = static_cast(0); + int16_t rateY = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23028,10 +23040,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveColor::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - int16_t rateX; - int16_t rateY; - uint8_t optionsMask; - uint8_t optionsOverride; + int16_t rateX = static_cast(0); + int16_t rateY = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveColor @@ -23052,11 +23064,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StepColor::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - int16_t stepX; - int16_t stepY; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + int16_t stepX = static_cast(0); + int16_t stepY = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23071,11 +23083,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StepColor::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - int16_t stepX; - int16_t stepY; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + int16_t stepX = static_cast(0); + int16_t stepY = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StepColor @@ -23095,10 +23107,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveToColorTemperature::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint16_t colorTemperature; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint16_t colorTemperature = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23113,10 +23125,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveToColorTemperature::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint16_t colorTemperature; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint16_t colorTemperature = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveToColorTemperature @@ -23137,11 +23149,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnhancedMoveToHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint16_t enhancedHue; - HueDirection direction; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint16_t enhancedHue = static_cast(0); + HueDirection direction = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23156,11 +23168,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnhancedMoveToHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint16_t enhancedHue; - HueDirection direction; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint16_t enhancedHue = static_cast(0); + HueDirection direction = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnhancedMoveToHue @@ -23180,10 +23192,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnhancedMoveHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueMoveMode moveMode; - uint16_t rate; - uint8_t optionsMask; - uint8_t optionsOverride; + HueMoveMode moveMode = static_cast(0); + uint16_t rate = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23198,10 +23210,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnhancedMoveHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueMoveMode moveMode; - uint16_t rate; - uint8_t optionsMask; - uint8_t optionsOverride; + HueMoveMode moveMode = static_cast(0); + uint16_t rate = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnhancedMoveHue @@ -23222,11 +23234,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnhancedStepHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueStepMode stepMode; - uint16_t stepSize; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + HueStepMode stepMode = static_cast(0); + uint16_t stepSize = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23241,11 +23253,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnhancedStepHue::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueStepMode stepMode; - uint16_t stepSize; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + HueStepMode stepMode = static_cast(0); + uint16_t stepSize = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnhancedStepHue @@ -23266,11 +23278,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EnhancedMoveToHueAndSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint16_t enhancedHue; - uint8_t saturation; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint16_t enhancedHue = static_cast(0); + uint8_t saturation = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23285,11 +23297,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EnhancedMoveToHueAndSaturation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint16_t enhancedHue; - uint8_t saturation; - uint16_t transitionTime; - uint8_t optionsMask; - uint8_t optionsOverride; + uint16_t enhancedHue = static_cast(0); + uint8_t saturation = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EnhancedMoveToHueAndSaturation @@ -23312,13 +23324,13 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ColorLoopSet::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - chip::BitFlags updateFlags; - ColorLoopAction action; - ColorLoopDirection direction; - uint16_t time; - uint16_t startHue; - uint8_t optionsMask; - uint8_t optionsOverride; + chip::BitFlags updateFlags = static_cast>(0); + ColorLoopAction action = static_cast(0); + ColorLoopDirection direction = static_cast(0); + uint16_t time = static_cast(0); + uint16_t startHue = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23333,13 +23345,13 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ColorLoopSet::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - chip::BitFlags updateFlags; - ColorLoopAction action; - ColorLoopDirection direction; - uint16_t time; - uint16_t startHue; - uint8_t optionsMask; - uint8_t optionsOverride; + chip::BitFlags updateFlags = static_cast>(0); + ColorLoopAction action = static_cast(0); + ColorLoopDirection direction = static_cast(0); + uint16_t time = static_cast(0); + uint16_t startHue = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ColorLoopSet @@ -23357,8 +23369,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StopMoveStep::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint8_t optionsMask; - uint8_t optionsOverride; + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23373,8 +23385,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StopMoveStep::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - uint8_t optionsMask; - uint8_t optionsOverride; + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StopMoveStep @@ -23396,12 +23408,12 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MoveColorTemperature::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueMoveMode moveMode; - uint16_t rate; - uint16_t colorTemperatureMinimum; - uint16_t colorTemperatureMaximum; - uint8_t optionsMask; - uint8_t optionsOverride; + HueMoveMode moveMode = static_cast(0); + uint16_t rate = static_cast(0); + uint16_t colorTemperatureMinimum = static_cast(0); + uint16_t colorTemperatureMaximum = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23416,12 +23428,12 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MoveColorTemperature::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueMoveMode moveMode; - uint16_t rate; - uint16_t colorTemperatureMinimum; - uint16_t colorTemperatureMaximum; - uint8_t optionsMask; - uint8_t optionsOverride; + HueMoveMode moveMode = static_cast(0); + uint16_t rate = static_cast(0); + uint16_t colorTemperatureMinimum = static_cast(0); + uint16_t colorTemperatureMaximum = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace MoveColorTemperature @@ -23444,13 +23456,13 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StepColorTemperature::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueStepMode stepMode; - uint16_t stepSize; - uint16_t transitionTime; - uint16_t colorTemperatureMinimum; - uint16_t colorTemperatureMaximum; - uint8_t optionsMask; - uint8_t optionsOverride; + HueStepMode stepMode = static_cast(0); + uint16_t stepSize = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint16_t colorTemperatureMinimum = static_cast(0); + uint16_t colorTemperatureMaximum = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -23465,13 +23477,13 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StepColorTemperature::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; } - HueStepMode stepMode; - uint16_t stepSize; - uint16_t transitionTime; - uint16_t colorTemperatureMinimum; - uint16_t colorTemperatureMaximum; - uint8_t optionsMask; - uint8_t optionsOverride; + HueStepMode stepMode = static_cast(0); + uint16_t stepSize = static_cast(0); + uint16_t transitionTime = static_cast(0); + uint16_t colorTemperatureMinimum = static_cast(0); + uint16_t colorTemperatureMaximum = static_cast(0); + uint8_t optionsMask = static_cast(0); + uint8_t optionsOverride = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StepColorTemperature @@ -24148,61 +24160,62 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::CurrentHue::TypeInfo::DecodableType currentHue; - Attributes::CurrentSaturation::TypeInfo::DecodableType currentSaturation; - Attributes::RemainingTime::TypeInfo::DecodableType remainingTime; - Attributes::CurrentX::TypeInfo::DecodableType currentX; - Attributes::CurrentY::TypeInfo::DecodableType currentY; - Attributes::DriftCompensation::TypeInfo::DecodableType driftCompensation; + Attributes::CurrentHue::TypeInfo::DecodableType currentHue = static_cast(0); + Attributes::CurrentSaturation::TypeInfo::DecodableType currentSaturation = static_cast(0); + Attributes::RemainingTime::TypeInfo::DecodableType remainingTime = static_cast(0); + Attributes::CurrentX::TypeInfo::DecodableType currentX = static_cast(0); + Attributes::CurrentY::TypeInfo::DecodableType currentY = static_cast(0); + Attributes::DriftCompensation::TypeInfo::DecodableType driftCompensation = static_cast(0); Attributes::CompensationText::TypeInfo::DecodableType compensationText; - Attributes::ColorTemperature::TypeInfo::DecodableType colorTemperature; - Attributes::ColorMode::TypeInfo::DecodableType colorMode; - Attributes::ColorControlOptions::TypeInfo::DecodableType colorControlOptions; - Attributes::NumberOfPrimaries::TypeInfo::DecodableType numberOfPrimaries; - Attributes::Primary1X::TypeInfo::DecodableType primary1X; - Attributes::Primary1Y::TypeInfo::DecodableType primary1Y; - Attributes::Primary1Intensity::TypeInfo::DecodableType primary1Intensity; - Attributes::Primary2X::TypeInfo::DecodableType primary2X; - Attributes::Primary2Y::TypeInfo::DecodableType primary2Y; - Attributes::Primary2Intensity::TypeInfo::DecodableType primary2Intensity; - Attributes::Primary3X::TypeInfo::DecodableType primary3X; - Attributes::Primary3Y::TypeInfo::DecodableType primary3Y; - Attributes::Primary3Intensity::TypeInfo::DecodableType primary3Intensity; - Attributes::Primary4X::TypeInfo::DecodableType primary4X; - Attributes::Primary4Y::TypeInfo::DecodableType primary4Y; - Attributes::Primary4Intensity::TypeInfo::DecodableType primary4Intensity; - Attributes::Primary5X::TypeInfo::DecodableType primary5X; - Attributes::Primary5Y::TypeInfo::DecodableType primary5Y; - Attributes::Primary5Intensity::TypeInfo::DecodableType primary5Intensity; - Attributes::Primary6X::TypeInfo::DecodableType primary6X; - Attributes::Primary6Y::TypeInfo::DecodableType primary6Y; - Attributes::Primary6Intensity::TypeInfo::DecodableType primary6Intensity; - Attributes::WhitePointX::TypeInfo::DecodableType whitePointX; - Attributes::WhitePointY::TypeInfo::DecodableType whitePointY; - Attributes::ColorPointRX::TypeInfo::DecodableType colorPointRX; - Attributes::ColorPointRY::TypeInfo::DecodableType colorPointRY; - Attributes::ColorPointRIntensity::TypeInfo::DecodableType colorPointRIntensity; - Attributes::ColorPointGX::TypeInfo::DecodableType colorPointGX; - Attributes::ColorPointGY::TypeInfo::DecodableType colorPointGY; - Attributes::ColorPointGIntensity::TypeInfo::DecodableType colorPointGIntensity; - Attributes::ColorPointBX::TypeInfo::DecodableType colorPointBX; - Attributes::ColorPointBY::TypeInfo::DecodableType colorPointBY; - Attributes::ColorPointBIntensity::TypeInfo::DecodableType colorPointBIntensity; - Attributes::EnhancedCurrentHue::TypeInfo::DecodableType enhancedCurrentHue; - Attributes::EnhancedColorMode::TypeInfo::DecodableType enhancedColorMode; - Attributes::ColorLoopActive::TypeInfo::DecodableType colorLoopActive; - Attributes::ColorLoopDirection::TypeInfo::DecodableType colorLoopDirection; - Attributes::ColorLoopTime::TypeInfo::DecodableType colorLoopTime; - Attributes::ColorLoopStartEnhancedHue::TypeInfo::DecodableType colorLoopStartEnhancedHue; - Attributes::ColorLoopStoredEnhancedHue::TypeInfo::DecodableType colorLoopStoredEnhancedHue; - Attributes::ColorCapabilities::TypeInfo::DecodableType colorCapabilities; - Attributes::ColorTempPhysicalMin::TypeInfo::DecodableType colorTempPhysicalMin; - Attributes::ColorTempPhysicalMax::TypeInfo::DecodableType colorTempPhysicalMax; - Attributes::CoupleColorTempToLevelMinMireds::TypeInfo::DecodableType coupleColorTempToLevelMinMireds; - Attributes::StartUpColorTemperatureMireds::TypeInfo::DecodableType startUpColorTemperatureMireds; + Attributes::ColorTemperature::TypeInfo::DecodableType colorTemperature = static_cast(0); + Attributes::ColorMode::TypeInfo::DecodableType colorMode = static_cast(0); + Attributes::ColorControlOptions::TypeInfo::DecodableType colorControlOptions = static_cast(0); + Attributes::NumberOfPrimaries::TypeInfo::DecodableType numberOfPrimaries = static_cast(0); + Attributes::Primary1X::TypeInfo::DecodableType primary1X = static_cast(0); + Attributes::Primary1Y::TypeInfo::DecodableType primary1Y = static_cast(0); + Attributes::Primary1Intensity::TypeInfo::DecodableType primary1Intensity = static_cast(0); + Attributes::Primary2X::TypeInfo::DecodableType primary2X = static_cast(0); + Attributes::Primary2Y::TypeInfo::DecodableType primary2Y = static_cast(0); + Attributes::Primary2Intensity::TypeInfo::DecodableType primary2Intensity = static_cast(0); + Attributes::Primary3X::TypeInfo::DecodableType primary3X = static_cast(0); + Attributes::Primary3Y::TypeInfo::DecodableType primary3Y = static_cast(0); + Attributes::Primary3Intensity::TypeInfo::DecodableType primary3Intensity = static_cast(0); + Attributes::Primary4X::TypeInfo::DecodableType primary4X = static_cast(0); + Attributes::Primary4Y::TypeInfo::DecodableType primary4Y = static_cast(0); + Attributes::Primary4Intensity::TypeInfo::DecodableType primary4Intensity = static_cast(0); + Attributes::Primary5X::TypeInfo::DecodableType primary5X = static_cast(0); + Attributes::Primary5Y::TypeInfo::DecodableType primary5Y = static_cast(0); + Attributes::Primary5Intensity::TypeInfo::DecodableType primary5Intensity = static_cast(0); + Attributes::Primary6X::TypeInfo::DecodableType primary6X = static_cast(0); + Attributes::Primary6Y::TypeInfo::DecodableType primary6Y = static_cast(0); + Attributes::Primary6Intensity::TypeInfo::DecodableType primary6Intensity = static_cast(0); + Attributes::WhitePointX::TypeInfo::DecodableType whitePointX = static_cast(0); + Attributes::WhitePointY::TypeInfo::DecodableType whitePointY = static_cast(0); + Attributes::ColorPointRX::TypeInfo::DecodableType colorPointRX = static_cast(0); + Attributes::ColorPointRY::TypeInfo::DecodableType colorPointRY = static_cast(0); + Attributes::ColorPointRIntensity::TypeInfo::DecodableType colorPointRIntensity = static_cast(0); + Attributes::ColorPointGX::TypeInfo::DecodableType colorPointGX = static_cast(0); + Attributes::ColorPointGY::TypeInfo::DecodableType colorPointGY = static_cast(0); + Attributes::ColorPointGIntensity::TypeInfo::DecodableType colorPointGIntensity = static_cast(0); + Attributes::ColorPointBX::TypeInfo::DecodableType colorPointBX = static_cast(0); + Attributes::ColorPointBY::TypeInfo::DecodableType colorPointBY = static_cast(0); + Attributes::ColorPointBIntensity::TypeInfo::DecodableType colorPointBIntensity = static_cast(0); + Attributes::EnhancedCurrentHue::TypeInfo::DecodableType enhancedCurrentHue = static_cast(0); + Attributes::EnhancedColorMode::TypeInfo::DecodableType enhancedColorMode = static_cast(0); + Attributes::ColorLoopActive::TypeInfo::DecodableType colorLoopActive = static_cast(0); + Attributes::ColorLoopDirection::TypeInfo::DecodableType colorLoopDirection = static_cast(0); + Attributes::ColorLoopTime::TypeInfo::DecodableType colorLoopTime = static_cast(0); + Attributes::ColorLoopStartEnhancedHue::TypeInfo::DecodableType colorLoopStartEnhancedHue = static_cast(0); + Attributes::ColorLoopStoredEnhancedHue::TypeInfo::DecodableType colorLoopStoredEnhancedHue = static_cast(0); + Attributes::ColorCapabilities::TypeInfo::DecodableType colorCapabilities = static_cast(0); + Attributes::ColorTempPhysicalMin::TypeInfo::DecodableType colorTempPhysicalMin = static_cast(0); + Attributes::ColorTempPhysicalMax::TypeInfo::DecodableType colorTempPhysicalMax = static_cast(0); + Attributes::CoupleColorTempToLevelMinMireds::TypeInfo::DecodableType coupleColorTempToLevelMinMireds = + static_cast(0); + Attributes::StartUpColorTemperatureMireds::TypeInfo::DecodableType startUpColorTemperatureMireds = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -24448,25 +24461,25 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::PhysicalMinLevel::TypeInfo::DecodableType physicalMinLevel; - Attributes::PhysicalMaxLevel::TypeInfo::DecodableType physicalMaxLevel; - Attributes::BallastStatus::TypeInfo::DecodableType ballastStatus; - Attributes::MinLevel::TypeInfo::DecodableType minLevel; - Attributes::MaxLevel::TypeInfo::DecodableType maxLevel; - Attributes::PowerOnLevel::TypeInfo::DecodableType powerOnLevel; - Attributes::PowerOnFadeTime::TypeInfo::DecodableType powerOnFadeTime; - Attributes::IntrinsicBallastFactor::TypeInfo::DecodableType intrinsicBallastFactor; - Attributes::BallastFactorAdjustment::TypeInfo::DecodableType ballastFactorAdjustment; - Attributes::LampQuality::TypeInfo::DecodableType lampQuality; + Attributes::PhysicalMinLevel::TypeInfo::DecodableType physicalMinLevel = static_cast(0); + Attributes::PhysicalMaxLevel::TypeInfo::DecodableType physicalMaxLevel = static_cast(0); + Attributes::BallastStatus::TypeInfo::DecodableType ballastStatus = static_cast(0); + Attributes::MinLevel::TypeInfo::DecodableType minLevel = static_cast(0); + Attributes::MaxLevel::TypeInfo::DecodableType maxLevel = static_cast(0); + Attributes::PowerOnLevel::TypeInfo::DecodableType powerOnLevel = static_cast(0); + Attributes::PowerOnFadeTime::TypeInfo::DecodableType powerOnFadeTime = static_cast(0); + Attributes::IntrinsicBallastFactor::TypeInfo::DecodableType intrinsicBallastFactor = static_cast(0); + Attributes::BallastFactorAdjustment::TypeInfo::DecodableType ballastFactorAdjustment = static_cast(0); + Attributes::LampQuality::TypeInfo::DecodableType lampQuality = static_cast(0); Attributes::LampType::TypeInfo::DecodableType lampType; Attributes::LampManufacturer::TypeInfo::DecodableType lampManufacturer; - Attributes::LampRatedHours::TypeInfo::DecodableType lampRatedHours; - Attributes::LampBurnHours::TypeInfo::DecodableType lampBurnHours; - Attributes::LampAlarmMode::TypeInfo::DecodableType lampAlarmMode; - Attributes::LampBurnHoursTripPoint::TypeInfo::DecodableType lampBurnHoursTripPoint; + Attributes::LampRatedHours::TypeInfo::DecodableType lampRatedHours = static_cast(0); + Attributes::LampBurnHours::TypeInfo::DecodableType lampBurnHours = static_cast(0); + Attributes::LampAlarmMode::TypeInfo::DecodableType lampAlarmMode = static_cast(0); + Attributes::LampBurnHoursTripPoint::TypeInfo::DecodableType lampBurnHoursTripPoint = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -24589,11 +24602,11 @@ struct TypeInfo Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::LightSensorType::TypeInfo::DecodableType lightSensorType; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -24695,13 +24708,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -24863,18 +24876,18 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; - Attributes::ScaledValue::TypeInfo::DecodableType scaledValue; - Attributes::MinScaledValue::TypeInfo::DecodableType minScaledValue; - Attributes::MaxScaledValue::TypeInfo::DecodableType maxScaledValue; - Attributes::ScaledTolerance::TypeInfo::DecodableType scaledTolerance; - Attributes::Scale::TypeInfo::DecodableType scale; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); + Attributes::ScaledValue::TypeInfo::DecodableType scaledValue = static_cast(0); + Attributes::MinScaledValue::TypeInfo::DecodableType minScaledValue = static_cast(0); + Attributes::MaxScaledValue::TypeInfo::DecodableType maxScaledValue = static_cast(0); + Attributes::ScaledTolerance::TypeInfo::DecodableType scaledTolerance = static_cast(0); + Attributes::Scale::TypeInfo::DecodableType scale = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -24976,13 +24989,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -25084,13 +25097,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -25288,22 +25301,28 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::Occupancy::TypeInfo::DecodableType occupancy; - Attributes::OccupancySensorType::TypeInfo::DecodableType occupancySensorType; - Attributes::OccupancySensorTypeBitmap::TypeInfo::DecodableType occupancySensorTypeBitmap; - Attributes::PirOccupiedToUnoccupiedDelay::TypeInfo::DecodableType pirOccupiedToUnoccupiedDelay; - Attributes::PirUnoccupiedToOccupiedDelay::TypeInfo::DecodableType pirUnoccupiedToOccupiedDelay; - Attributes::PirUnoccupiedToOccupiedThreshold::TypeInfo::DecodableType pirUnoccupiedToOccupiedThreshold; - Attributes::UltrasonicOccupiedToUnoccupiedDelay::TypeInfo::DecodableType ultrasonicOccupiedToUnoccupiedDelay; - Attributes::UltrasonicUnoccupiedToOccupiedDelay::TypeInfo::DecodableType ultrasonicUnoccupiedToOccupiedDelay; - Attributes::UltrasonicUnoccupiedToOccupiedThreshold::TypeInfo::DecodableType ultrasonicUnoccupiedToOccupiedThreshold; - Attributes::PhysicalContactOccupiedToUnoccupiedDelay::TypeInfo::DecodableType physicalContactOccupiedToUnoccupiedDelay; - Attributes::PhysicalContactUnoccupiedToOccupiedDelay::TypeInfo::DecodableType physicalContactUnoccupiedToOccupiedDelay; + Attributes::Occupancy::TypeInfo::DecodableType occupancy = static_cast(0); + Attributes::OccupancySensorType::TypeInfo::DecodableType occupancySensorType = static_cast(0); + Attributes::OccupancySensorTypeBitmap::TypeInfo::DecodableType occupancySensorTypeBitmap = static_cast(0); + Attributes::PirOccupiedToUnoccupiedDelay::TypeInfo::DecodableType pirOccupiedToUnoccupiedDelay = static_cast(0); + Attributes::PirUnoccupiedToOccupiedDelay::TypeInfo::DecodableType pirUnoccupiedToOccupiedDelay = static_cast(0); + Attributes::PirUnoccupiedToOccupiedThreshold::TypeInfo::DecodableType pirUnoccupiedToOccupiedThreshold = + static_cast(0); + Attributes::UltrasonicOccupiedToUnoccupiedDelay::TypeInfo::DecodableType ultrasonicOccupiedToUnoccupiedDelay = + static_cast(0); + Attributes::UltrasonicUnoccupiedToOccupiedDelay::TypeInfo::DecodableType ultrasonicUnoccupiedToOccupiedDelay = + static_cast(0); + Attributes::UltrasonicUnoccupiedToOccupiedThreshold::TypeInfo::DecodableType ultrasonicUnoccupiedToOccupiedThreshold = + static_cast(0); + Attributes::PhysicalContactOccupiedToUnoccupiedDelay::TypeInfo::DecodableType physicalContactOccupiedToUnoccupiedDelay = + static_cast(0); + Attributes::PhysicalContactUnoccupiedToOccupiedDelay::TypeInfo::DecodableType physicalContactUnoccupiedToOccupiedDelay = + static_cast(0); Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::TypeInfo::DecodableType - physicalContactUnoccupiedToOccupiedThreshold; + physicalContactUnoccupiedToOccupiedThreshold = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -25405,13 +25424,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -25513,13 +25532,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -25621,13 +25640,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -25729,13 +25748,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -25837,13 +25856,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -25945,13 +25964,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26053,13 +26072,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26161,13 +26180,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26269,13 +26288,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26377,13 +26396,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26485,13 +26504,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26593,13 +26612,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26701,13 +26720,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26809,13 +26828,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -26917,13 +26936,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27025,13 +27044,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27133,13 +27152,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27241,13 +27260,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27349,13 +27368,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27457,13 +27476,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27565,13 +27584,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27673,13 +27692,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27781,13 +27800,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27889,13 +27908,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -27997,13 +28016,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -28105,13 +28124,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -28213,13 +28232,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -28321,13 +28340,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -28429,13 +28448,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -28537,13 +28556,13 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; - Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; - Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance; + Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue = static_cast(0); + Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue = static_cast(0); + Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -28660,8 +28679,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ZoneEnrollResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } - IasEnrollResponseCode enrollResponseCode; - uint8_t zoneId; + IasEnrollResponseCode enrollResponseCode = static_cast(0); + uint8_t zoneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -28676,8 +28695,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ZoneEnrollResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } - IasEnrollResponseCode enrollResponseCode; - uint8_t zoneId; + IasEnrollResponseCode enrollResponseCode = static_cast(0); + uint8_t zoneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ZoneEnrollResponse @@ -28697,10 +28716,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ZoneStatusChangeNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } - chip::BitFlags zoneStatus; - uint8_t extendedStatus; - uint8_t zoneId; - uint16_t delay; + chip::BitFlags zoneStatus = static_cast>(0); + uint8_t extendedStatus = static_cast(0); + uint8_t zoneId = static_cast(0); + uint16_t delay = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -28715,10 +28734,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ZoneStatusChangeNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } - chip::BitFlags zoneStatus; - uint8_t extendedStatus; - uint8_t zoneId; - uint16_t delay; + chip::BitFlags zoneStatus = static_cast>(0); + uint8_t extendedStatus = static_cast(0); + uint8_t zoneId = static_cast(0); + uint16_t delay = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ZoneStatusChangeNotification @@ -28764,8 +28783,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ZoneEnrollRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } - IasZoneType zoneType; - uint16_t manufacturerCode; + IasZoneType zoneType = static_cast(0); + uint16_t manufacturerCode = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -28780,8 +28799,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ZoneEnrollRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } - IasZoneType zoneType; - uint16_t manufacturerCode; + IasZoneType zoneType = static_cast(0); + uint16_t manufacturerCode = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ZoneEnrollRequest @@ -28799,8 +28818,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::InitiateTestMode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } - uint8_t testModeDuration; - uint8_t currentZoneSensitivityLevel; + uint8_t testModeDuration = static_cast(0); + uint8_t currentZoneSensitivityLevel = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -28815,8 +28834,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::InitiateTestMode::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } - uint8_t testModeDuration; - uint8_t currentZoneSensitivityLevel; + uint8_t testModeDuration = static_cast(0); + uint8_t currentZoneSensitivityLevel = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace InitiateTestMode @@ -29009,16 +29028,17 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::ZoneState::TypeInfo::DecodableType zoneState; - Attributes::ZoneType::TypeInfo::DecodableType zoneType; - Attributes::ZoneStatus::TypeInfo::DecodableType zoneStatus; - Attributes::IasCieAddress::TypeInfo::DecodableType iasCieAddress; - Attributes::ZoneId::TypeInfo::DecodableType zoneId; - Attributes::NumberOfZoneSensitivityLevelsSupported::TypeInfo::DecodableType numberOfZoneSensitivityLevelsSupported; - Attributes::CurrentZoneSensitivityLevel::TypeInfo::DecodableType currentZoneSensitivityLevel; + Attributes::ZoneState::TypeInfo::DecodableType zoneState = static_cast(0); + Attributes::ZoneType::TypeInfo::DecodableType zoneType = static_cast(0); + Attributes::ZoneStatus::TypeInfo::DecodableType zoneStatus = static_cast(0); + Attributes::IasCieAddress::TypeInfo::DecodableType iasCieAddress = static_cast(0); + Attributes::ZoneId::TypeInfo::DecodableType zoneId = static_cast(0); + Attributes::NumberOfZoneSensitivityLevelsSupported::TypeInfo::DecodableType numberOfZoneSensitivityLevelsSupported = + static_cast(0); + Attributes::CurrentZoneSensitivityLevel::TypeInfo::DecodableType currentZoneSensitivityLevel = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -29266,9 +29286,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Arm::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - IasAceArmMode armMode; + IasAceArmMode armMode = static_cast(0); chip::CharSpan armDisarmCode; - uint8_t zoneId; + uint8_t zoneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29283,9 +29303,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Arm::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - IasAceArmMode armMode; + IasAceArmMode armMode = static_cast(0); chip::CharSpan armDisarmCode; - uint8_t zoneId; + uint8_t zoneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Arm @@ -29302,7 +29322,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ArmResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - IasAceArmNotification armNotification; + IasAceArmNotification armNotification = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29317,7 +29337,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ArmResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - IasAceArmNotification armNotification; + IasAceArmNotification armNotification = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ArmResponse @@ -29336,7 +29356,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Bypass::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t numberOfZones; + uint8_t numberOfZones = static_cast(0); DataModel::List zoneIds; chip::CharSpan armDisarmCode; @@ -29353,7 +29373,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Bypass::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t numberOfZones; + uint8_t numberOfZones = static_cast(0); DataModel::DecodableList zoneIds; chip::CharSpan armDisarmCode; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -29387,22 +29407,22 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetZoneIdMapResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint16_t section0; - uint16_t section1; - uint16_t section2; - uint16_t section3; - uint16_t section4; - uint16_t section5; - uint16_t section6; - uint16_t section7; - uint16_t section8; - uint16_t section9; - uint16_t section10; - uint16_t section11; - uint16_t section12; - uint16_t section13; - uint16_t section14; - uint16_t section15; + uint16_t section0 = static_cast(0); + uint16_t section1 = static_cast(0); + uint16_t section2 = static_cast(0); + uint16_t section3 = static_cast(0); + uint16_t section4 = static_cast(0); + uint16_t section5 = static_cast(0); + uint16_t section6 = static_cast(0); + uint16_t section7 = static_cast(0); + uint16_t section8 = static_cast(0); + uint16_t section9 = static_cast(0); + uint16_t section10 = static_cast(0); + uint16_t section11 = static_cast(0); + uint16_t section12 = static_cast(0); + uint16_t section13 = static_cast(0); + uint16_t section14 = static_cast(0); + uint16_t section15 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29417,22 +29437,22 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetZoneIdMapResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint16_t section0; - uint16_t section1; - uint16_t section2; - uint16_t section3; - uint16_t section4; - uint16_t section5; - uint16_t section6; - uint16_t section7; - uint16_t section8; - uint16_t section9; - uint16_t section10; - uint16_t section11; - uint16_t section12; - uint16_t section13; - uint16_t section14; - uint16_t section15; + uint16_t section0 = static_cast(0); + uint16_t section1 = static_cast(0); + uint16_t section2 = static_cast(0); + uint16_t section3 = static_cast(0); + uint16_t section4 = static_cast(0); + uint16_t section5 = static_cast(0); + uint16_t section6 = static_cast(0); + uint16_t section7 = static_cast(0); + uint16_t section8 = static_cast(0); + uint16_t section9 = static_cast(0); + uint16_t section10 = static_cast(0); + uint16_t section11 = static_cast(0); + uint16_t section12 = static_cast(0); + uint16_t section13 = static_cast(0); + uint16_t section14 = static_cast(0); + uint16_t section15 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetZoneIdMapResponse @@ -29480,9 +29500,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetZoneInformationResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t zoneId; - IasZoneType zoneType; - chip::NodeId ieeeAddress; + uint8_t zoneId = static_cast(0); + IasZoneType zoneType = static_cast(0); + chip::NodeId ieeeAddress = static_cast(0); chip::CharSpan zoneLabel; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29498,9 +29518,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetZoneInformationResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t zoneId; - IasZoneType zoneType; - chip::NodeId ieeeAddress; + uint8_t zoneId = static_cast(0); + IasZoneType zoneType = static_cast(0); + chip::NodeId ieeeAddress = static_cast(0); chip::CharSpan zoneLabel; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -29549,9 +29569,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ZoneStatusChanged::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t zoneId; - uint16_t zoneStatus; - IasAceAudibleNotification audibleNotification; + uint8_t zoneId = static_cast(0); + uint16_t zoneStatus = static_cast(0); + IasAceAudibleNotification audibleNotification = static_cast(0); chip::CharSpan zoneLabel; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29567,9 +29587,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ZoneStatusChanged::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t zoneId; - uint16_t zoneStatus; - IasAceAudibleNotification audibleNotification; + uint8_t zoneId = static_cast(0); + uint16_t zoneStatus = static_cast(0); + IasAceAudibleNotification audibleNotification = static_cast(0); chip::CharSpan zoneLabel; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -29618,10 +29638,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PanelStatusChanged::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - IasAcePanelStatus panelStatus; - uint8_t secondsRemaining; - IasAceAudibleNotification audibleNotification; - IasAceAlarmStatus alarmStatus; + IasAcePanelStatus panelStatus = static_cast(0); + uint8_t secondsRemaining = static_cast(0); + IasAceAudibleNotification audibleNotification = static_cast(0); + IasAceAlarmStatus alarmStatus = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29636,10 +29656,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PanelStatusChanged::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - IasAcePanelStatus panelStatus; - uint8_t secondsRemaining; - IasAceAudibleNotification audibleNotification; - IasAceAlarmStatus alarmStatus; + IasAcePanelStatus panelStatus = static_cast(0); + uint8_t secondsRemaining = static_cast(0); + IasAceAudibleNotification audibleNotification = static_cast(0); + IasAceAlarmStatus alarmStatus = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace PanelStatusChanged @@ -29687,10 +29707,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetPanelStatusResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - IasAcePanelStatus panelStatus; - uint8_t secondsRemaining; - IasAceAudibleNotification audibleNotification; - IasAceAlarmStatus alarmStatus; + IasAcePanelStatus panelStatus = static_cast(0); + uint8_t secondsRemaining = static_cast(0); + IasAceAudibleNotification audibleNotification = static_cast(0); + IasAceAlarmStatus alarmStatus = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29705,10 +29725,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetPanelStatusResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - IasAcePanelStatus panelStatus; - uint8_t secondsRemaining; - IasAceAudibleNotification audibleNotification; - IasAceAlarmStatus alarmStatus; + IasAcePanelStatus panelStatus = static_cast(0); + uint8_t secondsRemaining = static_cast(0); + IasAceAudibleNotification audibleNotification = static_cast(0); + IasAceAlarmStatus alarmStatus = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetPanelStatusResponse @@ -29725,7 +29745,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetZoneInformation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t zoneId; + uint8_t zoneId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29740,7 +29760,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetZoneInformation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t zoneId; + uint8_t zoneId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetZoneInformation @@ -29758,7 +29778,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetBypassedZoneList::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t numberOfZones; + uint8_t numberOfZones = static_cast(0); DataModel::List zoneIds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29774,7 +29794,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetBypassedZoneList::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t numberOfZones; + uint8_t numberOfZones = static_cast(0); DataModel::DecodableList zoneIds; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -29821,7 +29841,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::BypassResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t numberOfZones; + uint8_t numberOfZones = static_cast(0); DataModel::List bypassResult; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29837,7 +29857,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::BypassResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t numberOfZones; + uint8_t numberOfZones = static_cast(0); DataModel::DecodableList bypassResult; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -29885,8 +29905,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetZoneStatusResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - bool zoneStatusComplete; - uint8_t numberOfZones; + bool zoneStatusComplete = static_cast(0); + uint8_t numberOfZones = static_cast(0); DataModel::List zoneStatusResult; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29902,8 +29922,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetZoneStatusResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - bool zoneStatusComplete; - uint8_t numberOfZones; + bool zoneStatusComplete = static_cast(0); + uint8_t numberOfZones = static_cast(0); DataModel::DecodableList zoneStatusResult; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -29924,10 +29944,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetZoneStatus::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t startingZoneId; - uint8_t maxNumberOfZoneIds; - bool zoneStatusMaskFlag; - uint16_t zoneStatusMask; + uint8_t startingZoneId = static_cast(0); + uint8_t maxNumberOfZoneIds = static_cast(0); + bool zoneStatusMaskFlag = static_cast(0); + uint16_t zoneStatusMask = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -29942,10 +29962,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetZoneStatus::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } - uint8_t startingZoneId; - uint8_t maxNumberOfZoneIds; - bool zoneStatusMaskFlag; - uint16_t zoneStatusMask; + uint8_t startingZoneId = static_cast(0); + uint8_t maxNumberOfZoneIds = static_cast(0); + bool zoneStatusMaskFlag = static_cast(0); + uint16_t zoneStatusMask = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetZoneStatus @@ -29999,8 +30019,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -30055,10 +30075,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StartWarning::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasWd::Id; } - chip::BitFlags warningInfo; - uint16_t warningDuration; - uint8_t strobeDutyCycle; - uint8_t strobeLevel; + chip::BitFlags warningInfo = static_cast>(0); + uint16_t warningDuration = static_cast(0); + uint8_t strobeDutyCycle = static_cast(0); + uint8_t strobeLevel = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -30073,10 +30093,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StartWarning::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasWd::Id; } - chip::BitFlags warningInfo; - uint16_t warningDuration; - uint8_t strobeDutyCycle; - uint8_t strobeLevel; + chip::BitFlags warningInfo = static_cast>(0); + uint16_t warningDuration = static_cast(0); + uint8_t strobeDutyCycle = static_cast(0); + uint8_t strobeLevel = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace StartWarning @@ -30093,7 +30113,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::Squawk::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasWd::Id; } - chip::BitFlags squawkInfo; + chip::BitFlags squawkInfo = static_cast>(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -30108,7 +30128,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::Squawk::Id; } static constexpr ClusterId GetClusterId() { return Clusters::IasWd::Id; } - chip::BitFlags squawkInfo; + chip::BitFlags squawkInfo = static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace Squawk @@ -30173,10 +30193,10 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MaxDuration::TypeInfo::DecodableType maxDuration; + Attributes::MaxDuration::TypeInfo::DecodableType maxDuration = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -30244,8 +30264,8 @@ struct TypeInfo Attributes::WakeOnLanMacAddress::TypeInfo::DecodableType wakeOnLanMacAddress; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -30389,7 +30409,7 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } Structs::ChannelInfo::Type channelMatch; - ErrorTypeEnum errorType; + ErrorTypeEnum errorType = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -30405,7 +30425,7 @@ struct DecodableType static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } Structs::ChannelInfo::DecodableType channelMatch; - ErrorTypeEnum errorType; + ErrorTypeEnum errorType = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ChangeChannelResponse @@ -30423,8 +30443,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::ChangeChannelByNumberRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } - uint16_t majorNumber; - uint16_t minorNumber; + uint16_t majorNumber = static_cast(0); + uint16_t minorNumber = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -30439,8 +30459,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::ChangeChannelByNumberRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } - uint16_t majorNumber; - uint16_t minorNumber; + uint16_t majorNumber = static_cast(0); + uint16_t minorNumber = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ChangeChannelByNumberRequest @@ -30457,7 +30477,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SkipChannelRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } - uint16_t count; + uint16_t count = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -30472,7 +30492,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SkipChannelRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } - uint16_t count; + uint16_t count = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SkipChannelRequest @@ -30566,8 +30586,8 @@ struct TypeInfo Attributes::ChannelLineup::TypeInfo::DecodableType channelLineup; Attributes::CurrentChannel::TypeInfo::DecodableType currentChannel; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -30634,7 +30654,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::NavigateTargetRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TargetNavigator::Id; } - uint8_t target; + uint8_t target = static_cast(0); chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -30650,7 +30670,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::NavigateTargetRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TargetNavigator::Id; } - uint8_t target; + uint8_t target = static_cast(0); chip::CharSpan data; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -30669,7 +30689,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::NavigateTargetResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TargetNavigator::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -30685,7 +30705,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::NavigateTargetResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TargetNavigator::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); chip::CharSpan data; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -30766,10 +30786,10 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::TargetNavigatorList::TypeInfo::DecodableType targetNavigatorList; - Attributes::CurrentNavigatorTarget::TypeInfo::DecodableType currentNavigatorTarget; + Attributes::CurrentNavigatorTarget::TypeInfo::DecodableType currentNavigatorTarget = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -31120,7 +31140,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SkipForwardRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - uint64_t deltaPositionMilliseconds; + uint64_t deltaPositionMilliseconds = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31135,7 +31155,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SkipForwardRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - uint64_t deltaPositionMilliseconds; + uint64_t deltaPositionMilliseconds = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SkipForwardRequest @@ -31152,7 +31172,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SkipBackwardRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - uint64_t deltaPositionMilliseconds; + uint64_t deltaPositionMilliseconds = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31167,7 +31187,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SkipBackwardRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - uint64_t deltaPositionMilliseconds; + uint64_t deltaPositionMilliseconds = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SkipBackwardRequest @@ -31184,7 +31204,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PlaybackResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31199,7 +31219,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PlaybackResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace PlaybackResponse @@ -31216,7 +31236,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SeekRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - uint64_t position; + uint64_t position = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31231,7 +31251,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SeekRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - uint64_t position; + uint64_t position = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SeekRequest @@ -31368,16 +31388,16 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::PlaybackState::TypeInfo::DecodableType playbackState; - Attributes::StartTime::TypeInfo::DecodableType startTime; - Attributes::Duration::TypeInfo::DecodableType duration; + Attributes::PlaybackState::TypeInfo::DecodableType playbackState = static_cast(0); + Attributes::StartTime::TypeInfo::DecodableType startTime = static_cast(0); + Attributes::Duration::TypeInfo::DecodableType duration = static_cast(0); Attributes::Position::TypeInfo::DecodableType position; - Attributes::PlaybackSpeed::TypeInfo::DecodableType playbackSpeed; - Attributes::SeekRangeEnd::TypeInfo::DecodableType seekRangeEnd; - Attributes::SeekRangeStart::TypeInfo::DecodableType seekRangeStart; + Attributes::PlaybackSpeed::TypeInfo::DecodableType playbackSpeed = static_cast(0); + Attributes::SeekRangeEnd::TypeInfo::DecodableType seekRangeEnd = static_cast(0); + Attributes::SeekRangeStart::TypeInfo::DecodableType seekRangeStart = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -31472,7 +31492,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SelectInputRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; } - uint8_t index; + uint8_t index = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31487,7 +31507,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SelectInputRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; } - uint8_t index; + uint8_t index = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SelectInputRequest @@ -31561,7 +31581,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RenameInputRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; } - uint8_t index; + uint8_t index = static_cast(0); chip::CharSpan name; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31577,7 +31597,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RenameInputRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; } - uint8_t index; + uint8_t index = static_cast(0); chip::CharSpan name; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -31657,10 +31677,10 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::MediaInputList::TypeInfo::DecodableType mediaInputList; - Attributes::CurrentMediaInput::TypeInfo::DecodableType currentMediaInput; + Attributes::CurrentMediaInput::TypeInfo::DecodableType currentMediaInput = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -31756,8 +31776,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -31898,7 +31918,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SendKeyRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::KeypadInput::Id; } - CecKeyCode keyCode; + CecKeyCode keyCode = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31913,7 +31933,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SendKeyRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::KeypadInput::Id; } - CecKeyCode keyCode; + CecKeyCode keyCode = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SendKeyRequest @@ -31930,7 +31950,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SendKeyResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::KeypadInput::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -31945,7 +31965,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SendKeyResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::KeypadInput::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SendKeyResponse @@ -31999,8 +32019,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -32232,7 +32252,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::LaunchContentRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ContentLauncher::Id; } - bool autoPlay; + bool autoPlay = static_cast(0); chip::CharSpan data; DataModel::List search; @@ -32249,7 +32269,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::LaunchContentRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ContentLauncher::Id; } - bool autoPlay; + bool autoPlay = static_cast(0); chip::CharSpan data; DataModel::DecodableList search; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -32307,7 +32327,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::LaunchResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ContentLauncher::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32323,7 +32343,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::LaunchResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ContentLauncher::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); chip::CharSpan data; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -32402,10 +32422,10 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AcceptHeaderList::TypeInfo::DecodableType acceptHeaderList; - Attributes::SupportedStreamingProtocols::TypeInfo::DecodableType supportedStreamingProtocols; + Attributes::SupportedStreamingProtocols::TypeInfo::DecodableType supportedStreamingProtocols = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -32482,7 +32502,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SelectOutputRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::AudioOutput::Id; } - uint8_t index; + uint8_t index = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32497,7 +32517,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SelectOutputRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::AudioOutput::Id; } - uint8_t index; + uint8_t index = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SelectOutputRequest @@ -32515,7 +32535,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::RenameOutputRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::AudioOutput::Id; } - uint8_t index; + uint8_t index = static_cast(0); chip::CharSpan name; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32531,7 +32551,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::RenameOutputRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::AudioOutput::Id; } - uint8_t index; + uint8_t index = static_cast(0); chip::CharSpan name; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -32611,10 +32631,10 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AudioOutputList::TypeInfo::DecodableType audioOutputList; - Attributes::CurrentAudioOutput::TypeInfo::DecodableType currentAudioOutput; + Attributes::CurrentAudioOutput::TypeInfo::DecodableType currentAudioOutput = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -32823,7 +32843,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::LauncherResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplicationLauncher::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -32839,7 +32859,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::LauncherResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplicationLauncher::Id; } - StatusEnum status; + StatusEnum status = static_cast(0); chip::CharSpan data; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -32920,8 +32940,8 @@ struct TypeInfo Attributes::ApplicationLauncherList::TypeInfo::DecodableType applicationLauncherList; Attributes::ApplicationLauncherApp::TypeInfo::DecodableType applicationLauncherApp; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -33103,16 +33123,16 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::VendorName::TypeInfo::DecodableType vendorName; - Attributes::VendorId::TypeInfo::DecodableType vendorId; + Attributes::VendorId::TypeInfo::DecodableType vendorId = static_cast(0); Attributes::ApplicationName::TypeInfo::DecodableType applicationName; - Attributes::ProductId::TypeInfo::DecodableType productId; + Attributes::ProductId::TypeInfo::DecodableType productId = static_cast(0); Attributes::ApplicationApp::TypeInfo::DecodableType applicationApp; - Attributes::ApplicationStatus::TypeInfo::DecodableType applicationStatus; + Attributes::ApplicationStatus::TypeInfo::DecodableType applicationStatus = static_cast(0); Attributes::ApplicationVersion::TypeInfo::DecodableType applicationVersion; Attributes::AllowedVendorList::TypeInfo::DecodableType allowedVendorList; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -33322,8 +33342,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -33747,7 +33767,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestSpecificResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t returnValue; + uint8_t returnValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -33762,7 +33782,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestSpecificResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t returnValue; + uint8_t returnValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestSpecificResponse @@ -33807,7 +33827,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestAddArgumentsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t returnValue; + uint8_t returnValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -33822,7 +33842,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestAddArgumentsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t returnValue; + uint8_t returnValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestAddArgumentsResponse @@ -33867,7 +33887,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool returnValue; + bool returnValue = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -33882,7 +33902,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool returnValue; + bool returnValue = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestSimpleArgumentResponse @@ -33936,8 +33956,8 @@ struct Type DataModel::List arg2; DataModel::List arg3; DataModel::List arg4; - SimpleEnum arg5; - bool arg6; + SimpleEnum arg5 = static_cast(0); + bool arg6 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -33956,8 +33976,8 @@ struct DecodableType DataModel::DecodableList arg2; DataModel::DecodableList arg3; DataModel::DecodableList arg4; - SimpleEnum arg5; - bool arg6; + SimpleEnum arg5 = static_cast(0); + bool arg6 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestStructArrayArgumentResponse @@ -33975,8 +33995,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestAddArguments::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t arg1; - uint8_t arg2; + uint8_t arg1 = static_cast(0); + uint8_t arg2 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -33991,8 +34011,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestAddArguments::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t arg1; - uint8_t arg2; + uint8_t arg1 = static_cast(0); + uint8_t arg2 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestAddArguments @@ -34041,7 +34061,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool arg1; + bool arg1 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34056,7 +34076,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestSimpleArgumentRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool arg1; + bool arg1 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestSimpleArgumentRequest @@ -34074,8 +34094,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestEnumsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - chip::VendorId arg1; - SimpleEnum arg2; + chip::VendorId arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34090,8 +34110,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestEnumsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - chip::VendorId arg1; - SimpleEnum arg2; + chip::VendorId arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestEnumsResponse @@ -34117,8 +34137,8 @@ struct Type DataModel::List arg2; DataModel::List arg3; DataModel::List arg4; - SimpleEnum arg5; - bool arg6; + SimpleEnum arg5 = static_cast(0); + bool arg6 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34137,8 +34157,8 @@ struct DecodableType DataModel::DecodableList arg2; DataModel::DecodableList arg3; DataModel::DecodableList arg4; - SimpleEnum arg5; - bool arg6; + SimpleEnum arg5 = static_cast(0); + bool arg6 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestStructArrayArgumentRequest @@ -34158,7 +34178,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool wasPresent; + bool wasPresent = static_cast(0); Optional wasNull; Optional value; Optional> originalValue; @@ -34176,7 +34196,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestNullableOptionalResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool wasPresent; + bool wasPresent = static_cast(0); Optional wasNull; Optional value; Optional> originalValue; @@ -34255,32 +34275,32 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool nullableIntWasNull; + bool nullableIntWasNull = static_cast(0); Optional nullableIntValue; - bool optionalIntWasPresent; + bool optionalIntWasPresent = static_cast(0); Optional optionalIntValue; - bool nullableOptionalIntWasPresent; + bool nullableOptionalIntWasPresent = static_cast(0); Optional nullableOptionalIntWasNull; Optional nullableOptionalIntValue; - bool nullableStringWasNull; + bool nullableStringWasNull = static_cast(0); Optional nullableStringValue; - bool optionalStringWasPresent; + bool optionalStringWasPresent = static_cast(0); Optional optionalStringValue; - bool nullableOptionalStringWasPresent; + bool nullableOptionalStringWasPresent = static_cast(0); Optional nullableOptionalStringWasNull; Optional nullableOptionalStringValue; - bool nullableStructWasNull; + bool nullableStructWasNull = static_cast(0); Optional nullableStructValue; - bool optionalStructWasPresent; + bool optionalStructWasPresent = static_cast(0); Optional optionalStructValue; - bool nullableOptionalStructWasPresent; + bool nullableOptionalStructWasPresent = static_cast(0); Optional nullableOptionalStructWasNull; Optional nullableOptionalStructValue; - bool nullableListWasNull; + bool nullableListWasNull = static_cast(0); Optional> nullableListValue; - bool optionalListWasPresent; + bool optionalListWasPresent = static_cast(0); Optional> optionalListValue; - bool nullableOptionalListWasPresent; + bool nullableOptionalListWasPresent = static_cast(0); Optional nullableOptionalListWasNull; Optional> nullableOptionalListValue; @@ -34297,32 +34317,32 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestComplexNullableOptionalResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool nullableIntWasNull; + bool nullableIntWasNull = static_cast(0); Optional nullableIntValue; - bool optionalIntWasPresent; + bool optionalIntWasPresent = static_cast(0); Optional optionalIntValue; - bool nullableOptionalIntWasPresent; + bool nullableOptionalIntWasPresent = static_cast(0); Optional nullableOptionalIntWasNull; Optional nullableOptionalIntValue; - bool nullableStringWasNull; + bool nullableStringWasNull = static_cast(0); Optional nullableStringValue; - bool optionalStringWasPresent; + bool optionalStringWasPresent = static_cast(0); Optional optionalStringValue; - bool nullableOptionalStringWasPresent; + bool nullableOptionalStringWasPresent = static_cast(0); Optional nullableOptionalStringWasNull; Optional nullableOptionalStringValue; - bool nullableStructWasNull; + bool nullableStructWasNull = static_cast(0); Optional nullableStructValue; - bool optionalStructWasPresent; + bool optionalStructWasPresent = static_cast(0); Optional optionalStructValue; - bool nullableOptionalStructWasPresent; + bool nullableOptionalStructWasPresent = static_cast(0); Optional nullableOptionalStructWasNull; Optional nullableOptionalStructValue; - bool nullableListWasNull; + bool nullableListWasNull = static_cast(0); Optional> nullableListValue; - bool optionalListWasPresent; + bool optionalListWasPresent = static_cast(0); Optional> optionalListValue; - bool nullableOptionalListWasPresent; + bool nullableOptionalListWasPresent = static_cast(0); Optional nullableOptionalListWasNull; Optional> nullableOptionalListValue; CHIP_ERROR Decode(TLV::TLVReader & reader); @@ -34373,7 +34393,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::BooleanResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool value; + bool value = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34388,7 +34408,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::BooleanResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - bool value; + bool value = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace BooleanResponse @@ -34501,7 +34521,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint64_t value; + uint64_t value = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34516,7 +34536,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint64_t value; + uint64_t value = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestEmitTestEventResponse @@ -34630,8 +34650,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestEnumsRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - chip::VendorId arg1; - SimpleEnum arg2; + chip::VendorId arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34646,8 +34666,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestEnumsRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - chip::VendorId arg1; - SimpleEnum arg2; + chip::VendorId arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestEnumsRequest @@ -34855,9 +34875,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t arg1; - SimpleEnum arg2; - bool arg3; + uint8_t arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + bool arg3 = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -34872,9 +34892,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::TestEmitTestEventRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t arg1; - SimpleEnum arg2; - bool arg3; + uint8_t arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + bool arg3 = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace TestEmitTestEventRequest @@ -35868,31 +35888,31 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::Boolean::TypeInfo::DecodableType boolean; - Attributes::Bitmap8::TypeInfo::DecodableType bitmap8; - Attributes::Bitmap16::TypeInfo::DecodableType bitmap16; - Attributes::Bitmap32::TypeInfo::DecodableType bitmap32; - Attributes::Bitmap64::TypeInfo::DecodableType bitmap64; - Attributes::Int8u::TypeInfo::DecodableType int8u; - Attributes::Int16u::TypeInfo::DecodableType int16u; - Attributes::Int24u::TypeInfo::DecodableType int24u; - Attributes::Int32u::TypeInfo::DecodableType int32u; - Attributes::Int40u::TypeInfo::DecodableType int40u; - Attributes::Int48u::TypeInfo::DecodableType int48u; - Attributes::Int56u::TypeInfo::DecodableType int56u; - Attributes::Int64u::TypeInfo::DecodableType int64u; - Attributes::Int8s::TypeInfo::DecodableType int8s; - Attributes::Int16s::TypeInfo::DecodableType int16s; - Attributes::Int24s::TypeInfo::DecodableType int24s; - Attributes::Int32s::TypeInfo::DecodableType int32s; - Attributes::Int40s::TypeInfo::DecodableType int40s; - Attributes::Int48s::TypeInfo::DecodableType int48s; - Attributes::Int56s::TypeInfo::DecodableType int56s; - Attributes::Int64s::TypeInfo::DecodableType int64s; - Attributes::Enum8::TypeInfo::DecodableType enum8; - Attributes::Enum16::TypeInfo::DecodableType enum16; - Attributes::FloatSingle::TypeInfo::DecodableType floatSingle; - Attributes::FloatDouble::TypeInfo::DecodableType floatDouble; + Attributes::Boolean::TypeInfo::DecodableType boolean = static_cast(0); + Attributes::Bitmap8::TypeInfo::DecodableType bitmap8 = static_cast(0); + Attributes::Bitmap16::TypeInfo::DecodableType bitmap16 = static_cast(0); + Attributes::Bitmap32::TypeInfo::DecodableType bitmap32 = static_cast(0); + Attributes::Bitmap64::TypeInfo::DecodableType bitmap64 = static_cast(0); + Attributes::Int8u::TypeInfo::DecodableType int8u = static_cast(0); + Attributes::Int16u::TypeInfo::DecodableType int16u = static_cast(0); + Attributes::Int24u::TypeInfo::DecodableType int24u = static_cast(0); + Attributes::Int32u::TypeInfo::DecodableType int32u = static_cast(0); + Attributes::Int40u::TypeInfo::DecodableType int40u = static_cast(0); + Attributes::Int48u::TypeInfo::DecodableType int48u = static_cast(0); + Attributes::Int56u::TypeInfo::DecodableType int56u = static_cast(0); + Attributes::Int64u::TypeInfo::DecodableType int64u = static_cast(0); + Attributes::Int8s::TypeInfo::DecodableType int8s = static_cast(0); + Attributes::Int16s::TypeInfo::DecodableType int16s = static_cast(0); + Attributes::Int24s::TypeInfo::DecodableType int24s = static_cast(0); + Attributes::Int32s::TypeInfo::DecodableType int32s = static_cast(0); + Attributes::Int40s::TypeInfo::DecodableType int40s = static_cast(0); + Attributes::Int48s::TypeInfo::DecodableType int48s = static_cast(0); + Attributes::Int56s::TypeInfo::DecodableType int56s = static_cast(0); + Attributes::Int64s::TypeInfo::DecodableType int64s = static_cast(0); + Attributes::Enum8::TypeInfo::DecodableType enum8 = static_cast(0); + Attributes::Enum16::TypeInfo::DecodableType enum16 = static_cast(0); + Attributes::FloatSingle::TypeInfo::DecodableType floatSingle = static_cast(0); + Attributes::FloatDouble::TypeInfo::DecodableType floatDouble = static_cast(0); Attributes::OctetString::TypeInfo::DecodableType octetString; Attributes::ListInt8u::TypeInfo::DecodableType listInt8u; Attributes::ListOctetString::TypeInfo::DecodableType listOctetString; @@ -35900,19 +35920,19 @@ struct TypeInfo Attributes::LongOctetString::TypeInfo::DecodableType longOctetString; Attributes::CharString::TypeInfo::DecodableType charString; Attributes::LongCharString::TypeInfo::DecodableType longCharString; - Attributes::EpochUs::TypeInfo::DecodableType epochUs; - Attributes::EpochS::TypeInfo::DecodableType epochS; - Attributes::VendorId::TypeInfo::DecodableType vendorId; + Attributes::EpochUs::TypeInfo::DecodableType epochUs = static_cast(0); + Attributes::EpochS::TypeInfo::DecodableType epochS = static_cast(0); + Attributes::VendorId::TypeInfo::DecodableType vendorId = static_cast(0); Attributes::ListNullablesAndOptionalsStruct::TypeInfo::DecodableType listNullablesAndOptionalsStruct; - Attributes::EnumAttr::TypeInfo::DecodableType enumAttr; + Attributes::EnumAttr::TypeInfo::DecodableType enumAttr = static_cast(0); Attributes::StructAttr::TypeInfo::DecodableType structAttr; - Attributes::RangeRestrictedInt8u::TypeInfo::DecodableType rangeRestrictedInt8u; - Attributes::RangeRestrictedInt8s::TypeInfo::DecodableType rangeRestrictedInt8s; - Attributes::RangeRestrictedInt16u::TypeInfo::DecodableType rangeRestrictedInt16u; - Attributes::RangeRestrictedInt16s::TypeInfo::DecodableType rangeRestrictedInt16s; + Attributes::RangeRestrictedInt8u::TypeInfo::DecodableType rangeRestrictedInt8u = static_cast(0); + Attributes::RangeRestrictedInt8s::TypeInfo::DecodableType rangeRestrictedInt8s = static_cast(0); + Attributes::RangeRestrictedInt16u::TypeInfo::DecodableType rangeRestrictedInt16u = static_cast(0); + Attributes::RangeRestrictedInt16s::TypeInfo::DecodableType rangeRestrictedInt16s = static_cast(0); Attributes::ListLongOctetString::TypeInfo::DecodableType listLongOctetString; - Attributes::TimedWriteBoolean::TypeInfo::DecodableType timedWriteBoolean; - Attributes::Unsupported::TypeInfo::DecodableType unsupported; + Attributes::TimedWriteBoolean::TypeInfo::DecodableType timedWriteBoolean = static_cast(0); + Attributes::Unsupported::TypeInfo::DecodableType unsupported = static_cast(0); Attributes::NullableBoolean::TypeInfo::DecodableType nullableBoolean; Attributes::NullableBitmap8::TypeInfo::DecodableType nullableBitmap8; Attributes::NullableBitmap16::TypeInfo::DecodableType nullableBitmap16; @@ -35947,8 +35967,8 @@ struct TypeInfo Attributes::NullableRangeRestrictedInt16u::TypeInfo::DecodableType nullableRangeRestrictedInt16u; Attributes::NullableRangeRestrictedInt16s::TypeInfo::DecodableType nullableRangeRestrictedInt16s; Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -35974,9 +35994,9 @@ struct Type static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t arg1; - SimpleEnum arg2; - bool arg3; + uint8_t arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + bool arg3 = static_cast(0); Structs::SimpleStruct::Type arg4; DataModel::List arg5; DataModel::List arg6; @@ -35991,9 +36011,9 @@ struct DecodableType static constexpr EventId GetEventId() { return kEventId; } static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } - uint8_t arg1; - SimpleEnum arg2; - bool arg3; + uint8_t arg1 = static_cast(0); + SimpleEnum arg2 = static_cast(0); + bool arg3 = static_cast(0); Structs::SimpleStruct::DecodableType arg4; DataModel::DecodableList arg5; DataModel::DecodableList arg6; @@ -36199,12 +36219,13 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::DisplayMessage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t messageId; - chip::BitFlags messageControl; - uint32_t startTime; - uint16_t durationInMinutes; + uint32_t messageId = static_cast(0); + chip::BitFlags messageControl = static_cast>(0); + uint32_t startTime = static_cast(0); + uint16_t durationInMinutes = static_cast(0); chip::CharSpan message; - chip::BitFlags optionalExtendedMessageControl; + chip::BitFlags optionalExtendedMessageControl = + static_cast>(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -36219,12 +36240,13 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::DisplayMessage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t messageId; - chip::BitFlags messageControl; - uint32_t startTime; - uint16_t durationInMinutes; + uint32_t messageId = static_cast(0); + chip::BitFlags messageControl = static_cast>(0); + uint32_t startTime = static_cast(0); + uint16_t durationInMinutes = static_cast(0); chip::CharSpan message; - chip::BitFlags optionalExtendedMessageControl; + chip::BitFlags optionalExtendedMessageControl = + static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace DisplayMessage @@ -36270,8 +36292,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::CancelMessage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t messageId; - chip::BitFlags messageControl; + uint32_t messageId = static_cast(0); + chip::BitFlags messageControl = static_cast>(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -36286,8 +36308,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::CancelMessage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t messageId; - chip::BitFlags messageControl; + uint32_t messageId = static_cast(0); + chip::BitFlags messageControl = static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace CancelMessage @@ -36307,9 +36329,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::MessageConfirmation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t messageId; - uint32_t confirmationTime; - uint8_t messageConfirmationControl; + uint32_t messageId = static_cast(0); + uint32_t confirmationTime = static_cast(0); + uint8_t messageConfirmationControl = static_cast(0); chip::ByteSpan messageResponse; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -36325,9 +36347,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::MessageConfirmation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t messageId; - uint32_t confirmationTime; - uint8_t messageConfirmationControl; + uint32_t messageId = static_cast(0); + uint32_t confirmationTime = static_cast(0); + uint8_t messageConfirmationControl = static_cast(0); chip::ByteSpan messageResponse; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -36350,12 +36372,13 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::DisplayProtectedMessage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t messageId; - chip::BitFlags messageControl; - uint32_t startTime; - uint16_t durationInMinutes; + uint32_t messageId = static_cast(0); + chip::BitFlags messageControl = static_cast>(0); + uint32_t startTime = static_cast(0); + uint16_t durationInMinutes = static_cast(0); chip::CharSpan message; - chip::BitFlags optionalExtendedMessageControl; + chip::BitFlags optionalExtendedMessageControl = + static_cast>(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -36370,12 +36393,13 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::DisplayProtectedMessage::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t messageId; - chip::BitFlags messageControl; - uint32_t startTime; - uint16_t durationInMinutes; + uint32_t messageId = static_cast(0); + chip::BitFlags messageControl = static_cast>(0); + uint32_t startTime = static_cast(0); + uint16_t durationInMinutes = static_cast(0); chip::CharSpan message; - chip::BitFlags optionalExtendedMessageControl; + chip::BitFlags optionalExtendedMessageControl = + static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace DisplayProtectedMessage @@ -36392,7 +36416,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetMessageCancellation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t earliestImplementationTime; + uint32_t earliestImplementationTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -36407,7 +36431,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetMessageCancellation::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t earliestImplementationTime; + uint32_t earliestImplementationTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetMessageCancellation @@ -36424,7 +36448,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::CancelAllMessages::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t implementationDateTime; + uint32_t implementationDateTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -36439,7 +36463,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::CancelAllMessages::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } - uint32_t implementationDateTime; + uint32_t implementationDateTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace CancelAllMessages @@ -36493,8 +36517,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -36692,21 +36716,21 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::BasicIdentification::TypeInfo::DecodableType basicIdentification; + Attributes::BasicIdentification::TypeInfo::DecodableType basicIdentification = static_cast(0); Attributes::CompanyName::TypeInfo::DecodableType companyName; - Attributes::CompanyId::TypeInfo::DecodableType companyId; + Attributes::CompanyId::TypeInfo::DecodableType companyId = static_cast(0); Attributes::BrandName::TypeInfo::DecodableType brandName; - Attributes::BrandId::TypeInfo::DecodableType brandId; + Attributes::BrandId::TypeInfo::DecodableType brandId = static_cast(0); Attributes::Model::TypeInfo::DecodableType model; Attributes::PartNumber::TypeInfo::DecodableType partNumber; Attributes::ProductRevision::TypeInfo::DecodableType productRevision; Attributes::SoftwareRevision::TypeInfo::DecodableType softwareRevision; Attributes::ProductTypeName::TypeInfo::DecodableType productTypeName; - Attributes::ProductTypeId::TypeInfo::DecodableType productTypeId; - Attributes::CecedSpecificationVersion::TypeInfo::DecodableType cecedSpecificationVersion; + Attributes::ProductTypeId::TypeInfo::DecodableType productTypeId = static_cast(0); + Attributes::CecedSpecificationVersion::TypeInfo::DecodableType cecedSpecificationVersion = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -36905,8 +36929,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::CompanyName::TypeInfo::DecodableType companyName; - Attributes::MeterTypeId::TypeInfo::DecodableType meterTypeId; - Attributes::DataQualityId::TypeInfo::DecodableType dataQualityId; + Attributes::MeterTypeId::TypeInfo::DecodableType meterTypeId = static_cast(0); + Attributes::DataQualityId::TypeInfo::DecodableType dataQualityId = static_cast(0); Attributes::CustomerName::TypeInfo::DecodableType customerName; Attributes::Model::TypeInfo::DecodableType model; Attributes::PartNumber::TypeInfo::DecodableType partNumber; @@ -36914,11 +36938,11 @@ struct TypeInfo Attributes::SoftwareRevision::TypeInfo::DecodableType softwareRevision; Attributes::UtilityName::TypeInfo::DecodableType utilityName; Attributes::Pod::TypeInfo::DecodableType pod; - Attributes::AvailablePower::TypeInfo::DecodableType availablePower; - Attributes::PowerThreshold::TypeInfo::DecodableType powerThreshold; + Attributes::AvailablePower::TypeInfo::DecodableType availablePower = static_cast(0); + Attributes::PowerThreshold::TypeInfo::DecodableType powerThreshold = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -37017,7 +37041,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetAlertsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - chip::BitFlags alertsCount; + chip::BitFlags alertsCount = static_cast>(0); DataModel::List> alertStructures; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37033,7 +37057,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetAlertsResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - chip::BitFlags alertsCount; + chip::BitFlags alertsCount = static_cast>(0); DataModel::DecodableList> alertStructures; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -37052,7 +37076,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::AlertsNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - chip::BitFlags alertsCount; + chip::BitFlags alertsCount = static_cast>(0); DataModel::List> alertStructures; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37068,7 +37092,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::AlertsNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - chip::BitFlags alertsCount; + chip::BitFlags alertsCount = static_cast>(0); DataModel::DecodableList> alertStructures; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -37087,8 +37111,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::EventsNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - uint8_t eventHeader; - EventIdentification eventId; + uint8_t eventHeader = static_cast(0); + EventIdentification eventId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37103,8 +37127,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::EventsNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } - uint8_t eventHeader; - EventIdentification eventId; + uint8_t eventHeader = static_cast(0); + EventIdentification eventId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace EventsNotification @@ -37158,8 +37182,8 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -37218,9 +37242,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::LogNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint32_t timeStamp; - uint32_t logId; - uint32_t logLength; + uint32_t timeStamp = static_cast(0); + uint32_t logId = static_cast(0); + uint32_t logLength = static_cast(0); DataModel::List logPayload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37236,9 +37260,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::LogNotification::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint32_t timeStamp; - uint32_t logId; - uint32_t logLength; + uint32_t timeStamp = static_cast(0); + uint32_t logId = static_cast(0); + uint32_t logLength = static_cast(0); DataModel::DecodableList logPayload; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -37256,7 +37280,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::LogRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint32_t logId; + uint32_t logId = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37271,7 +37295,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::LogRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint32_t logId; + uint32_t logId = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace LogRequest @@ -37291,9 +37315,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::LogResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint32_t timeStamp; - uint32_t logId; - uint32_t logLength; + uint32_t timeStamp = static_cast(0); + uint32_t logId = static_cast(0); + uint32_t logLength = static_cast(0); DataModel::List logPayload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37309,9 +37333,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::LogResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint32_t timeStamp; - uint32_t logId; - uint32_t logLength; + uint32_t timeStamp = static_cast(0); + uint32_t logId = static_cast(0); + uint32_t logLength = static_cast(0); DataModel::DecodableList logPayload; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -37358,7 +37382,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::LogQueueResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint8_t logQueueSize; + uint8_t logQueueSize = static_cast(0); DataModel::List logIds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37374,7 +37398,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::LogQueueResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint8_t logQueueSize; + uint8_t logQueueSize = static_cast(0); DataModel::DecodableList logIds; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -37393,7 +37417,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::StatisticsAvailable::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint8_t logQueueSize; + uint8_t logQueueSize = static_cast(0); DataModel::List logIds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37409,7 +37433,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::StatisticsAvailable::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } - uint8_t logQueueSize; + uint8_t logQueueSize = static_cast(0); DataModel::DecodableList logIds; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -37487,11 +37511,11 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::LogMaxSize::TypeInfo::DecodableType logMaxSize; - Attributes::LogQueueMaxSize::TypeInfo::DecodableType logQueueMaxSize; + Attributes::LogMaxSize::TypeInfo::DecodableType logMaxSize = static_cast(0); + Attributes::LogQueueMaxSize::TypeInfo::DecodableType logQueueMaxSize = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes @@ -37540,9 +37564,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoResponseCommand::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - uint8_t profileCount; - uint8_t profileIntervalPeriod; - uint8_t maxNumberOfIntervals; + uint8_t profileCount = static_cast(0); + uint8_t profileIntervalPeriod = static_cast(0); + uint8_t maxNumberOfIntervals = static_cast(0); DataModel::List listOfAttributes; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37558,9 +37582,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetProfileInfoResponseCommand::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - uint8_t profileCount; - uint8_t profileIntervalPeriod; - uint8_t maxNumberOfIntervals; + uint8_t profileCount = static_cast(0); + uint8_t profileIntervalPeriod = static_cast(0); + uint8_t maxNumberOfIntervals = static_cast(0); DataModel::DecodableList listOfAttributes; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -37611,11 +37635,11 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileResponseCommand::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - uint32_t startTime; - uint8_t status; - uint8_t profileIntervalPeriod; - uint8_t numberOfIntervalsDelivered; - uint16_t attributeId; + uint32_t startTime = static_cast(0); + uint8_t status = static_cast(0); + uint8_t profileIntervalPeriod = static_cast(0); + uint8_t numberOfIntervalsDelivered = static_cast(0); + uint16_t attributeId = static_cast(0); DataModel::List intervals; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37631,11 +37655,11 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileResponseCommand::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - uint32_t startTime; - uint8_t status; - uint8_t profileIntervalPeriod; - uint8_t numberOfIntervalsDelivered; - uint16_t attributeId; + uint32_t startTime = static_cast(0); + uint8_t status = static_cast(0); + uint8_t profileIntervalPeriod = static_cast(0); + uint8_t numberOfIntervalsDelivered = static_cast(0); + uint16_t attributeId = static_cast(0); DataModel::DecodableList intervals; CHIP_ERROR Decode(TLV::TLVReader & reader); }; @@ -37655,9 +37679,9 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileCommand::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - uint16_t attributeId; - uint32_t startTime; - uint8_t numberOfIntervals; + uint16_t attributeId = static_cast(0); + uint32_t startTime = static_cast(0); + uint8_t numberOfIntervals = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -37672,9 +37696,9 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetMeasurementProfileCommand::Id; } static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } - uint16_t attributeId; - uint32_t startTime; - uint8_t numberOfIntervals; + uint16_t attributeId = static_cast(0); + uint32_t startTime = static_cast(0); + uint8_t numberOfIntervals = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetMeasurementProfileCommand @@ -39263,137 +39287,154 @@ struct TypeInfo CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); - Attributes::MeasurementType::TypeInfo::DecodableType measurementType; - Attributes::DcVoltage::TypeInfo::DecodableType dcVoltage; - Attributes::DcVoltageMin::TypeInfo::DecodableType dcVoltageMin; - Attributes::DcVoltageMax::TypeInfo::DecodableType dcVoltageMax; - Attributes::DcCurrent::TypeInfo::DecodableType dcCurrent; - Attributes::DcCurrentMin::TypeInfo::DecodableType dcCurrentMin; - Attributes::DcCurrentMax::TypeInfo::DecodableType dcCurrentMax; - Attributes::DcPower::TypeInfo::DecodableType dcPower; - Attributes::DcPowerMin::TypeInfo::DecodableType dcPowerMin; - Attributes::DcPowerMax::TypeInfo::DecodableType dcPowerMax; - Attributes::DcVoltageMultiplier::TypeInfo::DecodableType dcVoltageMultiplier; - Attributes::DcVoltageDivisor::TypeInfo::DecodableType dcVoltageDivisor; - Attributes::DcCurrentMultiplier::TypeInfo::DecodableType dcCurrentMultiplier; - Attributes::DcCurrentDivisor::TypeInfo::DecodableType dcCurrentDivisor; - Attributes::DcPowerMultiplier::TypeInfo::DecodableType dcPowerMultiplier; - Attributes::DcPowerDivisor::TypeInfo::DecodableType dcPowerDivisor; - Attributes::AcFrequency::TypeInfo::DecodableType acFrequency; - Attributes::AcFrequencyMin::TypeInfo::DecodableType acFrequencyMin; - Attributes::AcFrequencyMax::TypeInfo::DecodableType acFrequencyMax; - Attributes::NeutralCurrent::TypeInfo::DecodableType neutralCurrent; - Attributes::TotalActivePower::TypeInfo::DecodableType totalActivePower; - Attributes::TotalReactivePower::TypeInfo::DecodableType totalReactivePower; - Attributes::TotalApparentPower::TypeInfo::DecodableType totalApparentPower; - Attributes::Measured1stHarmonicCurrent::TypeInfo::DecodableType measured1stHarmonicCurrent; - Attributes::Measured3rdHarmonicCurrent::TypeInfo::DecodableType measured3rdHarmonicCurrent; - Attributes::Measured5thHarmonicCurrent::TypeInfo::DecodableType measured5thHarmonicCurrent; - Attributes::Measured7thHarmonicCurrent::TypeInfo::DecodableType measured7thHarmonicCurrent; - Attributes::Measured9thHarmonicCurrent::TypeInfo::DecodableType measured9thHarmonicCurrent; - Attributes::Measured11thHarmonicCurrent::TypeInfo::DecodableType measured11thHarmonicCurrent; - Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo::DecodableType measuredPhase1stHarmonicCurrent; - Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo::DecodableType measuredPhase3rdHarmonicCurrent; - Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo::DecodableType measuredPhase5thHarmonicCurrent; - Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo::DecodableType measuredPhase7thHarmonicCurrent; - Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo::DecodableType measuredPhase9thHarmonicCurrent; - Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo::DecodableType measuredPhase11thHarmonicCurrent; - Attributes::AcFrequencyMultiplier::TypeInfo::DecodableType acFrequencyMultiplier; - Attributes::AcFrequencyDivisor::TypeInfo::DecodableType acFrequencyDivisor; - Attributes::PowerMultiplier::TypeInfo::DecodableType powerMultiplier; - Attributes::PowerDivisor::TypeInfo::DecodableType powerDivisor; - Attributes::HarmonicCurrentMultiplier::TypeInfo::DecodableType harmonicCurrentMultiplier; - Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo::DecodableType phaseHarmonicCurrentMultiplier; - Attributes::InstantaneousVoltage::TypeInfo::DecodableType instantaneousVoltage; - Attributes::InstantaneousLineCurrent::TypeInfo::DecodableType instantaneousLineCurrent; - Attributes::InstantaneousActiveCurrent::TypeInfo::DecodableType instantaneousActiveCurrent; - Attributes::InstantaneousReactiveCurrent::TypeInfo::DecodableType instantaneousReactiveCurrent; - Attributes::InstantaneousPower::TypeInfo::DecodableType instantaneousPower; - Attributes::RmsVoltage::TypeInfo::DecodableType rmsVoltage; - Attributes::RmsVoltageMin::TypeInfo::DecodableType rmsVoltageMin; - Attributes::RmsVoltageMax::TypeInfo::DecodableType rmsVoltageMax; - Attributes::RmsCurrent::TypeInfo::DecodableType rmsCurrent; - Attributes::RmsCurrentMin::TypeInfo::DecodableType rmsCurrentMin; - Attributes::RmsCurrentMax::TypeInfo::DecodableType rmsCurrentMax; - Attributes::ActivePower::TypeInfo::DecodableType activePower; - Attributes::ActivePowerMin::TypeInfo::DecodableType activePowerMin; - Attributes::ActivePowerMax::TypeInfo::DecodableType activePowerMax; - Attributes::ReactivePower::TypeInfo::DecodableType reactivePower; - Attributes::ApparentPower::TypeInfo::DecodableType apparentPower; - Attributes::PowerFactor::TypeInfo::DecodableType powerFactor; - Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriod; - Attributes::AverageRmsUnderVoltageCounter::TypeInfo::DecodableType averageRmsUnderVoltageCounter; - Attributes::RmsExtremeOverVoltagePeriod::TypeInfo::DecodableType rmsExtremeOverVoltagePeriod; - Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriod; - Attributes::RmsVoltageSagPeriod::TypeInfo::DecodableType rmsVoltageSagPeriod; - Attributes::RmsVoltageSwellPeriod::TypeInfo::DecodableType rmsVoltageSwellPeriod; - Attributes::AcVoltageMultiplier::TypeInfo::DecodableType acVoltageMultiplier; - Attributes::AcVoltageDivisor::TypeInfo::DecodableType acVoltageDivisor; - Attributes::AcCurrentMultiplier::TypeInfo::DecodableType acCurrentMultiplier; - Attributes::AcCurrentDivisor::TypeInfo::DecodableType acCurrentDivisor; - Attributes::AcPowerMultiplier::TypeInfo::DecodableType acPowerMultiplier; - Attributes::AcPowerDivisor::TypeInfo::DecodableType acPowerDivisor; - Attributes::OverloadAlarmsMask::TypeInfo::DecodableType overloadAlarmsMask; - Attributes::VoltageOverload::TypeInfo::DecodableType voltageOverload; - Attributes::CurrentOverload::TypeInfo::DecodableType currentOverload; - Attributes::AcOverloadAlarmsMask::TypeInfo::DecodableType acOverloadAlarmsMask; - Attributes::AcVoltageOverload::TypeInfo::DecodableType acVoltageOverload; - Attributes::AcCurrentOverload::TypeInfo::DecodableType acCurrentOverload; - Attributes::AcActivePowerOverload::TypeInfo::DecodableType acActivePowerOverload; - Attributes::AcReactivePowerOverload::TypeInfo::DecodableType acReactivePowerOverload; - Attributes::AverageRmsOverVoltage::TypeInfo::DecodableType averageRmsOverVoltage; - Attributes::AverageRmsUnderVoltage::TypeInfo::DecodableType averageRmsUnderVoltage; - Attributes::RmsExtremeOverVoltage::TypeInfo::DecodableType rmsExtremeOverVoltage; - Attributes::RmsExtremeUnderVoltage::TypeInfo::DecodableType rmsExtremeUnderVoltage; - Attributes::RmsVoltageSag::TypeInfo::DecodableType rmsVoltageSag; - Attributes::RmsVoltageSwell::TypeInfo::DecodableType rmsVoltageSwell; - Attributes::LineCurrentPhaseB::TypeInfo::DecodableType lineCurrentPhaseB; - Attributes::ActiveCurrentPhaseB::TypeInfo::DecodableType activeCurrentPhaseB; - Attributes::ReactiveCurrentPhaseB::TypeInfo::DecodableType reactiveCurrentPhaseB; - Attributes::RmsVoltagePhaseB::TypeInfo::DecodableType rmsVoltagePhaseB; - Attributes::RmsVoltageMinPhaseB::TypeInfo::DecodableType rmsVoltageMinPhaseB; - Attributes::RmsVoltageMaxPhaseB::TypeInfo::DecodableType rmsVoltageMaxPhaseB; - Attributes::RmsCurrentPhaseB::TypeInfo::DecodableType rmsCurrentPhaseB; - Attributes::RmsCurrentMinPhaseB::TypeInfo::DecodableType rmsCurrentMinPhaseB; - Attributes::RmsCurrentMaxPhaseB::TypeInfo::DecodableType rmsCurrentMaxPhaseB; - Attributes::ActivePowerPhaseB::TypeInfo::DecodableType activePowerPhaseB; - Attributes::ActivePowerMinPhaseB::TypeInfo::DecodableType activePowerMinPhaseB; - Attributes::ActivePowerMaxPhaseB::TypeInfo::DecodableType activePowerMaxPhaseB; - Attributes::ReactivePowerPhaseB::TypeInfo::DecodableType reactivePowerPhaseB; - Attributes::ApparentPowerPhaseB::TypeInfo::DecodableType apparentPowerPhaseB; - Attributes::PowerFactorPhaseB::TypeInfo::DecodableType powerFactorPhaseB; - Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriodPhaseB; - Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo::DecodableType averageRmsOverVoltageCounterPhaseB; - Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo::DecodableType averageRmsUnderVoltageCounterPhaseB; - Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo::DecodableType rmsExtremeOverVoltagePeriodPhaseB; - Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriodPhaseB; - Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo::DecodableType rmsVoltageSagPeriodPhaseB; - Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo::DecodableType rmsVoltageSwellPeriodPhaseB; - Attributes::LineCurrentPhaseC::TypeInfo::DecodableType lineCurrentPhaseC; - Attributes::ActiveCurrentPhaseC::TypeInfo::DecodableType activeCurrentPhaseC; - Attributes::ReactiveCurrentPhaseC::TypeInfo::DecodableType reactiveCurrentPhaseC; - Attributes::RmsVoltagePhaseC::TypeInfo::DecodableType rmsVoltagePhaseC; - Attributes::RmsVoltageMinPhaseC::TypeInfo::DecodableType rmsVoltageMinPhaseC; - Attributes::RmsVoltageMaxPhaseC::TypeInfo::DecodableType rmsVoltageMaxPhaseC; - Attributes::RmsCurrentPhaseC::TypeInfo::DecodableType rmsCurrentPhaseC; - Attributes::RmsCurrentMinPhaseC::TypeInfo::DecodableType rmsCurrentMinPhaseC; - Attributes::RmsCurrentMaxPhaseC::TypeInfo::DecodableType rmsCurrentMaxPhaseC; - Attributes::ActivePowerPhaseC::TypeInfo::DecodableType activePowerPhaseC; - Attributes::ActivePowerMinPhaseC::TypeInfo::DecodableType activePowerMinPhaseC; - Attributes::ActivePowerMaxPhaseC::TypeInfo::DecodableType activePowerMaxPhaseC; - Attributes::ReactivePowerPhaseC::TypeInfo::DecodableType reactivePowerPhaseC; - Attributes::ApparentPowerPhaseC::TypeInfo::DecodableType apparentPowerPhaseC; - Attributes::PowerFactorPhaseC::TypeInfo::DecodableType powerFactorPhaseC; - Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriodPhaseC; - Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo::DecodableType averageRmsOverVoltageCounterPhaseC; - Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo::DecodableType averageRmsUnderVoltageCounterPhaseC; - Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo::DecodableType rmsExtremeOverVoltagePeriodPhaseC; - Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriodPhaseC; - Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo::DecodableType rmsVoltageSagPeriodPhaseC; - Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo::DecodableType rmsVoltageSwellPeriodPhaseC; + Attributes::MeasurementType::TypeInfo::DecodableType measurementType = static_cast(0); + Attributes::DcVoltage::TypeInfo::DecodableType dcVoltage = static_cast(0); + Attributes::DcVoltageMin::TypeInfo::DecodableType dcVoltageMin = static_cast(0); + Attributes::DcVoltageMax::TypeInfo::DecodableType dcVoltageMax = static_cast(0); + Attributes::DcCurrent::TypeInfo::DecodableType dcCurrent = static_cast(0); + Attributes::DcCurrentMin::TypeInfo::DecodableType dcCurrentMin = static_cast(0); + Attributes::DcCurrentMax::TypeInfo::DecodableType dcCurrentMax = static_cast(0); + Attributes::DcPower::TypeInfo::DecodableType dcPower = static_cast(0); + Attributes::DcPowerMin::TypeInfo::DecodableType dcPowerMin = static_cast(0); + Attributes::DcPowerMax::TypeInfo::DecodableType dcPowerMax = static_cast(0); + Attributes::DcVoltageMultiplier::TypeInfo::DecodableType dcVoltageMultiplier = static_cast(0); + Attributes::DcVoltageDivisor::TypeInfo::DecodableType dcVoltageDivisor = static_cast(0); + Attributes::DcCurrentMultiplier::TypeInfo::DecodableType dcCurrentMultiplier = static_cast(0); + Attributes::DcCurrentDivisor::TypeInfo::DecodableType dcCurrentDivisor = static_cast(0); + Attributes::DcPowerMultiplier::TypeInfo::DecodableType dcPowerMultiplier = static_cast(0); + Attributes::DcPowerDivisor::TypeInfo::DecodableType dcPowerDivisor = static_cast(0); + Attributes::AcFrequency::TypeInfo::DecodableType acFrequency = static_cast(0); + Attributes::AcFrequencyMin::TypeInfo::DecodableType acFrequencyMin = static_cast(0); + Attributes::AcFrequencyMax::TypeInfo::DecodableType acFrequencyMax = static_cast(0); + Attributes::NeutralCurrent::TypeInfo::DecodableType neutralCurrent = static_cast(0); + Attributes::TotalActivePower::TypeInfo::DecodableType totalActivePower = static_cast(0); + Attributes::TotalReactivePower::TypeInfo::DecodableType totalReactivePower = static_cast(0); + Attributes::TotalApparentPower::TypeInfo::DecodableType totalApparentPower = static_cast(0); + Attributes::Measured1stHarmonicCurrent::TypeInfo::DecodableType measured1stHarmonicCurrent = static_cast(0); + Attributes::Measured3rdHarmonicCurrent::TypeInfo::DecodableType measured3rdHarmonicCurrent = static_cast(0); + Attributes::Measured5thHarmonicCurrent::TypeInfo::DecodableType measured5thHarmonicCurrent = static_cast(0); + Attributes::Measured7thHarmonicCurrent::TypeInfo::DecodableType measured7thHarmonicCurrent = static_cast(0); + Attributes::Measured9thHarmonicCurrent::TypeInfo::DecodableType measured9thHarmonicCurrent = static_cast(0); + Attributes::Measured11thHarmonicCurrent::TypeInfo::DecodableType measured11thHarmonicCurrent = static_cast(0); + Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo::DecodableType measuredPhase1stHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo::DecodableType measuredPhase3rdHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo::DecodableType measuredPhase5thHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo::DecodableType measuredPhase7thHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo::DecodableType measuredPhase9thHarmonicCurrent = + static_cast(0); + Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo::DecodableType measuredPhase11thHarmonicCurrent = + static_cast(0); + Attributes::AcFrequencyMultiplier::TypeInfo::DecodableType acFrequencyMultiplier = static_cast(0); + Attributes::AcFrequencyDivisor::TypeInfo::DecodableType acFrequencyDivisor = static_cast(0); + Attributes::PowerMultiplier::TypeInfo::DecodableType powerMultiplier = static_cast(0); + Attributes::PowerDivisor::TypeInfo::DecodableType powerDivisor = static_cast(0); + Attributes::HarmonicCurrentMultiplier::TypeInfo::DecodableType harmonicCurrentMultiplier = static_cast(0); + Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo::DecodableType phaseHarmonicCurrentMultiplier = static_cast(0); + Attributes::InstantaneousVoltage::TypeInfo::DecodableType instantaneousVoltage = static_cast(0); + Attributes::InstantaneousLineCurrent::TypeInfo::DecodableType instantaneousLineCurrent = static_cast(0); + Attributes::InstantaneousActiveCurrent::TypeInfo::DecodableType instantaneousActiveCurrent = static_cast(0); + Attributes::InstantaneousReactiveCurrent::TypeInfo::DecodableType instantaneousReactiveCurrent = static_cast(0); + Attributes::InstantaneousPower::TypeInfo::DecodableType instantaneousPower = static_cast(0); + Attributes::RmsVoltage::TypeInfo::DecodableType rmsVoltage = static_cast(0); + Attributes::RmsVoltageMin::TypeInfo::DecodableType rmsVoltageMin = static_cast(0); + Attributes::RmsVoltageMax::TypeInfo::DecodableType rmsVoltageMax = static_cast(0); + Attributes::RmsCurrent::TypeInfo::DecodableType rmsCurrent = static_cast(0); + Attributes::RmsCurrentMin::TypeInfo::DecodableType rmsCurrentMin = static_cast(0); + Attributes::RmsCurrentMax::TypeInfo::DecodableType rmsCurrentMax = static_cast(0); + Attributes::ActivePower::TypeInfo::DecodableType activePower = static_cast(0); + Attributes::ActivePowerMin::TypeInfo::DecodableType activePowerMin = static_cast(0); + Attributes::ActivePowerMax::TypeInfo::DecodableType activePowerMax = static_cast(0); + Attributes::ReactivePower::TypeInfo::DecodableType reactivePower = static_cast(0); + Attributes::ApparentPower::TypeInfo::DecodableType apparentPower = static_cast(0); + Attributes::PowerFactor::TypeInfo::DecodableType powerFactor = static_cast(0); + Attributes::AverageRmsVoltageMeasurementPeriod::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriod = + static_cast(0); + Attributes::AverageRmsUnderVoltageCounter::TypeInfo::DecodableType averageRmsUnderVoltageCounter = static_cast(0); + Attributes::RmsExtremeOverVoltagePeriod::TypeInfo::DecodableType rmsExtremeOverVoltagePeriod = static_cast(0); + Attributes::RmsExtremeUnderVoltagePeriod::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriod = static_cast(0); + Attributes::RmsVoltageSagPeriod::TypeInfo::DecodableType rmsVoltageSagPeriod = static_cast(0); + Attributes::RmsVoltageSwellPeriod::TypeInfo::DecodableType rmsVoltageSwellPeriod = static_cast(0); + Attributes::AcVoltageMultiplier::TypeInfo::DecodableType acVoltageMultiplier = static_cast(0); + Attributes::AcVoltageDivisor::TypeInfo::DecodableType acVoltageDivisor = static_cast(0); + Attributes::AcCurrentMultiplier::TypeInfo::DecodableType acCurrentMultiplier = static_cast(0); + Attributes::AcCurrentDivisor::TypeInfo::DecodableType acCurrentDivisor = static_cast(0); + Attributes::AcPowerMultiplier::TypeInfo::DecodableType acPowerMultiplier = static_cast(0); + Attributes::AcPowerDivisor::TypeInfo::DecodableType acPowerDivisor = static_cast(0); + Attributes::OverloadAlarmsMask::TypeInfo::DecodableType overloadAlarmsMask = static_cast(0); + Attributes::VoltageOverload::TypeInfo::DecodableType voltageOverload = static_cast(0); + Attributes::CurrentOverload::TypeInfo::DecodableType currentOverload = static_cast(0); + Attributes::AcOverloadAlarmsMask::TypeInfo::DecodableType acOverloadAlarmsMask = static_cast(0); + Attributes::AcVoltageOverload::TypeInfo::DecodableType acVoltageOverload = static_cast(0); + Attributes::AcCurrentOverload::TypeInfo::DecodableType acCurrentOverload = static_cast(0); + Attributes::AcActivePowerOverload::TypeInfo::DecodableType acActivePowerOverload = static_cast(0); + Attributes::AcReactivePowerOverload::TypeInfo::DecodableType acReactivePowerOverload = static_cast(0); + Attributes::AverageRmsOverVoltage::TypeInfo::DecodableType averageRmsOverVoltage = static_cast(0); + Attributes::AverageRmsUnderVoltage::TypeInfo::DecodableType averageRmsUnderVoltage = static_cast(0); + Attributes::RmsExtremeOverVoltage::TypeInfo::DecodableType rmsExtremeOverVoltage = static_cast(0); + Attributes::RmsExtremeUnderVoltage::TypeInfo::DecodableType rmsExtremeUnderVoltage = static_cast(0); + Attributes::RmsVoltageSag::TypeInfo::DecodableType rmsVoltageSag = static_cast(0); + Attributes::RmsVoltageSwell::TypeInfo::DecodableType rmsVoltageSwell = static_cast(0); + Attributes::LineCurrentPhaseB::TypeInfo::DecodableType lineCurrentPhaseB = static_cast(0); + Attributes::ActiveCurrentPhaseB::TypeInfo::DecodableType activeCurrentPhaseB = static_cast(0); + Attributes::ReactiveCurrentPhaseB::TypeInfo::DecodableType reactiveCurrentPhaseB = static_cast(0); + Attributes::RmsVoltagePhaseB::TypeInfo::DecodableType rmsVoltagePhaseB = static_cast(0); + Attributes::RmsVoltageMinPhaseB::TypeInfo::DecodableType rmsVoltageMinPhaseB = static_cast(0); + Attributes::RmsVoltageMaxPhaseB::TypeInfo::DecodableType rmsVoltageMaxPhaseB = static_cast(0); + Attributes::RmsCurrentPhaseB::TypeInfo::DecodableType rmsCurrentPhaseB = static_cast(0); + Attributes::RmsCurrentMinPhaseB::TypeInfo::DecodableType rmsCurrentMinPhaseB = static_cast(0); + Attributes::RmsCurrentMaxPhaseB::TypeInfo::DecodableType rmsCurrentMaxPhaseB = static_cast(0); + Attributes::ActivePowerPhaseB::TypeInfo::DecodableType activePowerPhaseB = static_cast(0); + Attributes::ActivePowerMinPhaseB::TypeInfo::DecodableType activePowerMinPhaseB = static_cast(0); + Attributes::ActivePowerMaxPhaseB::TypeInfo::DecodableType activePowerMaxPhaseB = static_cast(0); + Attributes::ReactivePowerPhaseB::TypeInfo::DecodableType reactivePowerPhaseB = static_cast(0); + Attributes::ApparentPowerPhaseB::TypeInfo::DecodableType apparentPowerPhaseB = static_cast(0); + Attributes::PowerFactorPhaseB::TypeInfo::DecodableType powerFactorPhaseB = static_cast(0); + Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriodPhaseB = + static_cast(0); + Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo::DecodableType averageRmsOverVoltageCounterPhaseB = + static_cast(0); + Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo::DecodableType averageRmsUnderVoltageCounterPhaseB = + static_cast(0); + Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo::DecodableType rmsExtremeOverVoltagePeriodPhaseB = + static_cast(0); + Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriodPhaseB = + static_cast(0); + Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo::DecodableType rmsVoltageSagPeriodPhaseB = static_cast(0); + Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo::DecodableType rmsVoltageSwellPeriodPhaseB = static_cast(0); + Attributes::LineCurrentPhaseC::TypeInfo::DecodableType lineCurrentPhaseC = static_cast(0); + Attributes::ActiveCurrentPhaseC::TypeInfo::DecodableType activeCurrentPhaseC = static_cast(0); + Attributes::ReactiveCurrentPhaseC::TypeInfo::DecodableType reactiveCurrentPhaseC = static_cast(0); + Attributes::RmsVoltagePhaseC::TypeInfo::DecodableType rmsVoltagePhaseC = static_cast(0); + Attributes::RmsVoltageMinPhaseC::TypeInfo::DecodableType rmsVoltageMinPhaseC = static_cast(0); + Attributes::RmsVoltageMaxPhaseC::TypeInfo::DecodableType rmsVoltageMaxPhaseC = static_cast(0); + Attributes::RmsCurrentPhaseC::TypeInfo::DecodableType rmsCurrentPhaseC = static_cast(0); + Attributes::RmsCurrentMinPhaseC::TypeInfo::DecodableType rmsCurrentMinPhaseC = static_cast(0); + Attributes::RmsCurrentMaxPhaseC::TypeInfo::DecodableType rmsCurrentMaxPhaseC = static_cast(0); + Attributes::ActivePowerPhaseC::TypeInfo::DecodableType activePowerPhaseC = static_cast(0); + Attributes::ActivePowerMinPhaseC::TypeInfo::DecodableType activePowerMinPhaseC = static_cast(0); + Attributes::ActivePowerMaxPhaseC::TypeInfo::DecodableType activePowerMaxPhaseC = static_cast(0); + Attributes::ReactivePowerPhaseC::TypeInfo::DecodableType reactivePowerPhaseC = static_cast(0); + Attributes::ApparentPowerPhaseC::TypeInfo::DecodableType apparentPowerPhaseC = static_cast(0); + Attributes::PowerFactorPhaseC::TypeInfo::DecodableType powerFactorPhaseC = static_cast(0); + Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo::DecodableType averageRmsVoltageMeasurementPeriodPhaseC = + static_cast(0); + Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo::DecodableType averageRmsOverVoltageCounterPhaseC = + static_cast(0); + Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo::DecodableType averageRmsUnderVoltageCounterPhaseC = + static_cast(0); + Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo::DecodableType rmsExtremeOverVoltagePeriodPhaseC = + static_cast(0); + Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo::DecodableType rmsExtremeUnderVoltagePeriodPhaseC = + static_cast(0); + Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo::DecodableType rmsVoltageSagPeriodPhaseC = static_cast(0); + Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo::DecodableType rmsVoltageSwellPeriodPhaseC = static_cast(0); Attributes::AttributeList::TypeInfo::DecodableType attributeList; - Attributes::FeatureMap::TypeInfo::DecodableType featureMap; - Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision; + Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast(0); + Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast(0); }; }; } // namespace Attributes diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 3e9075940d9a02..34f2af8e8da1f1 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -183,6 +183,8 @@ class Test_TC_BI_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_BI_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -383,6 +385,8 @@ class Test_TC_BI_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_BI_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -813,6 +817,8 @@ class Test_TC_BI_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_BI_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -1190,6 +1196,8 @@ class Test_TC_BOOL_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_BOOL_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -1390,6 +1398,8 @@ class Test_TC_BOOL_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_BOOL_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -1590,6 +1600,8 @@ class Test_TC_CC_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -1722,6 +1734,8 @@ class Test_TC_CC_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -7067,6 +7081,8 @@ class Test_TC_CC_3_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_3_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -7382,6 +7398,8 @@ class Test_TC_CC_3_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_3_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -7693,6 +7711,8 @@ class Test_TC_CC_3_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_3_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -7944,6 +7964,8 @@ class Test_TC_CC_4_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_4_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -8162,6 +8184,8 @@ class Test_TC_CC_4_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_4_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -8535,6 +8559,8 @@ class Test_TC_CC_4_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_4_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -8786,6 +8812,8 @@ class Test_TC_CC_4_4 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_4_4() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -9005,6 +9033,8 @@ class Test_TC_CC_5_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_5_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -9224,6 +9254,8 @@ class Test_TC_CC_5_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_5_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -9471,6 +9503,8 @@ class Test_TC_CC_5_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_5_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -9690,6 +9724,8 @@ class Test_TC_CC_6_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_6_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -9908,6 +9944,8 @@ class Test_TC_CC_6_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_6_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -10194,6 +10232,8 @@ class Test_TC_CC_6_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_6_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -10449,6 +10489,8 @@ class Test_TC_CC_7_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_7_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -10703,6 +10745,8 @@ class Test_TC_CC_7_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_7_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -11014,6 +11058,8 @@ class Test_TC_CC_7_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_7_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -11265,6 +11311,8 @@ class Test_TC_CC_7_4 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_7_4() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -11484,6 +11532,8 @@ class Test_TC_CC_8_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_8_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -12080,6 +12130,8 @@ class Test_TC_CC_9_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_9_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -13490,6 +13542,8 @@ class Test_TC_CC_9_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_9_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -14073,6 +14127,8 @@ class Test_TC_CC_9_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_CC_9_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -14656,6 +14712,8 @@ class Test_TC_DD_1_5 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DD_1_5() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -14722,6 +14780,8 @@ class Test_TC_DD_1_6 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DD_1_6() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -14809,6 +14869,8 @@ class Test_TC_DD_1_7 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DD_1_7() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -14885,6 +14947,8 @@ class Test_TC_DD_1_8 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DD_1_8() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -14960,6 +15024,8 @@ class Test_TC_DD_1_9 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DD_1_9() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -15046,6 +15112,8 @@ class Test_TC_DM_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DM_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -15791,6 +15859,8 @@ class Test_TC_DM_3_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DM_3_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -15856,6 +15926,8 @@ class Test_TC_DM_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DM_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -16069,6 +16141,8 @@ class Test_TC_EMR_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_EMR_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -16273,6 +16347,8 @@ class Test_TC_FLW_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_FLW_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -16405,6 +16481,8 @@ class Test_TC_FLW_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_FLW_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -16912,6 +16990,8 @@ class Test_TC_FLW_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_FLW_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -17043,6 +17123,8 @@ class Test_TC_ILL_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_ILL_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -17247,6 +17329,8 @@ class Test_TC_LVL_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_LVL_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -17379,6 +17463,8 @@ class Test_TC_LVL_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_LVL_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -17948,6 +18034,8 @@ class Test_TC_LVL_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_LVL_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -18531,6 +18619,8 @@ class Test_TC_LVL_3_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_LVL_3_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -18998,6 +19088,8 @@ class Test_TC_LVL_4_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_LVL_4_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -19496,6 +19588,8 @@ class Test_TC_LVL_5_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_LVL_5_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -19884,6 +19978,8 @@ class Test_TC_LVL_6_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_LVL_6_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20223,6 +20319,8 @@ class Test_TC_MC_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20355,6 +20453,8 @@ class Test_TC_MC_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20447,6 +20547,8 @@ class Test_TC_MC_3_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20512,6 +20614,8 @@ class Test_TC_MC_3_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20577,6 +20681,8 @@ class Test_TC_MC_3_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20642,6 +20748,8 @@ class Test_TC_MC_3_4 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_4() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20707,6 +20815,8 @@ class Test_TC_MC_3_5 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_5() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20772,6 +20882,8 @@ class Test_TC_MC_3_6 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_6() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20837,6 +20949,8 @@ class Test_TC_MC_3_7 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_7() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20902,6 +21016,8 @@ class Test_TC_MC_3_8 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_8() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -20967,6 +21083,8 @@ class Test_TC_MC_3_9 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_9() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21032,6 +21150,8 @@ class Test_TC_MC_3_10 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_10() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21097,6 +21217,8 @@ class Test_TC_MC_3_11 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_3_11() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21162,6 +21284,8 @@ class Test_TC_MC_5_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_5_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21263,6 +21387,8 @@ class Test_TC_MC_5_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_5_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21338,6 +21464,8 @@ class Test_TC_MC_5_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_5_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21413,6 +21541,8 @@ class Test_TC_MC_6_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_6_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21552,6 +21682,8 @@ class Test_TC_MC_6_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_6_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21721,6 +21853,8 @@ class Test_TC_MC_6_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_6_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -21816,6 +21950,8 @@ class Test_TC_MC_6_4 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_6_4() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -22043,6 +22179,8 @@ class Test_TC_MC_7_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_7_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -22108,6 +22246,8 @@ class Test_TC_MC_7_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_7_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -22173,6 +22313,8 @@ class Test_TC_MC_8_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_8_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -22313,6 +22455,8 @@ class Test_TC_MC_9_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_MC_9_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -22590,6 +22734,8 @@ class Test_TC_OCC_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_OCC_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -22756,6 +22902,8 @@ class Test_TC_OCC_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_OCC_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -23137,6 +23285,8 @@ class Test_TC_OCC_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_OCC_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -23278,6 +23428,8 @@ class Test_TC_OO_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_OO_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -23622,6 +23774,8 @@ class Test_TC_OO_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_OO_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -24180,6 +24334,8 @@ class Test_TC_OO_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_OO_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -24672,6 +24828,8 @@ class Test_TC_OO_2_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_OO_2_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -26374,6 +26532,8 @@ class Test_TC_PRS_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_PRS_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -26507,6 +26667,8 @@ class Test_TC_PRS_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_PRS_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -26878,6 +27040,8 @@ class Test_TC_PCC_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_PCC_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -27046,6 +27210,8 @@ class Test_TC_PCC_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_PCC_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -28890,6 +29056,8 @@ class Test_TC_PCC_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_PCC_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -29060,6 +29228,8 @@ class Test_TC_PCC_2_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_PCC_2_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -29450,6 +29620,8 @@ class Test_TC_RH_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_RH_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -29584,6 +29756,8 @@ class Test_TC_RH_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_RH_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -29796,6 +29970,8 @@ class Test_TC_RH_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_RH_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -29939,6 +30115,8 @@ class Test_TC_TM_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TM_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -30143,6 +30321,8 @@ class Test_TC_TM_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TM_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -30280,6 +30460,8 @@ class Test_TC_TM_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TM_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -30423,6 +30605,8 @@ class Test_TC_TSTAT_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TSTAT_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -30588,6 +30772,8 @@ class Test_TC_TSTAT_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TSTAT_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -32729,6 +32915,8 @@ class Test_TC_TSTAT_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TSTAT_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -34600,6 +34788,8 @@ class Test_TC_TSUIC_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TSUIC_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -34735,6 +34925,8 @@ class Test_TC_TSUIC_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TSUIC_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -35314,6 +35506,8 @@ class Test_TC_TSUIC_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_TSUIC_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -35735,6 +35929,8 @@ class Test_TC_DIAGTH_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DIAGTH_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -35939,6 +36135,8 @@ class Test_TC_WNCV_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_WNCV_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -36212,6 +36410,8 @@ class Test_TC_WNCV_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_WNCV_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -38217,6 +38417,8 @@ class Test_TC_WNCV_2_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_WNCV_2_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -38282,6 +38484,8 @@ class Test_TC_WNCV_2_4 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_WNCV_2_4() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -38426,6 +38630,8 @@ class Test_TC_WNCV_2_5 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_WNCV_2_5() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -38570,6 +38776,8 @@ class Test_TC_WNCV_3_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_WNCV_3_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -38723,6 +38931,8 @@ class Test_TC_WNCV_3_2 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_WNCV_3_2() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -38876,6 +39086,8 @@ class Test_TC_WNCV_3_3 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_WNCV_3_3() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -39029,6 +39241,8 @@ class TV_TargetNavigatorCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_TargetNavigatorCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -39215,6 +39429,8 @@ class TV_AudioOutputCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_AudioOutputCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -39428,6 +39644,8 @@ class TV_ApplicationLauncherCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_ApplicationLauncherCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -39647,6 +39865,8 @@ class TV_KeypadInputCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_KeypadInputCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -39745,6 +39965,8 @@ class TV_AccountLoginCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_AccountLoginCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -39902,6 +40124,8 @@ class TV_WakeOnLanCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_WakeOnLanCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -40001,6 +40225,8 @@ class TV_ApplicationBasicCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_ApplicationBasicCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -40270,6 +40496,8 @@ class TV_MediaPlaybackCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_MediaPlaybackCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -40894,6 +41122,8 @@ class TV_ChannelCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_ChannelCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -41113,6 +41343,8 @@ class TV_LowPowerCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_LowPowerCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -41205,6 +41437,8 @@ class TV_ContentLauncherCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_ContentLauncherCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -41458,6 +41692,8 @@ class TV_MediaInputCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TV_MediaInputCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -41722,6 +41958,8 @@ class TestCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -57939,6 +58177,8 @@ class TestClusterComplexTypes : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestClusterComplexTypes() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -58688,6 +58928,8 @@ class TestConstraints : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestConstraints() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -59417,6 +59659,8 @@ class TestDelayCommands : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestDelayCommands() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -59492,6 +59736,8 @@ class TestLogCommands : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestLogCommands() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -59577,6 +59823,30 @@ class TestSaveAs : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestSaveAs() + { + if (readAttributeCharStringDefaultValueBuffer != nullptr) + { + chip::Platform::MemoryFree(readAttributeCharStringDefaultValueBuffer); + readAttributeCharStringDefaultValueBuffer = nullptr; + } + if (readAttributeCharStringNotDefaultValueBuffer != nullptr) + { + chip::Platform::MemoryFree(readAttributeCharStringNotDefaultValueBuffer); + readAttributeCharStringNotDefaultValueBuffer = nullptr; + } + if (readAttributeOctetStringDefaultValueBuffer != nullptr) + { + chip::Platform::MemoryFree(readAttributeOctetStringDefaultValueBuffer); + readAttributeOctetStringDefaultValueBuffer = nullptr; + } + if (readAttributeOctetStringNotDefaultValueBuffer != nullptr) + { + chip::Platform::MemoryFree(readAttributeOctetStringNotDefaultValueBuffer); + readAttributeOctetStringNotDefaultValueBuffer = nullptr; + } + } + /////////// TestCommand Interface ///////// void NextTest() override { @@ -59978,6 +60248,76 @@ class TestSaveAs : public TestCommand ChipLogProgress(chipTool, " ***** Test Step 93 : Read attribute vendor_id Default Value\n"); err = TestReadAttributeVendorIdDefaultValue_93(); break; + case 94: + ChipLogProgress(chipTool, " ***** Test Step 94 : Read attribute char_string Default Value\n"); + err = TestReadAttributeCharStringDefaultValue_94(); + break; + case 95: + ChipLogProgress(chipTool, + " ***** Test Step 95 : Read attribute char_string Default Value and compare to saved value\n"); + err = TestReadAttributeCharStringDefaultValueAndCompareToSavedValue_95(); + break; + case 96: + ChipLogProgress(chipTool, " ***** Test Step 96 : Write attribute char_string Not Default Value\n"); + err = TestWriteAttributeCharStringNotDefaultValue_96(); + break; + case 97: + ChipLogProgress(chipTool, " ***** Test Step 97 : Read attribute char_string Not Default Value\n"); + err = TestReadAttributeCharStringNotDefaultValue_97(); + break; + case 98: + ChipLogProgress(chipTool, + " ***** Test Step 98 : Read attribute char_string Not Default Value and compare to saved value\n"); + err = TestReadAttributeCharStringNotDefaultValueAndCompareToSavedValue_98(); + break; + case 99: + ChipLogProgress(chipTool, " ***** Test Step 99 : Write attribute char_string Not Default Value from saved value\n"); + err = TestWriteAttributeCharStringNotDefaultValueFromSavedValue_99(); + break; + case 100: + ChipLogProgress(chipTool, + " ***** Test Step 100 : Read attribute char_string Not Default Value and compare to expected value\n"); + err = TestReadAttributeCharStringNotDefaultValueAndCompareToExpectedValue_100(); + break; + case 101: + ChipLogProgress(chipTool, " ***** Test Step 101 : Write attribute char_string Default Value\n"); + err = TestWriteAttributeCharStringDefaultValue_101(); + break; + case 102: + ChipLogProgress(chipTool, " ***** Test Step 102 : Read attribute octet_string Default Value\n"); + err = TestReadAttributeOctetStringDefaultValue_102(); + break; + case 103: + ChipLogProgress(chipTool, + " ***** Test Step 103 : Read attribute octet_string Default Value and compare to saved value\n"); + err = TestReadAttributeOctetStringDefaultValueAndCompareToSavedValue_103(); + break; + case 104: + ChipLogProgress(chipTool, " ***** Test Step 104 : Write attribute octet_string Not Default Value\n"); + err = TestWriteAttributeOctetStringNotDefaultValue_104(); + break; + case 105: + ChipLogProgress(chipTool, " ***** Test Step 105 : Read attribute octet_string Not Default Value\n"); + err = TestReadAttributeOctetStringNotDefaultValue_105(); + break; + case 106: + ChipLogProgress(chipTool, + " ***** Test Step 106 : Read attribute octet_string Not Default Value and compare to saved value\n"); + err = TestReadAttributeOctetStringNotDefaultValueAndCompareToSavedValue_106(); + break; + case 107: + ChipLogProgress(chipTool, " ***** Test Step 107 : Write attribute octet_string Not Default Value from saved value\n"); + err = TestWriteAttributeOctetStringNotDefaultValueFromSavedValue_107(); + break; + case 108: + ChipLogProgress(chipTool, + " ***** Test Step 108 : Read attribute octet_string Not Default Value and compare to expected value\n"); + err = TestReadAttributeOctetStringNotDefaultValueAndCompareToExpectedValue_108(); + break; + case 109: + ChipLogProgress(chipTool, " ***** Test Step 109 : Write attribute octet_string Default Value\n"); + err = TestWriteAttributeOctetStringDefaultValue_109(); + break; } if (CHIP_NO_ERROR != err) @@ -59989,7 +60329,7 @@ class TestSaveAs : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 94; + const uint16_t mTestCount = 110; chip::Optional mCluster; chip::Optional mEndpoint; @@ -60013,6 +60353,14 @@ class TestSaveAs : public TestCommand uint64_t readAttributeEpochUSDefaultValue; uint32_t readAttributeEpochSDefaultValue; chip::VendorId readAttributeVendorIdDefaultValue; + char * readAttributeCharStringDefaultValueBuffer = nullptr; + chip::CharSpan readAttributeCharStringDefaultValue; + char * readAttributeCharStringNotDefaultValueBuffer = nullptr; + chip::CharSpan readAttributeCharStringNotDefaultValue; + uint8_t * readAttributeOctetStringDefaultValueBuffer = nullptr; + chip::ByteSpan readAttributeOctetStringDefaultValue; + uint8_t * readAttributeOctetStringNotDefaultValueBuffer = nullptr; + chip::ByteSpan readAttributeOctetStringNotDefaultValue; static void OnFailureCallback_4(void * context, EmberAfStatus status) { @@ -60806,6 +61154,148 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_93(vendorId); } + static void OnFailureCallback_94(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_94(status); + } + + static void OnSuccessCallback_94(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_94(charString); + } + + static void OnFailureCallback_95(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_95(status); + } + + static void OnSuccessCallback_95(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_95(charString); + } + + static void OnFailureCallback_96(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_96(status); + } + + static void OnSuccessCallback_96(void * context) { (static_cast(context))->OnSuccessResponse_96(); } + + static void OnFailureCallback_97(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_97(status); + } + + static void OnSuccessCallback_97(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_97(charString); + } + + static void OnFailureCallback_98(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_98(status); + } + + static void OnSuccessCallback_98(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_98(charString); + } + + static void OnFailureCallback_99(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_99(status); + } + + static void OnSuccessCallback_99(void * context) { (static_cast(context))->OnSuccessResponse_99(); } + + static void OnFailureCallback_100(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_100(status); + } + + static void OnSuccessCallback_100(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_100(charString); + } + + static void OnFailureCallback_101(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_101(status); + } + + static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } + + static void OnFailureCallback_102(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_102(status); + } + + static void OnSuccessCallback_102(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_102(octetString); + } + + static void OnFailureCallback_103(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_103(status); + } + + static void OnSuccessCallback_103(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_103(octetString); + } + + static void OnFailureCallback_104(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_104(status); + } + + static void OnSuccessCallback_104(void * context) { (static_cast(context))->OnSuccessResponse_104(); } + + static void OnFailureCallback_105(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_105(status); + } + + static void OnSuccessCallback_105(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_105(octetString); + } + + static void OnFailureCallback_106(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_106(status); + } + + static void OnSuccessCallback_106(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_106(octetString); + } + + static void OnFailureCallback_107(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_107(status); + } + + static void OnSuccessCallback_107(void * context) { (static_cast(context))->OnSuccessResponse_107(); } + + static void OnFailureCallback_108(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_108(status); + } + + static void OnSuccessCallback_108(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_108(octetString); + } + + static void OnFailureCallback_109(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_109(status); + } + + static void OnSuccessCallback_109(void * context) { (static_cast(context))->OnSuccessResponse_109(); } + // // Tests methods // @@ -62622,7 +63112,7 @@ class TestSaveAs : public TestCommand cluster.Associate(mDevices[kIdentityAlpha], endpoint); chip::VendorId vendorIdArgument; - vendorIdArgument = static_cast(readAttributeVendorIdDefaultValue); + vendorIdArgument = readAttributeVendorIdDefaultValue; ReturnErrorOnFailure(cluster.WriteAttribute( vendorIdArgument, this, OnSuccessCallback_92, OnFailureCallback_92)); @@ -62652,6 +63142,344 @@ class TestSaveAs : public TestCommand NextTest(); } + + CHIP_ERROR TestReadAttributeCharStringDefaultValue_94() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_94, OnFailureCallback_94)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_94(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_94(chip::CharSpan charString) + { + VerifyOrReturn(CheckValueAsString("charString", charString, chip::CharSpan("", 0))); + + if (readAttributeCharStringDefaultValueBuffer != nullptr) + { + chip::Platform::MemoryFree(readAttributeCharStringDefaultValueBuffer); + } + readAttributeCharStringDefaultValueBuffer = static_cast(chip::Platform::MemoryAlloc(charString.size())); + memcpy(readAttributeCharStringDefaultValueBuffer, charString.data(), charString.size()); + readAttributeCharStringDefaultValue = chip::CharSpan(readAttributeCharStringDefaultValueBuffer, charString.size()); + NextTest(); + } + + CHIP_ERROR TestReadAttributeCharStringDefaultValueAndCompareToSavedValue_95() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_95, OnFailureCallback_95)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_95(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_95(chip::CharSpan charString) + { + VerifyOrReturn(CheckValueAsString("charString", charString, readAttributeCharStringDefaultValue)); + + NextTest(); + } + + CHIP_ERROR TestWriteAttributeCharStringNotDefaultValue_96() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + chip::CharSpan charStringArgument; + charStringArgument = chip::Span("NotDefaultgarbage: not in length on purpose", 10); + + ReturnErrorOnFailure(cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_96, OnFailureCallback_96)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_96(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_96() { NextTest(); } + + CHIP_ERROR TestReadAttributeCharStringNotDefaultValue_97() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_97, OnFailureCallback_97)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_97(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_97(chip::CharSpan charString) + { + VerifyOrReturn(CheckValueAsString("charString", charString, chip::CharSpan("NotDefault", 10))); + + if (readAttributeCharStringNotDefaultValueBuffer != nullptr) + { + chip::Platform::MemoryFree(readAttributeCharStringNotDefaultValueBuffer); + } + readAttributeCharStringNotDefaultValueBuffer = static_cast(chip::Platform::MemoryAlloc(charString.size())); + memcpy(readAttributeCharStringNotDefaultValueBuffer, charString.data(), charString.size()); + readAttributeCharStringNotDefaultValue = chip::CharSpan(readAttributeCharStringNotDefaultValueBuffer, charString.size()); + NextTest(); + } + + CHIP_ERROR TestReadAttributeCharStringNotDefaultValueAndCompareToSavedValue_98() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_98, OnFailureCallback_98)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_98(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_98(chip::CharSpan charString) + { + VerifyOrReturn(CheckValueAsString("charString", charString, readAttributeCharStringNotDefaultValue)); + + NextTest(); + } + + CHIP_ERROR TestWriteAttributeCharStringNotDefaultValueFromSavedValue_99() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + chip::CharSpan charStringArgument; + charStringArgument = readAttributeCharStringNotDefaultValue; + + ReturnErrorOnFailure(cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_99, OnFailureCallback_99)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_99(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_99() { NextTest(); } + + CHIP_ERROR TestReadAttributeCharStringNotDefaultValueAndCompareToExpectedValue_100() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_100, OnFailureCallback_100)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_100(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_100(chip::CharSpan charString) + { + VerifyOrReturn(CheckValueAsString("charString", charString, chip::CharSpan("NotDefault", 10))); + + NextTest(); + } + + CHIP_ERROR TestWriteAttributeCharStringDefaultValue_101() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + chip::CharSpan charStringArgument; + charStringArgument = readAttributeCharStringDefaultValue; + + ReturnErrorOnFailure(cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_101, OnFailureCallback_101)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_101(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_101() { NextTest(); } + + CHIP_ERROR TestReadAttributeOctetStringDefaultValue_102() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_102, OnFailureCallback_102)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_102(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_102(chip::ByteSpan octetString) + { + VerifyOrReturn(CheckValueAsString("octetString", octetString, chip::ByteSpan(chip::Uint8::from_const_char(""), 0))); + + if (readAttributeOctetStringDefaultValueBuffer != nullptr) + { + chip::Platform::MemoryFree(readAttributeOctetStringDefaultValueBuffer); + } + readAttributeOctetStringDefaultValueBuffer = static_cast(chip::Platform::MemoryAlloc(octetString.size())); + memcpy(readAttributeOctetStringDefaultValueBuffer, octetString.data(), octetString.size()); + readAttributeOctetStringDefaultValue = chip::ByteSpan(readAttributeOctetStringDefaultValueBuffer, octetString.size()); + NextTest(); + } + + CHIP_ERROR TestReadAttributeOctetStringDefaultValueAndCompareToSavedValue_103() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_103, OnFailureCallback_103)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_103(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_103(chip::ByteSpan octetString) + { + VerifyOrReturn(CheckValueAsString("octetString", octetString, readAttributeOctetStringDefaultValue)); + + NextTest(); + } + + CHIP_ERROR TestWriteAttributeOctetStringNotDefaultValue_104() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + chip::ByteSpan octetStringArgument; + octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("NotDefaultgarbage: not in length on purpose"), 10); + + ReturnErrorOnFailure(cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_104, OnFailureCallback_104)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_104(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_104() { NextTest(); } + + CHIP_ERROR TestReadAttributeOctetStringNotDefaultValue_105() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_105, OnFailureCallback_105)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_105(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_105(chip::ByteSpan octetString) + { + VerifyOrReturn( + CheckValueAsString("octetString", octetString, chip::ByteSpan(chip::Uint8::from_const_char("NotDefault"), 10))); + + if (readAttributeOctetStringNotDefaultValueBuffer != nullptr) + { + chip::Platform::MemoryFree(readAttributeOctetStringNotDefaultValueBuffer); + } + readAttributeOctetStringNotDefaultValueBuffer = static_cast(chip::Platform::MemoryAlloc(octetString.size())); + memcpy(readAttributeOctetStringNotDefaultValueBuffer, octetString.data(), octetString.size()); + readAttributeOctetStringNotDefaultValue = chip::ByteSpan(readAttributeOctetStringNotDefaultValueBuffer, octetString.size()); + NextTest(); + } + + CHIP_ERROR TestReadAttributeOctetStringNotDefaultValueAndCompareToSavedValue_106() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_106, OnFailureCallback_106)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_106(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_106(chip::ByteSpan octetString) + { + VerifyOrReturn(CheckValueAsString("octetString", octetString, readAttributeOctetStringNotDefaultValue)); + + NextTest(); + } + + CHIP_ERROR TestWriteAttributeOctetStringNotDefaultValueFromSavedValue_107() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + chip::ByteSpan octetStringArgument; + octetStringArgument = readAttributeOctetStringNotDefaultValue; + + ReturnErrorOnFailure(cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_107, OnFailureCallback_107)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_107(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_107() { NextTest(); } + + CHIP_ERROR TestReadAttributeOctetStringNotDefaultValueAndCompareToExpectedValue_108() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_108, OnFailureCallback_108)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_108(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_108(chip::ByteSpan octetString) + { + VerifyOrReturn( + CheckValueAsString("octetString", octetString, chip::ByteSpan(chip::Uint8::from_const_char("NotDefault"), 10))); + + NextTest(); + } + + CHIP_ERROR TestWriteAttributeOctetStringDefaultValue_109() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::TestClusterClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + chip::ByteSpan octetStringArgument; + octetStringArgument = readAttributeOctetStringDefaultValue; + + ReturnErrorOnFailure(cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_109, OnFailureCallback_109)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_109(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_109() { NextTest(); } }; class TestConfigVariables : public TestCommand @@ -62665,6 +63493,8 @@ class TestConfigVariables : public TestCommand AddArgument("returnValueWithArg1", 0, UINT8_MAX, &mReturnValueWithArg1); } + ~TestConfigVariables() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -62803,6 +63633,8 @@ class TestDescriptorCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestDescriptorCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -63074,6 +63906,8 @@ class TestBasicInformation : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestBasicInformation() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -63276,6 +64110,8 @@ class TestIdentifyCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestIdentifyCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -63369,6 +64205,8 @@ class TestGroupsCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestGroupsCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -64090,6 +64928,8 @@ class TestGroupKeyManagementCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestGroupKeyManagementCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -64225,6 +65065,8 @@ class TestOperationalCredentialsCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestOperationalCredentialsCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -64395,6 +65237,8 @@ class TestModeSelectCluster : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestModeSelectCluster() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -64745,6 +65589,8 @@ class TestGroupMessaging : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestGroupMessaging() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -64944,6 +65790,8 @@ class Test_TC_SWDIAG_1_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_SWDIAG_1_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -65128,6 +65976,8 @@ class Test_TC_SWDIAG_2_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_SWDIAG_2_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -65183,6 +66033,8 @@ class Test_TC_SWDIAG_3_1 : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_SWDIAG_3_1() {} + /////////// TestCommand Interface ///////// void NextTest() override { @@ -65333,6 +66185,8 @@ class TestSubscribe_OnOff : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~TestSubscribe_OnOff() {} + /////////// TestCommand Interface ///////// void NextTest() override { diff --git a/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp index b12fb475dacee5..f471a3a899d02d 100644 --- a/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp @@ -889,6 +889,48 @@ void DispatchClientCommand(CommandSender * apCommandObj, const ConcreteCommandPa } // namespace OtaSoftwareUpdateProvider +namespace OtaSoftwareUpdateRequestor { + +void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandPath & aCommandPath, TLV::TLVReader & aDataTlv) +{ + // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV + // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. + // Any error value TLVUnpackError means we have received an illegal value. + // The following variables are used for all commands to save code size. + CHIP_ERROR TLVError = CHIP_NO_ERROR; + bool wasHandled = false; + { + switch (aCommandPath.mCommandId) + { + case Commands::AnnounceOtaProvider::Id: { + Commands::AnnounceOtaProvider::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = + emberAfOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderCallback(apCommandObj, aCommandPath, commandData); + } + break; + } + default: { + // Unrecognized command ID, error status will apply. + apCommandObj->AddStatus(aCommandPath, Protocols::InteractionModel::Status::UnsupportedCommand); + ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, + ChipLogValueMEI(aCommandPath.mCommandId), ChipLogValueMEI(aCommandPath.mClusterId)); + return; + } + } + } + + if (CHIP_NO_ERROR != TLVError || !wasHandled) + { + apCommandObj->AddStatus(aCommandPath, Protocols::InteractionModel::Status::InvalidCommand); + ChipLogProgress(Zcl, "Failed to dispatch command, TLVError=%" CHIP_ERROR_FORMAT, TLVError.Format()); + } +} + +} // namespace OtaSoftwareUpdateRequestor + namespace OnOff { void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandPath & aCommandPath, TLV::TLVReader & aDataTlv) @@ -1247,6 +1289,9 @@ void DispatchSingleClusterCommand(const ConcreteCommandPath & aCommandPath, TLV: case Clusters::NetworkCommissioning::Id: Clusters::NetworkCommissioning::DispatchServerCommand(apCommandObj, aCommandPath, aReader); break; + case Clusters::OtaSoftwareUpdateRequestor::Id: + Clusters::OtaSoftwareUpdateRequestor::DispatchServerCommand(apCommandObj, aCommandPath, aReader); + break; case Clusters::OnOff::Id: Clusters::OnOff::DispatchServerCommand(apCommandObj, aCommandPath, aReader); break; diff --git a/zzz_generated/lighting-app/zap-generated/PluginApplicationCallbacks.h b/zzz_generated/lighting-app/zap-generated/PluginApplicationCallbacks.h index a1fb371ae0b6b7..7ef58a6f6b5776 100644 --- a/zzz_generated/lighting-app/zap-generated/PluginApplicationCallbacks.h +++ b/zzz_generated/lighting-app/zap-generated/PluginApplicationCallbacks.h @@ -36,6 +36,7 @@ MatterLocalizationConfigurationPluginServerInitCallback(); \ MatterNetworkCommissioningPluginServerInitCallback(); \ MatterOtaSoftwareUpdateProviderPluginClientInitCallback(); \ + MatterOtaSoftwareUpdateRequestorPluginServerInitCallback(); \ MatterOccupancySensingPluginServerInitCallback(); \ MatterOnOffPluginClientInitCallback(); \ MatterOnOffPluginServerInitCallback(); \ diff --git a/zzz_generated/lighting-app/zap-generated/callback-stub.cpp b/zzz_generated/lighting-app/zap-generated/callback-stub.cpp index ccb5454a214c2c..978e166c1c419c 100644 --- a/zzz_generated/lighting-app/zap-generated/callback-stub.cpp +++ b/zzz_generated/lighting-app/zap-generated/callback-stub.cpp @@ -71,6 +71,9 @@ void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId) case ZCL_OTA_PROVIDER_CLUSTER_ID: emberAfOtaSoftwareUpdateProviderClusterInitCallback(endpoint); break; + case ZCL_OTA_REQUESTOR_CLUSTER_ID: + emberAfOtaSoftwareUpdateRequestorClusterInitCallback(endpoint); + break; case ZCL_OCCUPANCY_SENSING_CLUSTER_ID: emberAfOccupancySensingClusterInitCallback(endpoint); break; @@ -174,6 +177,11 @@ void __attribute__((weak)) emberAfOtaSoftwareUpdateProviderClusterInitCallback(E // To prevent warning (void) endpoint; } +void __attribute__((weak)) emberAfOtaSoftwareUpdateRequestorClusterInitCallback(EndpointId endpoint) +{ + // To prevent warning + (void) endpoint; +} void __attribute__((weak)) emberAfOccupancySensingClusterInitCallback(EndpointId endpoint) { // To prevent warning diff --git a/zzz_generated/lighting-app/zap-generated/endpoint_config.h b/zzz_generated/lighting-app/zap-generated/endpoint_config.h index e32b52b850391d..3ec287cc36faa6 100644 --- a/zzz_generated/lighting-app/zap-generated/endpoint_config.h +++ b/zzz_generated/lighting-app/zap-generated/endpoint_config.h @@ -577,7 +577,7 @@ #define ZAP_ATTRIBUTE_MASK(mask) ATTRIBUTE_MASK_##mask // This is an array of EmberAfAttributeMetadata structures. -#define GENERATED_ATTRIBUTE_COUNT 223 +#define GENERATED_ATTRIBUTE_COUNT 229 #define GENERATED_ATTRIBUTES \ { \ \ @@ -613,6 +613,17 @@ { 0x0012, ZAP_TYPE(CHAR_STRING), 33, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_EMPTY_DEFAULT() }, /* UniqueID */ \ { 0xFFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_SIMPLE_DEFAULT(3) }, /* ClusterRevision */ \ \ + /* Endpoint: 0, Cluster: OTA Software Update Provider (client) */ \ + { 0xFFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(CLIENT), ZAP_SIMPLE_DEFAULT(0x0001) }, /* ClusterRevision */ \ + \ + /* Endpoint: 0, Cluster: OTA Software Update Requestor (server) */ \ + { 0x0000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ + ZAP_SIMPLE_DEFAULT(0) }, /* DefaultOtaProviders */ \ + { 0x0001, ZAP_TYPE(BOOLEAN), 1, 0, ZAP_SIMPLE_DEFAULT(1) }, /* UpdatePossible */ \ + { 0x0002, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0) }, /* UpdateState */ \ + { 0x0003, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_SIMPLE_DEFAULT(0) }, /* UpdateStateProgress */ \ + { 0xFFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ + \ /* Endpoint: 0, Cluster: Localization Configuration (server) */ \ { 0x0001, ZAP_TYPE(CHAR_STRING), 36, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_EMPTY_DEFAULT() }, /* ActiveLocale */ \ { 0x0002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* SupportedLocales */ \ @@ -893,7 +904,7 @@ }; #define ZAP_CLUSTER_MASK(mask) CLUSTER_MASK_##mask -#define GENERATED_CLUSTER_COUNT 25 +#define GENERATED_CLUSTER_COUNT 26 #define GENERATED_CLUSTERS \ { \ { 0x001D, ZAP_ATTRIBUTE_INDEX(0), 5, 0, ZAP_CLUSTER_MASK(SERVER), NULL }, /* Endpoint: 0, Cluster: Descriptor (server) */ \ @@ -904,88 +915,91 @@ ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ chipFuncArrayBasicServer }, /* Endpoint: 0, Cluster: Basic (server) */ \ { \ - 0x0029, ZAP_ATTRIBUTE_INDEX(25), 0, 0, ZAP_CLUSTER_MASK(CLIENT), NULL \ + 0x0029, ZAP_ATTRIBUTE_INDEX(25), 1, 2, ZAP_CLUSTER_MASK(CLIENT), NULL \ }, /* Endpoint: 0, Cluster: OTA Software Update Provider (client) */ \ { \ - 0x002B, ZAP_ATTRIBUTE_INDEX(25), 2, 36, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x002A, ZAP_ATTRIBUTE_INDEX(26), 5, 5, ZAP_CLUSTER_MASK(SERVER), NULL \ + }, /* Endpoint: 0, Cluster: OTA Software Update Requestor (server) */ \ + { \ + 0x002B, ZAP_ATTRIBUTE_INDEX(31), 2, 36, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Localization Configuration (server) */ \ { \ - 0x0030, ZAP_ATTRIBUTE_INDEX(27), 6, 270, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0030, ZAP_ATTRIBUTE_INDEX(33), 6, 270, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: General Commissioning (server) */ \ { \ - 0x0031, ZAP_ATTRIBUTE_INDEX(33), 10, 60, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0031, ZAP_ATTRIBUTE_INDEX(39), 10, 60, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Network Commissioning (server) */ \ { \ - 0x0032, ZAP_ATTRIBUTE_INDEX(43), 0, 0, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0032, ZAP_ATTRIBUTE_INDEX(49), 0, 0, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Diagnostic Logs (server) */ \ { \ - 0x0033, ZAP_ATTRIBUTE_INDEX(43), 9, 17, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0033, ZAP_ATTRIBUTE_INDEX(49), 9, 17, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: General Diagnostics (server) */ \ { \ - 0x0034, ZAP_ATTRIBUTE_INDEX(52), 6, 30, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0034, ZAP_ATTRIBUTE_INDEX(58), 6, 30, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Software Diagnostics (server) */ \ { \ - 0x0035, ZAP_ATTRIBUTE_INDEX(58), 65, 247, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0035, ZAP_ATTRIBUTE_INDEX(64), 65, 247, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Thread Network Diagnostics (server) */ \ { \ - 0x0036, ZAP_ATTRIBUTE_INDEX(123), 15, 58, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0036, ZAP_ATTRIBUTE_INDEX(129), 15, 58, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: WiFi Network Diagnostics (server) */ \ { \ - 0x0037, ZAP_ATTRIBUTE_INDEX(138), 11, 57, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0037, ZAP_ATTRIBUTE_INDEX(144), 11, 57, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */ \ { \ - 0x003B, ZAP_ATTRIBUTE_INDEX(149), 0, 0, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x003B, ZAP_ATTRIBUTE_INDEX(155), 0, 0, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Switch (server) */ \ { \ - 0x003C, ZAP_ATTRIBUTE_INDEX(149), 4, 2, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x003C, ZAP_ATTRIBUTE_INDEX(155), 4, 2, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */ \ { \ - 0x003E, ZAP_ATTRIBUTE_INDEX(153), 6, 4, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x003E, ZAP_ATTRIBUTE_INDEX(159), 6, 4, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Operational Credentials (server) */ \ { \ - 0x0040, ZAP_ATTRIBUTE_INDEX(159), 2, 2, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0040, ZAP_ATTRIBUTE_INDEX(165), 2, 2, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: Fixed Label (server) */ \ { \ - 0x0041, ZAP_ATTRIBUTE_INDEX(161), 2, 2, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0041, ZAP_ATTRIBUTE_INDEX(167), 2, 2, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: User Label (server) */ \ { 0x0003, \ - ZAP_ATTRIBUTE_INDEX(163), \ + ZAP_ATTRIBUTE_INDEX(169), \ 3, \ 5, \ ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(ATTRIBUTE_CHANGED_FUNCTION), \ chipFuncArrayIdentifyServer }, /* Endpoint: 1, Cluster: Identify (server) */ \ { 0x0006, \ - ZAP_ATTRIBUTE_INDEX(166), \ + ZAP_ATTRIBUTE_INDEX(172), \ 7, \ 13, \ ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ chipFuncArrayOnOffServer }, /* Endpoint: 1, Cluster: On/Off (server) */ \ { 0x0008, \ - ZAP_ATTRIBUTE_INDEX(173), \ + ZAP_ATTRIBUTE_INDEX(179), \ 15, \ 23, \ ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ chipFuncArrayLevelControlServer }, /* Endpoint: 1, Cluster: Level Control (server) */ \ { \ - 0x001D, ZAP_ATTRIBUTE_INDEX(188), 5, 0, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x001D, ZAP_ATTRIBUTE_INDEX(194), 5, 0, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 1, Cluster: Descriptor (server) */ \ { 0x0300, \ - ZAP_ATTRIBUTE_INDEX(193), \ + ZAP_ATTRIBUTE_INDEX(199), \ 22, \ 36, \ ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ chipFuncArrayColorControlServer }, /* Endpoint: 1, Cluster: Color Control (server) */ \ { 0x0406, \ - ZAP_ATTRIBUTE_INDEX(215), \ + ZAP_ATTRIBUTE_INDEX(221), \ 4, \ 5, \ ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ chipFuncArrayOccupancySensingServer }, /* Endpoint: 1, Cluster: Occupancy Sensing (server) */ \ { \ - 0x0006, ZAP_ATTRIBUTE_INDEX(219), 1, 2, ZAP_CLUSTER_MASK(CLIENT), NULL \ + 0x0006, ZAP_ATTRIBUTE_INDEX(225), 1, 2, ZAP_CLUSTER_MASK(CLIENT), NULL \ }, /* Endpoint: 2, Cluster: On/Off (client) */ \ { \ - 0x0007, ZAP_ATTRIBUTE_INDEX(220), 3, 4, ZAP_CLUSTER_MASK(SERVER), NULL \ + 0x0007, ZAP_ATTRIBUTE_INDEX(226), 3, 4, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 2, Cluster: On/off Switch Configuration (server) */ \ } @@ -994,7 +1008,7 @@ // This is an array of EmberAfEndpointType structures. #define GENERATED_ENDPOINT_TYPES \ { \ - { ZAP_CLUSTER_INDEX(0), 17, 1472 }, { ZAP_CLUSTER_INDEX(17), 6, 82 }, { ZAP_CLUSTER_INDEX(23), 2, 6 }, \ + { ZAP_CLUSTER_INDEX(0), 18, 1479 }, { ZAP_CLUSTER_INDEX(18), 6, 82 }, { ZAP_CLUSTER_INDEX(24), 2, 6 }, \ } // Largest attribute size is needed for various buffers @@ -1004,7 +1018,7 @@ #define ATTRIBUTE_SINGLETONS_SIZE (687) // Total size of attribute storage -#define ATTRIBUTE_MAX_SIZE (1560) +#define ATTRIBUTE_MAX_SIZE (1567) // Number of fixed endpoints #define FIXED_ENDPOINT_COUNT (3) diff --git a/zzz_generated/lighting-app/zap-generated/gen_config.h b/zzz_generated/lighting-app/zap-generated/gen_config.h index 053035a8d0e6cc..e801337b0acc11 100644 --- a/zzz_generated/lighting-app/zap-generated/gen_config.h +++ b/zzz_generated/lighting-app/zap-generated/gen_config.h @@ -43,6 +43,7 @@ #define EMBER_AF_LOCALIZATION_CONFIGURATION_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_NETWORK_COMMISSIONING_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_OTA_PROVIDER_CLUSTER_CLIENT_ENDPOINT_COUNT (1) +#define EMBER_AF_OTA_REQUESTOR_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_OCCUPANCY_SENSING_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_ON_OFF_CLUSTER_CLIENT_ENDPOINT_COUNT (1) #define EMBER_AF_ON_OFF_CLUSTER_SERVER_ENDPOINT_COUNT (1) @@ -133,6 +134,11 @@ #define ZCL_USING_OTA_PROVIDER_CLUSTER_CLIENT #define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_PROVIDER_CLIENT +// Use this macro to check if the server side of the OTA Software Update Requestor cluster is included +#define ZCL_USING_OTA_REQUESTOR_CLUSTER_SERVER +#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_REQUESTOR_SERVER +#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_REQUESTOR + // Use this macro to check if the server side of the Occupancy Sensing cluster is included #define ZCL_USING_OCCUPANCY_SENSING_CLUSTER_SERVER #define EMBER_AF_PLUGIN_OCCUPANCY_SENSING_SERVER diff --git a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h index a1b3008d43c825..63199726f2da29 100644 --- a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h @@ -30,6 +30,8 @@ class Test_TC_DM_1_3_Simulated : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DM_1_3_Simulated() {} + /////////// TestCommand Interface ///////// void NextTest() override { diff --git a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h index a1b3008d43c825..63199726f2da29 100644 --- a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h @@ -30,6 +30,8 @@ class Test_TC_DM_1_3_Simulated : public TestCommand AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); } + ~Test_TC_DM_1_3_Simulated() {} + /////////// TestCommand Interface ///////// void NextTest() override {