optimize init sequenze

show SplashScreen while connecting

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-09-13 20:42:01 +02:00
parent a312625085
commit 6efbe91747
13 changed files with 69 additions and 64 deletions

View File

@@ -0,0 +1,20 @@
#include "analytics.h"
#include "esp_insights.h"
#include "esp_rmaker_utils.h"
extern const char insights_auth_key_start[] asm("_binary_insights_auth_key_txt_start");
extern const char insights_auth_key_end[] asm("_binary_insights_auth_key_txt_end");
void analytics_init(void)
{
esp_insights_config_t config = {
.log_type = ESP_DIAG_LOG_TYPE_ERROR | ESP_DIAG_LOG_TYPE_EVENT | ESP_DIAG_LOG_TYPE_WARNING,
.node_id = NULL,
.auth_key = insights_auth_key_start,
.alloc_ext_ram = false,
};
esp_insights_init(&config);
esp_rmaker_time_sync_init(NULL);
}