Skip to content

Commit

Permalink
Add ESP-IDF version to overview (#604)
Browse files Browse the repository at this point in the history
* Add ESP-IDF version to overview

* Add idf version to api endpoint
  • Loading branch information
eandersson authored Jan 5, 2025
1 parent 31a92aa commit 93f40a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ <h5>Overview</h5>
<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>
Expand All @@ -52,4 +56,4 @@ <h2>Realtime Logs <button pButton (click)="toggleLogs()" style="margin-left: 15p
</div>
</div>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions main/http_server/axe-os/src/app/services/system.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class SystemService {
isUsingFallbackStratum: true,
frequency: 485,
version: "2.0",
idfVersion: "v5.1.2",
boardVersion: "204",
flipscreen: 1,
invertscreen: 0,
Expand Down
1 change: 1 addition & 0 deletions main/http_server/axe-os/src/models/ISystemInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface ISystemInfo {
fallbackStratumUser: string,
frequency: number,
version: string,
idfVersion: string,
boardVersion: string,
invertfanpolarity: number,
autofanspeed: number,
Expand Down
1 change: 1 addition & 0 deletions main/http_server/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 93f40a3

Please sign in to comment.