#FINIT – initialize FAT32 and set time and date
AT#FINIT=2014,11,19,10,17,00
OK
12.17 FWRITE – write a file - #FWRITE
#FWRITE – write a file
AT#FWRITE=
<name.ext>,<offset>
,<mode>,
<byte_num>,<data>
Write to file
Where:
<name.ext> - as seen before
<offset> - shift indicator in bytes
<mode> - the way of shifting
0 – beginning of the file
1 – current index
2 – end of file
<byte_num> - byte number to writing in hexadecimal format
<data> - data for writing to file
Example Writing “info.txt” file with "123456789012345678901234567890" data
AT#FWRITE="info.txt",00,2,1F,"123456789012345678901234567890 "
OK
12.18 FREAD – read a file - #FREAD
#FREAD – read a file
AT#FREAD=
<name.ext>,<offset>
,<mode>,
<byte_num>
Read from file
Where:
<name.ext> - as seen before
<offset> - shift indicator in bytes
<mode> - the way of shifting
0 – beginning of the file
1 – current index
2 – end of file
<byte_num> - byte number to writing in hexadecimal format, if higher than
file size will return whole file
Example Reading “info.txt” file
AT#FREAD="info.txt",00,0,FFFFFF
123456789012345678901234567890
OK
43