mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-17 13:22:53 +01:00
Add ESP-IDF version to overview (#604)
* Add ESP-IDF version to overview * Add idf version to api endpoint
This commit is contained in:
parent
31a92aa2a0
commit
93f40a32dc
@ -27,6 +27,10 @@
|
||||
<td>Version:</td>
|
||||
<td>{{info.version}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ESP-IDF Version:</td>
|
||||
<td>{{info.idfVersion}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Board Version:</td>
|
||||
<td>{{info.boardVersion}}</td>
|
||||
@ -52,4 +56,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -52,6 +52,7 @@ export class SystemService {
|
||||
isUsingFallbackStratum: true,
|
||||
frequency: 485,
|
||||
version: "2.0",
|
||||
idfVersion: "v5.1.2",
|
||||
boardVersion: "204",
|
||||
flipscreen: 1,
|
||||
invertscreen: 0,
|
||||
|
@ -33,6 +33,7 @@ export interface ISystemInfo {
|
||||
fallbackStratumUser: string,
|
||||
frequency: number,
|
||||
version: string,
|
||||
idfVersion: string,
|
||||
boardVersion: string,
|
||||
invertfanpolarity: number,
|
||||
autofanspeed: number,
|
||||
|
@ -422,6 +422,7 @@ static esp_err_t GET_system_info(httpd_req_t * req)
|
||||
cJSON_AddStringToObject(root, "fallbackStratumUser", fallbackStratumUser);
|
||||
|
||||
cJSON_AddStringToObject(root, "version", esp_app_get_description()->version);
|
||||
cJSON_AddStringToObject(root, "idfVersion", esp_get_idf_version());
|
||||
cJSON_AddStringToObject(root, "boardVersion", board_version);
|
||||
cJSON_AddStringToObject(root, "runningPartition", esp_ota_get_running_partition()->label);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user