Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

location capability #18

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/platform/renesas/ConfigurationManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ CHIP_ERROR ConfigurationManagerImpl::StoreCountryCode(const char * code, size_t
return err;
}

CHIP_ERROR ConfigurationManagerImpl::GetLocationCapability(uint8_t & location)
{
location = to_underlying(chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum::kIndoorOutdoor);
return CHIP_NO_ERROR;
}

CHIP_ERROR ConfigurationManagerImpl::GetBootReason(uint32_t & bootReason)
{
return ReadConfigValue(RenesasConfig::kConfigKey_BootReason, bootReason);
Expand Down
1 change: 1 addition & 0 deletions src/platform/renesas/ConfigurationManagerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class ConfigurationManagerImpl : public Internal::GenericConfigurationManagerImp
CHIP_ERROR StoreBootReason(uint32_t bootReason) override;
CHIP_ERROR GetCountryCode(char * buf, size_t bufSize, size_t & codeLen) override;
CHIP_ERROR StoreCountryCode(const char * code, size_t codeLen) override;
CHIP_ERROR GetLocationCapability(uint8_t & location) override;
void RegisterNetif(struct netif* netif);

CHIP_ERROR GetPrimaryWiFiMACAddress(uint8_t * buf) override;
Expand Down