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

Public Member Functions

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

Member Function Documentation

◆ get()

String get ( String  ,
int   
)
Description
This api configures optional parameters of a CoAP client
Syntax
bg77.qcoapcfg.set(para,clientID)
Parameters
paraString String type.
  • "pdpcid"
  • "dtls"
  • "trans"
clientIDint Integer type. CoAP client identifier. Range: 0–5.
Returns
String response

◆ set() [1/2]

String set ( String  ,
int  ,
int   
)
Description
This api configures optional parameters of a CoAP client
Syntax
bg77.qcoapcfg.set(para,clientID,conf1)
Parameters
paraString String type.
  • "pdpcid"
  • "dtls"
clientIDint Integer type. CoAP client identifier. Range: 0–5.
conf1int
  • "pdpcid" Integer type. The PDP context ID used by CoAP client. Range: 1–16. Default value: 1.
  • "dtls" Integer type. Whether to enable DTLS mode for CoAP client.
    • 0 Use normal UDP connection for CoAP client
    • 1 Use DTLS connection for CoAP client
Returns
String response

◆ set() [2/2]

String set ( String  ,
int  ,
int  ,
int   
)
Description
This api configures optional parameters of a CoAP client
Syntax
bg77.qcoapcfg.set(para,clientID,conf1,conf2)
Parameters
paraString String type.
  • "dtls"
  • "trans"
clientIDint Integer type. CoAP client identifier. Range: 0–5.
conf1int
  • "dtls" Integer type. Whether to enable DTLS mode for CoAP client.
    • 0 Use normal UDP connection for CoAP client
    • 1 Use DTLS connection for CoAP client
  • "trans" Integer type. The acknowledgement timeout of CoAP confirmable message delivery. Range: 2–60. Default value: 2. Unit: second.
conf2int
  • "dtls" Integer type. DTLS context identifier. Range: 0–5.
  • "trans" Integer type. The maximum retransmission counts of CoAP confirmable message delivery. Range: 4–8. Default value: 5.
Returns
String response