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

Public Member Functions

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

Member Function Documentation

◆ set() [1/2]

String set ( int  ,
String   
)
Description
This api is used to send HTTP(S) POST request.
Syntax
bg77.qhttppost.set(data_len,url)
Parameters
data_lenint Integer type. The length of HTTP(S) request information, including HTTP(S) request header and HTTP(S) request body. The range is 1-2048. Unit: byte.
urlString String type. Input URL.
Returns
String response

◆ set() [2/2]

String set ( int  ,
int  ,
int  ,
String   
)
Description
This api is used to send HTTP(S) POST request.
Syntax
bg77.qhttppost.set(data_len,input_time,rsptime,url)
Parameters
data_lenint Integer type. The length of HTTP(S) request information, including HTTP(S) request header and HTTP(S) request body. The range is 1-2048. Unit: byte.
input_timeint Integer type. The maximum time for inputting HTTP(S) request information. The range is 1-65535, and the default value is 60. Unit: second.
rsptimeint Integer type. The range is 1-65535, and the default value is 60. Unit: second. It is used to configure the timeout for the HTTP(S) GET response “+QHTTPGET: <err>[,<httprspcode>[,<content_length>]]” to be output after “OK” is returned.
urlString String type. Input URL.
Returns
String response