Skip to content

Commit

Permalink
[Connectivity] Attempt to reconnect to wifi after disconnection
Browse files Browse the repository at this point in the history
- Call DriveStationState after receiving WiFiStationDisconnect event
  • Loading branch information
pankore committed Jul 26, 2022
1 parent a671405 commit cfb66f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/Ameba/ConnectivityManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ void ConnectivityManagerImpl::_OnPlatformEvent(const ChipDeviceEvent * event)
{
ChangeWiFiStationState(kWiFiStationState_Connecting_Failed);
}
DriveStationState();
}
if (event->Type == DeviceEventType::kRtkWiFiScanCompletedEvent)
{
Expand Down

0 comments on commit cfb66f8

Please sign in to comment.