BA / Mbed OS BaBoRo1
Embed: (wiki syntax)

« Back to documentation index

ns_file_system.h File Reference

ns_file_system.h File Reference

Nanostack file system API. More...

Go to the source code of this file.

Functions

int ns_file_system_set_root_path (const char *root_path)
 Set file system root path.
char * ns_file_system_get_root_path (void)
 Get file system root path.

Detailed Description

Nanostack file system API.

Definition in file ns_file_system.h.


Function Documentation

char* ns_file_system_get_root_path ( void   )

Get file system root path.

Returns:
Root path to stack storage location.

Definition at line 49 of file ns_file_system.c.

int ns_file_system_set_root_path ( const char *  root_path )

Set file system root path.

Allow stack to store information to the location provided. Setting root path to NULL will prevent file system usage.

Parameters:
root_pathPath to location where networking files can be stored. Path must exists in the file system and path must end to "/" character. Path can be NULL to disable file system usage.
Returns:
0 in success, negative value in case of error.

Definition at line 25 of file ns_file_system.c.