You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The software version I am currently reading has always been 1, and modifying the value of "CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION" has no effect. What I am still reading is 1. May I ask in which folder “CHIP_CONFIG_SOFTWARE_VERSION_NUMBER ” is defined? Can users freely change the software version
A string identifying the software version running on the device.
*/
#ifndef CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING "1.0"
#endif
/**
CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION
A monothonic number identifying the software version running on the device.
*/
#ifndef CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION 1
#endif
void CheckSoftwareVersion()
{
uint32_t softwareVersion = 0;
if (ConfigurationMgr().GetSoftwareVersion(softwareVersion) == CHIP_NO_ERROR)
{
printf("Current Software Version: %lu\n", static_cast(softwareVersion));
}
else
{
printf("Failed to get Software Version.\n");
}
}
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
The software version reading has always been 1
The software version reading has always been 1 (CON-1516)
Jan 17, 2025
menuconfig:
CONFIG_ESP_SECURE_CERT_DS_PERIPHERAL=n
CONFIG_SEC_CERT_DAC_PROVIDER=y
CONFIG_ENABLE_ESP32_FACTORY_DATA_PROVIDER=y
CONFIG_ENABLE_ESP32_DEVICE_INSTANCE_INFO_PROVIDER=y
CONFIG_CHIP_FACTORY_NAMESPACE_PARTITION_LABEL="fctry"
CONFIG_FACTORY_DEVICE_INSTANCE_INFO_PROVIDER=y
code:
/**
*/
#ifndef CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING "1.0"
#endif
/**
*/
#ifndef CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION 1
#endif
void CheckSoftwareVersion()
{
uint32_t softwareVersion = 0;
if (ConfigurationMgr().GetSoftwareVersion(softwareVersion) == CHIP_NO_ERROR)
{
printf("Current Software Version: %lu\n", static_cast(softwareVersion));
}
else
{
printf("Failed to get Software Version.\n");
}
}
File Path:esp-matter\connectedhomeip\connectedhomeip\src\platform\ESP32\ConfigurationManagerImpl.cpp
CHIP_ERROR ConfigurationManagerImpl::GetSoftwareVersion(uint32_t & softwareVer)
{
softwareVer = CHIP_CONFIG_SOFTWARE_VERSION_NUMBER;
return CHIP_NO_ERROR;
}
The text was updated successfully, but these errors were encountered: