add emsesp_version

This commit is contained in:
proddy
2024-10-22 12:14:11 +02:00
parent 10cffd5c6f
commit 1513e1cec5
2 changed files with 5 additions and 3 deletions

View File

@@ -199,8 +199,9 @@ function custom_support() {
function check_upgrade(version: string) {
console.log('check upgrade from version', version);
const data = {
emsesp_version: VERSION,
upgradeable: true
// upgradeable: false
// upgradeable: false,
};
return data;
}
@@ -564,7 +565,7 @@ const EMSESP_SYSTEM_INFO_ENDPOINT = API_ENDPOINT_ROOT + 'system/info';
const emsesp_info = {
System: {
version: '3.7-demo',
version: VERSION,
uptime: '001+06:40:34.018',
'uptime (seconds)': 110434,
freemem: 131,

View File

@@ -200,7 +200,8 @@ bool WebStatusService::checkUpgrade(JsonObject root, std::string & latest_versio
emsesp::EMSESP::logger().debug("Checking for upgrade: %s > %s", EMSESP_APP_VERSION, latest_version.c_str());
#endif
root["upgradeable"] = (this_version > settings_version);
root["upgradeable"] = (this_version > settings_version);
root["emsesp_version"] = EMSESP_APP_VERSION;
return true;
}