From d22992654bbc55ca8a6d316b5da6c0489eb3b387 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 24 Aug 2022 15:16:57 +0200 Subject: [PATCH] path to certs changed to folder res --- src/OTA.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OTA.c b/src/OTA.c index db7068d..0c57996 100644 --- a/src/OTA.c +++ b/src/OTA.c @@ -210,14 +210,14 @@ static void OTATask(void *pvParameter) struct espfs_stat_t stat; //open file - file = espfs_fopen(fs, "ca_cert.pem"); + file = espfs_fopen(fs, "res/ca_cert.pem"); if (!file) { ESP_LOGE(TAG, "Failed to read certificate file"); goto update_error; } //get file info - espfs_stat(fs, "ca_cert.pem", &stat); + espfs_stat(fs, "res/ca_cert.pem", &stat); uint32_t fileSize; fileSize = stat.size; char *certbuf = (char*) malloc(fileSize);