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#ifdef USE_REST_MESSAGING
8#include <WiFiClientSecure.h>
9#else
10#include <WiFi.h>
11#endif
12
13//! The SPIFF module is for storing messages that are retrievable later as it stores on a folder area of the ESP chip
14//!prints a timestamp time: <time> :
16
17//! 4.4.24 output a line in JSON format adding timestamp as well
18void println_SPIFFModule_JSON(char *attribute, char *value);
19
20//!print a string to spiff (a new line is added)
21void println_SPIFFModule(char *string);
22
23//!print a string to spiff (NO new line is added)
24void print_SPIFFModule(char *string);
25
26//!print a int to spiff (NO new line is added)
27void printInt_SPIFFModule(int val);
28
29//! delete the spiff files..
31
32//! prints the spiff file to the SerialDebug output
34
35//! sends SPIFF module strings over MQTT, starting at the number back specified. This will use the current users MQTT credentials..
36void sendStrings_SPIFFModule(int numberOfLines);
37
38//! the setup for this module
40
41//! a loop if anything (nothing right now)
42void loop_SPIFFModule();
43
44//!save the screen to a file on the SPIFF
46
47//! sends the Semantic Marker onto the SPIFF
48//! format- {'time':time, 'SM':'<sm>'}
49void printSM_SPIFFModule(char *semanticMarker);
50
51#ifdef M5_CAPTURE_SCREEN
52/***************************************************************************************
53 * Function name: M5Screen2bmp
54 * Description: Dump the screen to a WiFi client
55 * Image file format: Content-type:image/bmp
56 * return value: always true
57 ***************************************************************************************/
58bool M5Screen2bmp(WiFiClient &client);
59
60//!writes a FB to a file..
62uint8_t * buf, /*!< Pointer to the pixel data */
63size_t len, /*!< Length of the buffer in bytes */
64char *fileName);
65
66#endif
67
68#endif //SPIFFModule_h
void writeFB_SPIFFModule(uint8_t *buf, size_t len, char *fileName)
writes a FB to a file..
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 time: <time> :
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 println_SPIFFModule_JSON(char *attribute, char *value)
4.4.24 output a line in JSON format adding timestamp as well
void printSM_SPIFFModule(char *semanticMarker)
void setup_SPIFFModule()
the setup for this module
void saveScreen_SPIFFModule()
save the screen to a file on the SPIFF