mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add emsesp_version
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user