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

Public Member Functions

String set (String, String)
 
String set (String, int, String)
 
String set (String, int, int, String)
 
String set (String, int, int, int, String)
 

Member Function Documentation

◆ set() [1/4]

String set ( String  ,
String   
)
Description
This api is used to upload a file to the storage.
Syntax
bg77.qfupl.set(filename,data)
Parameters
filenameString Name of the file to be uploaded. The maximum length is 80 bytes.
"<filename>" Upload the file to UFS
dataString Input data
Returns
String response

◆ set() [2/4]

String set ( String  ,
int  ,
String   
)
Description
This api is used to upload a file to the storage.
Syntax
bg77.qfupl.set(filename,file_size,data)
Parameters
filenameString Name of the file to be uploaded. The maximum length is 80 bytes.
"<filename>" Upload the file to UFS
file_sizeint The file size expected to be uploaded. The default value is 10240. Unit: byte
dataString Input data
Returns
String response

◆ set() [3/4]

String set ( String  ,
int  ,
int  ,
String   
)
Description
This api is used to upload a file to the storage.
Syntax
bg77.qfupl.set(filename,file_size,timeout,data)
Parameters
filenameString Name of the file to be uploaded. The maximum length is 80 bytes.
"<filename>" Upload the file to UFS
file_sizeint The file size expected to be uploaded. The default value is 10240. Unit: byte
timeoutint The time waiting for data to be inputted to USB/UART. Range: 1- 65535. The default value is 5. Unit: s.
dataString Input data
Returns
String response

◆ set() [4/4]

String set ( String  ,
int  ,
int  ,
int  ,
String   
)
Description
This api is used to upload a file to the storage.
Syntax
bg77.qfupl.set(filename,file_size,timeout,ackmode,data)
Parameters
filenameString Name of the file to be uploaded. The maximum length is 80 bytes.
"<filename>" Upload the file to UFS
file_sizeint The file size expected to be uploaded. The default value is 10240. Unit: byte
timeoutint The time waiting for data to be inputted to USB/UART. Range: 1- 65535. The default value is 5. Unit: s.
ackmodeint Whether to use ACK mode.
  • 0 Turn off the ACK mode by default.
  • 1 Turn on the ACK mode.
dataString Input data
Returns
String response