pfodParser  5.0.1
The pfodParser library is handles commands sent from the Android pfodApp, pfodApp supports WiFi, BLE, Bluetooth and SMS connections
ESP_PicoW_LittleFSsupport.h
Go to the documentation of this file.
1 #ifndef ESP_PICOW_LITTLE_FS_SUPPORT_H
2 #define ESP_PICOW_LITTLE_FS_SUPPORT_H
3 /*
4  ESP_PicoW_LittleFSsupport.h
5  * (c)2021-2025 Forward Computing and Control Pty. Ltd.
6  * NSW Australia, www.forward.com.au
7  * This code is not warranted to be fit for any purpose. You may only use it at your own risk.
8  * This generated code may be freely used for both private and commercial use
9  * provided this copyright is maintained.
10 */
11 #if defined(ESP8266) || defined(ESP32) || defined(ARDUINO_ARCH_RP2040) && !defined(__MBED__)
12 
13 #include <FS.h>
14 #include <LittleFS.h>
15 #include <stddef.h>
16 
17 /* ===================
18 r Open a file for reading. If a file is in reading mode, then no data is deleted if a file is already present on a system.
19 r+ open for reading and writing from beginning
20 
21 w Open a file for writing. If a file is in writing mode, then a new file is created if a file doesn’t exist at all.
22  If a file is already present on a system, then all the data inside the file is truncated, and it is opened for writing purposes.
23 w+ open for reading and writing, overwriting a file
24 
25 a Open a file in append mode. If a file is in append mode, then the file is opened. The content within the file doesn’t change.
26 a+ open for reading and writing, appending to file
27 ============== */
28 
29 bool initializeFS(); // returns false if fails
30 size_t showLittleFS_size(Print *outPtr);
31 void listDir(const char * dirname); // list to debugOut only that dir not sub-dirs!!
32 void listDir(const char * dirname, Print& out); // list to out only that dir not sub-dirs!!
33 void listDir(const char * dirname, Print* outPtr); // list to out only that dir not sub-dirs!!
34 
35 
36 #endif
37 #endif