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

Public Member Functions

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

Member Function Documentation

◆ set() [1/5]

String set ( String  )
Description
This api enables automatic firmware update for module via DFOTA.
Syntax
bg77.qfotadl.set(addr)
Parameters
addrString String type.
The maximum length is 700 bytes. It should be started with "HTTP://" or "HTTPS://", for example: "HTTP://<HTTP_server_URL>:<HTTP_port>/<HTTP_file_path>".
The maximum length is 700 bytes. It should be started with "CoAP://" or " CoAPS://", for example: "CoAP://<CoAP_server_URL>:< CoAP_port>/<CoAP_file_path>".
Returns
String response

◆ set() [2/5]

String set ( String  ,
int   
)
Description
This api enables automatic firmware update for module via DFOTA.
Syntax
bg77.qfotadl.set(addr,file_size)
Parameters
addrString String type.
"COM:"
file_sizeint Integer type. The file size expected to be uploaded. Unit: byte.
Returns
String response

◆ set() [3/5]

String set ( String  ,
int  ,
int   
)
Description
This api enables automatic firmware update for module via DFOTA.
Syntax
bg77.qfotadl.set(addr,file_size,timeout)
Parameters
addrString String type.
"COM:"
file_sizeint Integer type. The file size expected to be uploaded. Unit: byte.
timeoutint Integer type. The time waiting for data to be inputted to USB/UART. The default value is 5. Unit: seconds.
Returns
String response

◆ set() [4/5]

String set ( int  )
Description
This api enables automatic firmware update for module via DFOTA.
Syntax
bg77.qfotadl.set(para1)
Parameters
para1int Integer type.
1 Start update
2 Reserved
3 Configure whether to trigger DFOTA update immediately after DFOTA package is download
4 Get the size of local DFOTA package
5 Delete the local DFOTA package
Returns
String response

◆ set() [5/5]

String set ( int  ,
int   
)
Description
This api enables automatic firmware update for module via DFOTA.
Syntax
bg77.qfotadl.set(para1,para2)
Parameters
para1int Integer type.
1 Start update
2 Reserved
3 Configure whether to trigger DFOTA update immediately after DFOTA package is download
4 Get the size of local DFOTA package
5 Delete the local DFOTA package
para2int if <para1>=3,
0 Trigger DFOTA update triggered manually with AT+QFOTADL=1.
1 DFOTA update triggered automatically after package downloaded.
if <para1>=4, <para2> represents the size of local DFOTA package.
Returns
String response