11#define BROKERSDUTILS_H
14#include <freertos/FreeRTOS.h>
15#include <freertos/semphr.h>
19#include <ArduinoJson.h>
24#define FILE_PATH "/LoboMQ/topics"
25#define FILE_FORMAT ".json"
27String replaceChars(
const char *str);
28bool initializeSDCard(
int csPin, Elog *logger, SemaphoreHandle_t *mutex, TickType_t delay = portMAX_DELAY);
29void restoreBTs(std::vector<BrokerTopic> *topicsVector, Elog *logger, SemaphoreHandle_t *mutex,
30 TickType_t delay = portMAX_DELAY);
31void writeBTToFile(
BrokerTopic* brokerTopic, Elog* logger, SemaphoreHandle_t *mutex, TickType_t delay = portMAX_DELAY);
32void deleteBTFile(
const char* filename, Elog* logger, SemaphoreHandle_t *mutex, TickType_t delay = portMAX_DELAY);