Skip to content

Commit

Permalink
[Ameba] Update ci to version 30, and update wifi and LwIP API (projec…
Browse files Browse the repository at this point in the history
…t-chip#31253)

* [Ameba] Update ci to version 30

* [Ameba] LwIP and wifi API update
  • Loading branch information
pankore authored Jan 5, 2024
1 parent d38a649 commit 8f80305
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/examples-ameba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-ameba:26
image: ghcr.io/project-chip/chip-build-ameba:30
options: --user root

steps:
Expand Down
4 changes: 2 additions & 2 deletions examples/all-clusters-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ The CHIP demo application is supported on

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:26
$ docker pull ghcr.io/project-chip/chip-build-ameba:30

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:26
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:30

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions examples/all-clusters-minimal-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ The CHIP demo application is supported on
- Pull docker image:

```
$ docker pull ghcr.io/project-chip/chip-build-ameba:26
$ docker pull ghcr.io/project-chip/chip-build-ameba:30
```

- Run docker container:

```
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:26
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:30
```

- Setup build environment:
Expand Down
4 changes: 2 additions & 2 deletions examples/light-switch-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ The CHIP demo application is supported on

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:26
$ docker pull ghcr.io/project-chip/chip-build-ameba:30

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:26
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:30

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ The CHIP demo application is supported on

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:26
$ docker pull ghcr.io/project-chip/chip-build-ameba:30

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:26
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:30

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions examples/ota-requestor-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ A prototype application that demonstrates OTA Requestor capabilities.

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:26
$ docker pull ghcr.io/project-chip/chip-build-ameba:30

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:26
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:30

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions examples/pigweed-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ following features are available:

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:26
$ docker pull ghcr.io/project-chip/chip-build-ameba:30

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:26
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:30

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions src/platform/Ameba/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiSecurityType(app::Clusters::WiFiNe
unsigned short security = 0;
rtw_wifi_setting_t setting;

error = matter_wifi_get_security_type("wlan0", &security, &setting.key_idx, setting.password);
error = matter_wifi_get_security_type(WLAN0_IDX, &security, &setting.key_idx, setting.password);
err = AmebaUtils::MapError(error, AmebaErrorType::kWiFiError);
if (err != CHIP_NO_ERROR)
{
Expand Down Expand Up @@ -360,7 +360,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiChannelNumber(uint16_t & channelNu
int32_t error;
unsigned char channel;

error = matter_wifi_get_wifi_channel_number("wlan0", &channel);
error = matter_wifi_get_wifi_channel_number(WLAN0_IDX, &channel);
err = AmebaUtils::MapError(error, AmebaErrorType::kWiFiError);
if (err != CHIP_NO_ERROR)
channelNumber = 0;
Expand Down
1 change: 0 additions & 1 deletion src/platform/Ameba/NetworkCommissioningDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#pragma once
#include "chip_porting.h"
#include <platform/NetworkCommissioning.h>
#include <wifi_structures.h>

namespace chip {
namespace DeviceLayer {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/Ameba/NetworkCommissioningWiFiDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void AmebaWiFiDriver::OnScanWiFiNetworkDone()
CHIP_ERROR GetConfiguredNetwork(Network & network)
{
rtw_wifi_setting_t wifi_setting;
wifi_get_setting(WLAN0_NAME, &wifi_setting);
matter_wifi_get_setting(WLAN0_IDX, &wifi_setting);

uint8_t length = strnlen(reinterpret_cast<const char *>(wifi_setting.ssid), DeviceLayer::Internal::kMaxWiFiSSIDLength);
if (length > sizeof(network.networkID))
Expand Down

0 comments on commit 8f80305

Please sign in to comment.