LoboMQ
Loading...
Searching...
No Matches
BrokerSDUtils.cpp File Reference

Go to the source code of this file.

Functions

String replaceChars (const char *str)
 
bool initializeSDCard (int csPin, Elog *logger, SemaphoreHandle_t *mutex, TickType_t delay)
 
void restoreBTs (std::vector< BrokerTopic > *topicsVector, Elog *logger, SemaphoreHandle_t *mutex, TickType_t delay)
 
void writeBTToFile (BrokerTopic *brokerTopic, Elog *logger, SemaphoreHandle_t *mutex, TickType_t delay)
 
void deleteBTFile (const char *filename, Elog *logger, SemaphoreHandle_t *mutex, TickType_t delay)
 

Detailed Description

Author
Rubén Gómez Villegas

This file contains the necessary logic to manage BrokerTopic objects on the SD card for LoboMQ.

Definition in file BrokerSDUtils.cpp.

Function Documentation

◆ deleteBTFile()

void deleteBTFile ( const char * filename,
Elog * logger,
SemaphoreHandle_t * mutex,
TickType_t delay )

Definition at line 154 of file BrokerSDUtils.cpp.

◆ initializeSDCard()

bool initializeSDCard ( int csPin,
Elog * logger,
SemaphoreHandle_t * mutex,
TickType_t delay )

Definition at line 34 of file BrokerSDUtils.cpp.

◆ replaceChars()

String replaceChars ( const char * str)

Definition at line 11 of file BrokerSDUtils.cpp.

◆ restoreBTs()

void restoreBTs ( std::vector< BrokerTopic > * topicsVector,
Elog * logger,
SemaphoreHandle_t * mutex,
TickType_t delay )

Definition at line 69 of file BrokerSDUtils.cpp.

◆ writeBTToFile()

void writeBTToFile ( BrokerTopic * brokerTopic,
Elog * logger,
SemaphoreHandle_t * mutex,
TickType_t delay )

Definition at line 124 of file BrokerSDUtils.cpp.