RUI3 (RAK Unified Interface 3) - RAK4631
bg77::qfopen

Public Member Functions

String get (String)
 
String get (String, int)
 
String get ()
 

Member Function Documentation

◆ get() [1/3]

String get ( String  )
Description
This api can be used to open a file and get the file handle to be used in commands such as AT+QFREAD, AT+QFWRITE, AT+QFSEEK, AT+QFPOSITION, AT+QFTUCAT and AT+QCLOSE.
Syntax
bg77.qfopen.get(filename)
Parameters
filenameString NName of the file to be opened. The maximum length is 80 bytes.
"<filename>" Open the file in UFS
Returns
String response

◆ get() [2/3]

String get ( String  ,
int   
)
Description
This api can be used to open a file and get the file handle to be used in commands such as AT+QFREAD, AT+QFWRITE, AT+QFSEEK, AT+QFPOSITION, AT+QFTUCAT and AT+QCLOSE.
Syntax
bg77.qfopen.get(filename,mode)
Parameters
filenameString NName of the file to be opened. The maximum length is 80 bytes.
"<filename>" Open the file in UFS
modeint The open mode of the file.
  • 0 If the file does not exist, it will be created. If the file exists, it will be directly opened. And both of them can be read and written.
  • 1 If the file does not exist, it will be created. If the file exists, it will be overwritten. And both of them can be read and written.
  • 2 If the file exists, open it and it can be read only. When the file does not exist, an error will be responded.
Returns
String response

◆ get() [3/3]

String get ( )
Description
This api can be used to open a file and get the file handle to be used in commands such as AT+QFREAD, AT+QFWRITE, AT+QFSEEK, AT+QFPOSITION, AT+QFTUCAT and AT+QCLOSE.
Syntax
bg77.qfopen.get()
Returns
String response