Skip to content

Commit

Permalink
Add missing polling function to NoWifi connectivity manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Jul 31, 2024
1 parent 6da66b7 commit e754f83
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ class GenericConnectivityManagerImpl_NoWiFi
static const char * _WiFiAPModeToStr(ConnectivityManager::WiFiAPMode mode);
static const char * _WiFiStationStateToStr(ConnectivityManager::WiFiStationState state);
static const char * _WiFiAPStateToStr(ConnectivityManager::WiFiAPState state);
// TODO ICD rework: ambiguous declaration of _SetPollingInterval when thread and wifi are both build together
#if CHIP_CONFIG_ENABLE_ICD_SERVER && !CHIP_DEVICE_CONFIG_ENABLE_THREAD
CHIP_ERROR _SetPollingInterval(System::Clock::Milliseconds32 pollingInterval);
#endif

private:
ImplClass * Impl() { return static_cast<ImplClass *>(this); }
Expand Down Expand Up @@ -221,6 +225,15 @@ inline const char * GenericConnectivityManagerImpl_NoWiFi<ImplClass>::_WiFiAPSta
return nullptr;
}

#if CHIP_CONFIG_ENABLE_ICD_SERVER && !CHIP_DEVICE_CONFIG_ENABLE_THREAD
template <class ImplClass>
inline CHIP_ERROR
GenericConnectivityManagerImpl_NoWiFi<ImplClass>::_SetPollingInterval(System::Clock::Milliseconds32 pollingInterval)
{
return CHIP_ERROR_NOT_IMPLEMENTED;
}
#endif

} // namespace Internal
} // namespace DeviceLayer
} // namespace chip

0 comments on commit e754f83

Please sign in to comment.