mirror of
https://codeberg.org/opentrafficmap/its-g5-receiver-firmware.git
synced 2026-07-30 20:45:39 +00:00
OTA more
This commit is contained in:
@@ -7,12 +7,15 @@ idf_component_register(
|
|||||||
"ethernet.c"
|
"ethernet.c"
|
||||||
"events.c"
|
"events.c"
|
||||||
"mqtt.c"
|
"mqtt.c"
|
||||||
|
"ota.c"
|
||||||
"sdcard.c"
|
"sdcard.c"
|
||||||
"spi.c"
|
"spi.c"
|
||||||
PRIV_REQUIRES
|
PRIV_REQUIRES
|
||||||
app_trace
|
app_trace
|
||||||
|
app_update
|
||||||
console
|
console
|
||||||
esp_eth
|
esp_eth
|
||||||
|
esp_https_ota
|
||||||
esp_netif
|
esp_netif
|
||||||
esp_wifi
|
esp_wifi
|
||||||
fatfs
|
fatfs
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "ethernet.h"
|
#include "ethernet.h"
|
||||||
#include "mqtt.h"
|
#include "mqtt.h"
|
||||||
|
#include "ota.h"
|
||||||
#include "sdcard.h"
|
#include "sdcard.h"
|
||||||
#include "spi.h"
|
#include "spi.h"
|
||||||
|
|
||||||
@@ -129,6 +130,7 @@ void app_main(void)
|
|||||||
console_init();
|
console_init();
|
||||||
|
|
||||||
sniffer_init();
|
sniffer_init();
|
||||||
|
ota_init();
|
||||||
|
|
||||||
/* Register commands */
|
/* Register commands */
|
||||||
#if CONFIG_ENABLE_SD
|
#if CONFIG_ENABLE_SD
|
||||||
@@ -141,6 +143,8 @@ void app_main(void)
|
|||||||
|
|
||||||
register_reboot();
|
register_reboot();
|
||||||
|
|
||||||
|
register_ota_cmd();
|
||||||
|
|
||||||
// start console REPL
|
// start console REPL
|
||||||
ESP_ERROR_CHECK(esp_console_start_repl(repl));
|
ESP_ERROR_CHECK(esp_console_start_repl(repl));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -856,8 +856,9 @@ CONFIG_BOOTLOADER_PROJECT_VER=1
|
|||||||
#
|
#
|
||||||
# Application Rollback
|
# Application Rollback
|
||||||
#
|
#
|
||||||
|
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
|
||||||
# default:
|
# default:
|
||||||
# CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE is not set
|
# CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK is not set
|
||||||
# end of Application Rollback
|
# end of Application Rollback
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -3645,7 +3646,7 @@ CONFIG_MBEDTLS_AES_C=y
|
|||||||
# default:
|
# default:
|
||||||
# CONFIG_MBEDTLS_CAMELLIA_C is not set
|
# CONFIG_MBEDTLS_CAMELLIA_C is not set
|
||||||
# default:
|
# default:
|
||||||
CONFIG_MBEDTLS_ARIA_C=y
|
# CONFIG_MBEDTLS_ARIA_C is not set
|
||||||
# default:
|
# default:
|
||||||
# CONFIG_MBEDTLS_DES_C is not set
|
# CONFIG_MBEDTLS_DES_C is not set
|
||||||
# default:
|
# default:
|
||||||
@@ -3751,7 +3752,7 @@ CONFIG_MBEDTLS_SHA384_C=y
|
|||||||
# default:
|
# default:
|
||||||
CONFIG_MBEDTLS_SHA512_C=y
|
CONFIG_MBEDTLS_SHA512_C=y
|
||||||
# default:
|
# default:
|
||||||
CONFIG_MBEDTLS_SHA3_C=y
|
# CONFIG_MBEDTLS_SHA3_C is not set
|
||||||
# default:
|
# default:
|
||||||
CONFIG_MBEDTLS_ROM_MD5=y
|
CONFIG_MBEDTLS_ROM_MD5=y
|
||||||
# end of Hash functions
|
# end of Hash functions
|
||||||
@@ -4192,7 +4193,8 @@ CONFIG_MQTT_TRANSPORT_WEBSOCKET_SECURE=y
|
|||||||
# Deprecated options for backward compatibility
|
# Deprecated options for backward compatibility
|
||||||
# CONFIG_APP_BUILD_TYPE_ELF_RAM is not set
|
# CONFIG_APP_BUILD_TYPE_ELF_RAM is not set
|
||||||
# CONFIG_NO_BLOBS is not set
|
# CONFIG_NO_BLOBS is not set
|
||||||
# CONFIG_APP_ROLLBACK_ENABLE is not set
|
CONFIG_APP_ROLLBACK_ENABLE=y
|
||||||
|
# CONFIG_APP_ANTI_ROLLBACK is not set
|
||||||
# CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_NONE is not set
|
# CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_NONE is not set
|
||||||
# CONFIG_LOG_BOOTLOADER_LEVEL_NONE is not set
|
# CONFIG_LOG_BOOTLOADER_LEVEL_NONE is not set
|
||||||
# CONFIG_LOG_BOOTLOADER_LEVEL_ERROR is not set
|
# CONFIG_LOG_BOOTLOADER_LEVEL_ERROR is not set
|
||||||
|
|||||||
Reference in New Issue
Block a user