diff --git a/.github/workflows/examples-ameba.yaml b/.github/workflows/examples-ameba.yaml index 4716a44f76b1e1..1d4d478d0c00b6 100644 --- a/.github/workflows/examples-ameba.yaml +++ b/.github/workflows/examples-ameba.yaml @@ -36,7 +36,7 @@ jobs: if: github.actor != 'restyled-io[bot]' container: - image: ghcr.io/project-chip/chip-build-ameba:41 + image: ghcr.io/project-chip/chip-build-ameba:42 options: --user root steps: diff --git a/examples/all-clusters-app/ameba/README.md b/examples/all-clusters-app/ameba/README.md index 2689f97026093a..3450d27befe551 100644 --- a/examples/all-clusters-app/ameba/README.md +++ b/examples/all-clusters-app/ameba/README.md @@ -27,11 +27,11 @@ The CHIP demo application is supported on - Pull docker image: - $ docker pull ghcr.io/project-chip/chip-build-ameba:35 + $ docker pull ghcr.io/project-chip/chip-build-ameba:42 - Run docker container: - $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:35 + $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:42 - Setup build environment: diff --git a/examples/light-switch-app/ameba/README.md b/examples/light-switch-app/ameba/README.md index 3c38ac3fbb4a2a..bc7953a87f8da2 100644 --- a/examples/light-switch-app/ameba/README.md +++ b/examples/light-switch-app/ameba/README.md @@ -26,11 +26,11 @@ The CHIP demo application is supported on - Pull docker image: - $ docker pull ghcr.io/project-chip/chip-build-ameba:35 + $ docker pull ghcr.io/project-chip/chip-build-ameba:42 - Run docker container: - $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:35 + $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:42 - Setup build environment: diff --git a/examples/lighting-app/ameba/README.md b/examples/lighting-app/ameba/README.md index b7a1a2a0e120e1..44bc04a0811dc4 100644 --- a/examples/lighting-app/ameba/README.md +++ b/examples/lighting-app/ameba/README.md @@ -23,11 +23,11 @@ The CHIP demo application is supported on - Pull docker image: - $ docker pull ghcr.io/project-chip/chip-build-ameba:35 + $ docker pull ghcr.io/project-chip/chip-build-ameba:42 - Run docker container: - $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:35 + $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:42 - Setup build environment: diff --git a/examples/ota-requestor-app/ameba/README.md b/examples/ota-requestor-app/ameba/README.md index 76560658a18be6..7c10b157e4f8db 100644 --- a/examples/ota-requestor-app/ameba/README.md +++ b/examples/ota-requestor-app/ameba/README.md @@ -6,11 +6,11 @@ A prototype application that demonstrates OTA Requestor capabilities. - Pull docker image: - $ docker pull ghcr.io/project-chip/chip-build-ameba:35 + $ docker pull ghcr.io/project-chip/chip-build-ameba:42 - Run docker container: - $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:35 + $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:42 - Setup build environment: diff --git a/examples/pigweed-app/ameba/README.md b/examples/pigweed-app/ameba/README.md index 794db6bae306be..c9bd9f82ce7a35 100644 --- a/examples/pigweed-app/ameba/README.md +++ b/examples/pigweed-app/ameba/README.md @@ -31,11 +31,11 @@ following features are available: - Pull docker image: - $ docker pull ghcr.io/project-chip/chip-build-ameba:35 + $ docker pull ghcr.io/project-chip/chip-build-ameba:42 - Run docker container: - $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:35 + $ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:42 - Setup build environment: diff --git a/src/platform/Ameba/ConnectivityManagerImpl.cpp b/src/platform/Ameba/ConnectivityManagerImpl.cpp index 4fb5ebfb018e82..c72113db12bebd 100644 --- a/src/platform/Ameba/ConnectivityManagerImpl.cpp +++ b/src/platform/Ameba/ConnectivityManagerImpl.cpp @@ -500,6 +500,10 @@ void ConnectivityManagerImpl::DriveStationState() mLastStationConnectFailTime = System::Clock::kZero; OnStationConnected(); } + else + { + ChangeWiFiStationState(kWiFiStationState_Connecting); + } } // Otherwise the station interface is NOT connected to an AP, so... diff --git a/src/platform/Ameba/NetworkCommissioningWiFiDriver.cpp b/src/platform/Ameba/NetworkCommissioningWiFiDriver.cpp index 778ec76198e1b1..9bcf1a1c595ba3 100644 --- a/src/platform/Ameba/NetworkCommissioningWiFiDriver.cpp +++ b/src/platform/Ameba/NetworkCommissioningWiFiDriver.cpp @@ -128,7 +128,7 @@ CHIP_ERROR AmebaWiFiDriver::ConnectWiFiNetwork(const char * ssid, uint8_t ssidLe { CHIP_ERROR err = CHIP_NO_ERROR; bool connected; - +#if CHIP_DEVICE_CONFIG_ENABLE_WIFI // If device is already connected to WiFi, then disconnect the WiFi, chip::DeviceLayer::Internal::AmebaUtils::IsStationConnected(connected); if (connected) @@ -159,7 +159,7 @@ CHIP_ERROR AmebaWiFiDriver::ConnectWiFiNetwork(const char * ssid, uint8_t ssidLe ConnectivityMgrImpl().ChangeWiFiStationState(state); chip::DeviceLayer::Internal::AmebaUtils::WiFiConnect(ssid, key); }); - +#endif return err; } diff --git a/src/platform/Ameba/SystemTimeSupport.cpp b/src/platform/Ameba/SystemTimeSupport.cpp index 2fee97276ec2e8..acf451d49858ab 100644 --- a/src/platform/Ameba/SystemTimeSupport.cpp +++ b/src/platform/Ameba/SystemTimeSupport.cpp @@ -48,12 +48,12 @@ ClockImpl gClockImpl; Microseconds64 ClockImpl::GetMonotonicMicroseconds64(void) { - return (Clock::Microseconds64(xTaskGetTickCount()) * configTICK_RATE_HZ); + return Clock::Microseconds64(ameba_get_clock_time()); } Milliseconds64 ClockImpl::GetMonotonicMilliseconds64(void) { - return (Clock::Milliseconds64(xTaskGetTickCount())); + return std::chrono::duration_cast(GetMonotonicMicroseconds64()); } CHIP_ERROR ClockImpl::GetClock_RealTime(Clock::Microseconds64 & curTime)