EasyManua.ls Logo

Neoway N11 V2 - File System Commands; Writing Data to File: +FSWF

Neoway N11 V2
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
111
17 File System Commands
17.1 Writing Data to File: +FSWF
Description
To write data to a file
Format
AT+FSWF=<file_name>,<mode>,<size>,<time><CR>
Parameter
<file_name>: File name, at most 50 characters
<mode>: mode
0: If the file already exists, new data is written to the start of the file and then it will
overwrites original data.
1: If the file already exists, new data is written to the end of the file.
<size>: Data size, ranging from 0 to 16384, unit: byte
<time>: timeout period, ranging from 0 to 60000, unit: ms
Return Value
<CR><LF>+FSWF: Timeout!<CR><LF>
or
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
Example
AT+FSWF="test.txt",1,1024,10000
>
OK
Write 1024-byte data to the test.txt file.
The command is executed
successfully.
AT+FSWF="test.txt",1,1024,10000
>
+FSWF: Timeout!
Write 1024-byte data to the test.txt file.
The command times out after 10
seconds.
AT+FSWF="test.txt",1,1024,60001
ERROR
ERROR is returned because the set
value exceeds the parameter range.
Remarks
The data to be written cannot exceed the threshold of the <size> value.
The user file space is 64 KB (65536 bytes), that is, the total size of files stored,
cannot exceed 64 KB.

Table of Contents

Related product manuals