Select one of the symbols to view example projects that use it.
 
Outline
#include "esp_system.h"
#include "esp_log.h"
#include "esp_ota_ops.h"
#include "esp_partition.h"
TAG
app_main()
Files
loading...
SourceVuESP-IDF Framework and Examplesotatool samplemain/otatool_main.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* OTA Tool example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *//* ... */ #include "esp_system.h" #include "esp_log.h" #include "esp_ota_ops.h" #include "esp_partition.h" static const char *TAG = "example"; void app_main(void) { ESP_LOGI(TAG, "OTA Tool Example"); const esp_partition_t *running = esp_ota_get_running_partition(); // Display the running partition ESP_LOGI(TAG, "Running partition: %s", running->label); ESP_LOGI(TAG, "Example end"); }{ ... }
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.