
-24-
v4.9
File system related functions
5.4. Getting file size
It gets the size of a file given as a parameter in the current directory.
Example of use:
{
int32_t sizeFile;
// gets the size of “file.txt”
sizeFile= _3G.getFileSize(“file.txt”);
}
This function returns:
•
The size of the file
•
‘-2’ if error
5.5. Deleting files
It deletes a file in the current directory.
Example of use:
{
// deletes “file.txt”
_3G.del(“file.txt”);
}
This function returns:
•
‘1’ on success
•
‘0’ if error
5.6. MicroSD is present
It checks if the microSD card is present.
Example of use:
{
uint8_t present;
// checks if microSD is present
present=SD.isSD() ;
}
This function returns:
•
‘1’ if is present
•
‘’0’ if not present
Содержание Waspmote 3G Plus GPS
Страница 1: ...Waspmote 3G GPS Networking Guide ...