Skip to content

Commit

Permalink
Merge branch 'sve' into cherry-pick-c104a72d298a5d8e30d24860daac1f0f4…
Browse files Browse the repository at this point in the history
…f24f75f
  • Loading branch information
woody-apple authored Jul 27, 2022
2 parents 1e679ea + 7069064 commit c996b7d
Show file tree
Hide file tree
Showing 516 changed files with 28,967 additions and 17,851 deletions.
3 changes: 3 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ BeagleBone
befc
betaprogram
BinaryInputBasic
Binfmt
bitbake
bld
BLE
Expand Down Expand Up @@ -160,7 +161,9 @@ btmgmt
BTN
BTP
btvirt
BuildKit
buildwithmatter
buildX
burndown
ButtonIsr
BytesMain
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/docker_img.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,3 @@ jobs:
run: |
cd integrations/docker/images/chip-build${{ matrix.img }}
./build.sh --latest
- name: Scan for vulnerabilities
uses: crazy-max/docker-scan-action@master
with:
# NOTE: This task validates the images built previously with latest tag
image: connectedhomeip/chip-build${{ matrix.img }}:latest
annotations: true
10 changes: 5 additions & 5 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-k32w:0.5.84
image: connectedhomeip/chip-build-k32w:0.5.87
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
Expand Down Expand Up @@ -82,15 +82,15 @@ jobs:
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w061+release light \
out/artifacts/k32w-light-release-no-ota/chip-k32w061-light-example \
k32w k32w0+release light \
out/artifacts/k32w-light-release-no-ota/chip-k32w0x-light-example \
/tmp/bloat_reports/
- name: Get lock size stats
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w061+release lock \
out/artifacts/k32w-lock-low-power-release/chip-k32w061-lock-example \
k32w k32w0+release lock \
out/artifacts/k32w-lock-low-power-release/chip-k32w0x-lock-example \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,15 +451,15 @@ server cluster AccessControl = 31 {
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
fabric_idx adminFabricIndex = 254;
fabric_idx fabricIndex = 254;
}

info event access(read: administer) AccessControlExtensionChanged = 1 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
fabric_idx adminFabricIndex = 254;
fabric_idx fabricIndex = 254;
}

attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
Expand Down Expand Up @@ -1540,7 +1540,6 @@ server cluster OperationalCredentials = 62 {
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
Expand Down Expand Up @@ -3607,7 +3606,7 @@ server cluster TestCluster = 4294048773 {
}

info event TestFabricScopedEvent = 2 {
fabric_idx arg1 = 254;
fabric_idx fabricIndex = 254;
}

attribute boolean boolean = 0;
Expand Down
6 changes: 6 additions & 0 deletions examples/all-clusters-app/esp32/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "esp_log.h"
#include "esp_spi_flash.h"
#include "freertos/FreeRTOS.h"
#include <DeviceInfoProviderImpl.h>
#include <app/server/OnboardingCodesUtil.h>

#define APP_TASK_NAME "APP"
Expand All @@ -39,6 +40,8 @@ namespace {
QueueHandle_t sAppEventQueue;
TaskHandle_t sAppTaskHandle;

chip::DeviceLayer::DeviceInfoProviderImpl gExampleDeviceInfoProvider;

} // namespace

AppTask AppTask::sAppTask;
Expand Down Expand Up @@ -84,6 +87,9 @@ CHIP_ERROR AppTask::Init()
#if CONFIG_HAVE_DISPLAY
InitDeviceDisplay();
#endif

chip::DeviceLayer::SetDeviceInfoProvider(&gExampleDeviceInfoProvider);

return err;
}

Expand Down
2 changes: 2 additions & 0 deletions examples/all-clusters-app/esp32/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ set(PRIV_INCLUDE_DIRS_LIST
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/zzz_generated/all-clusters-app"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/all-clusters-app/all-clusters-common/include"
"${CMAKE_CURRENT_LIST_DIR}/include"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/providers"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/platform/esp32"
)
set(SRC_DIRS_LIST
"${CMAKE_CURRENT_LIST_DIR}"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/zzz_generated/all-clusters-app/zap-generated"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated/attributes"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/providers"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/platform/esp32/route_hook"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/platform/esp32/ota"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/platform/esp32/common"
Expand Down
7 changes: 4 additions & 3 deletions examples/all-clusters-app/esp32/main/include/ShellCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class CASECommands
GetInstance().SetOnConnecting(false);
}

static void OnConnectionFailure(void * context, PeerId peerId, CHIP_ERROR error)
static void OnConnectionFailure(void * context, const ScopedNodeId & peerId, CHIP_ERROR error)
{
streamer_printf(streamer_get(), "Establish CASESession Failure!\r\n");
GetInstance().SetOnConnecting(false);
Expand All @@ -156,8 +156,9 @@ class CASECommands
ChipLogError(SecureChannel, "Can't get the CASESessionManager");
return;
}
caseSessionManager->FindOrEstablishSession(caseCommand->GetFabricInfo()->GetPeerIdForNode(caseCommand->GetNodeId()),
&sOnConnectedCallback, &sOnConnectionFailureCallback);
caseSessionManager->FindOrEstablishSession(
ScopedNodeId(caseCommand->GetNodeId(), caseCommand->GetFabricInfo()->GetFabricIndex()), &sOnConnectedCallback,
&sOnConnectionFailureCallback);
}

static CHIP_ERROR ConnectToNodeHandler(int argc, char ** argv)
Expand Down
Loading

0 comments on commit c996b7d

Please sign in to comment.