ESP_IOT v2.5
IOT ESP Coding
SPIFFModule.h
Go to the documentation of this file.
1
2
3#ifndef SPIFFModule_h
4#define SPIFFModule_h
5
6#include "../../Defines.h"
7#include "WiFi.h"
8
9//! The SPIFF module is for storing messages that are retrievable later as it stores on a folder area of the ESP chip
10//!prints a timestamp
12
13//!print a string to spiff (a new line is added)
14void println_SPIFFModule(char *string);
15
16//!print a string to spiff (NO new line is added)
17void print_SPIFFModule(char *string);
18
19//!print a int to spiff (NO new line is added)
20void printInt_SPIFFModule(int val);
21
22//! delete the spiff files..
24
25//! prints the spiff file to the SerialDebug output
27
28//! sends SPIFF module strings over MQTT, starting at the number back specified. This will use the current users MQTT credentials..
29void sendStrings_SPIFFModule(int numberOfLines);
30
31//! the setup for this module
33
34//! a loop if anything (nothing right now)
35void loop_SPIFFModule();
36
37//!save the screen to a file on the SPIFF
39
40#ifdef M5_CAPTURE_SCREEN
41/***************************************************************************************
42 * Function name: M5Screen2bmp
43 * Description: Dump the screen to a WiFi client
44 * Image file format: Content-type:image/bmp
45 * return value: always true
46 ***************************************************************************************/
47bool M5Screen2bmp(WiFiClient &client);
48
49//!writes a FB to a file..
50void writeFB_SPIFFModule(
51uint8_t * buf, /*!< Pointer to the pixel data */
52size_t len, /*!< Length of the buffer in bytes */
53char *fileName);
54
55#endif
56
57#endif //SPIFFModule_h
void loop_SPIFFModule()
a loop if anything (nothing right now)
void println_SPIFFModule(char *string)
print a string to spiff (a new line is added)
void printInt_SPIFFModule(int val)
print a int to spiff (NO new line is added)
void sendStrings_SPIFFModule(int numberOfLines)
sends SPIFF module strings over MQTT, starting at the number back specified. This will use the curren...
void printTimestamp_SPIFFModule()
prints a timestamp
void printFile_SPIFFModule()
prints the spiff file to the SerialDebug output
void print_SPIFFModule(char *string)
print a string to spiff (NO new line is added)
void deleteFiles_SPIFFModule()
delete the spiff files..
void setup_SPIFFModule()
the setup for this module
void saveScreen_SPIFFModule()
save the screen to a file on the SPIFF