|
LOM2M
0.8.0
|
Functions | |
| const char * | contentType (const String &filename) |
| utime_t | get_utime () |
| String | get_ctime (time_t t) |
| utime_t | getTimeFromString (String et) |
| void | printHuman (Stream &to, int level, const char *tag, const char *data) |
| void | printHumanSerial (int level, const char *tag, const char *data) |
| String | getMac () |
| void | log_setup () |
| void | log (const char *fmt,...) |
| bool | FSOpen () |
| void | FSClose () |
| int | persistenceStore (JsonObject toStore, const char *name) |
| DeserializationError | persistenceLoad (JsonDocument &toStore, const char *name) |
Variables | |
| FS * | filesystem = &LittleFS |
| const char* contentType | ( | const String & | filename | ) |
| void FSClose | ( | ) |
Enable to close the file system
| bool FSOpen | ( | ) |
Enable to open the file system
| String get_ctime | ( | time_t | t | ) |
| utime_t get_utime | ( | ) |
| String getMac | ( | ) |
| utime_t getTimeFromString | ( | String | t | ) |
Get the time given in parameter. Use the oneM2M format %04d%02d%02dT%02d%02d%02d
| t | - time as String in oneM2M format |
| void log | ( | const char * | fmt, |
| ... | |||
| ) |
| void log_setup | ( | ) |
| DeserializationError persistenceLoad | ( | JsonDocument & | toStore, |
| const char * | name = defaultPersistenceName |
||
| ) |
Enable to load data from a file into a jsondocument (provided) This open and close file system to do so
| int persistenceStore | ( | JsonObject | toStore, |
| const char * | name = defaultPersistenceName |
||
| ) |
Enable to store in a json file the whole json object provided This open and close file system to do so
| toStore | json object to store in the file |
| name | (optional) name of the file where the data will be stored |
| void printHuman | ( | Stream & | to, |
| int | level, | ||
| const char * | tag, | ||
| const char * | data | ||
| ) |
| void printHumanSerial | ( | int | level, |
| const char * | tag, | ||
| const char * | data | ||
| ) |
| FS* filesystem = &LittleFS |