|
IoTivity-Lite
|
Functions | |
| int | oc_storage_config (const char *store) |
| open the storage More... | |
| long | oc_storage_read (const char *store, uint8_t *buf, size_t size) |
| read from the storage More... | |
| long | oc_storage_write (const char *store, const uint8_t *buf, size_t size) |
| write to storage More... | |
| int oc_storage_config | ( | const char * | store | ) |
open the storage
| store | the storage path |
| long oc_storage_read | ( | const char * | store, |
| uint8_t * | buf, | ||
| size_t | size | ||
| ) |
read from the storage
| store | the path to be read (cannot be NULL) |
| buf | the buffer to store the contents (cannot be NULL) |
| size | amount of bytes to read |
| long oc_storage_write | ( | const char * | store, |
| const uint8_t * | buf, | ||
| size_t | size | ||
| ) |
write to storage
| store | the store (file path, cannot be NULL) |
| buf | the buffer to write (cannot be NULL) |
| size | the size of the buffer to write |