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

Public Member Functions

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

Member Function Documentation

◆ set()

String set ( String  ,
int   
)
Description
This api is used to configure the parameters for HTTP(S) server, including configuring a PDP context ID, customizing HTTP(S) request header, outputting HTTP(S) response header and querying SSL settings.
Syntax
bg77.qhttpcfg.set(para,conf)
Parameters
paraString String type.
  • "contextid"
  • "requestheader"
  • "responseheader"
  • "sslctxid"
  • "contenttype"
confint
  • "contextid" Integer type. PDP context ID. The range is 1-16, and the default value is 1.
  • "requestheader" Integer type. Disable or enable customization of HTTP(S) request header.
    • 0 Disable
    • 1 Enable
  • "responseheader" Integer type. Disable or enable to output HTTP(S) response header.
    • 0 Disable
    • 1 Enable
  • "sslctxid" Integer type. SSL context ID used for HTTP(S). The range is 0-5, and the default value is 1. The SSL parameters can be configured by AT+QSSLCFG, and for details of this command, please refer to Quectel_BG95&BG77_SSL_ AT_Commands_Manual
  • "contenttype" Integer type. Data type of HTTP(S) body.
    • 0 application/x-www-form-urlencoded
    • 1 text/plain
    • 2 application/octet-stream
    • 3 multipart/form-data
Returns
String response

◆ get() [1/2]

String get ( )
Description
This api is used to configure the parameters for HTTP(S) server, including configuring a PDP context ID, customizing HTTP(S) request header, outputting HTTP(S) response header and querying SSL settings.
Syntax
bg77.qhttpcfg.get()
Returns
String response

◆ get() [2/2]

String get ( String  )
Description
This api is used to configure the parameters for HTTP(S) server, including configuring a PDP context ID, customizing HTTP(S) request header, outputting HTTP(S) response header and querying SSL settings.
Syntax
bg77.qhttpcfg.get(para)
Parameters
paraString String type.
  • "contextid"
  • "requestheader"
  • "responseheader"
  • "sslctxid"
  • "contenttype"
Returns
String response