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

Public Member Functions

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

Member Function Documentation

◆ get()

String get ( )
Description
This api synchronizes the local time with the Universal Time Coordinated (UTC) through the NTP server
Syntax
bg77.qntp.get()
Returns
String response

◆ set() [1/3]

String set ( int  ,
String   
)
Description
This api synchronizes the local time with the Universal Time Coordinated (UTC) through the NTP server
Syntax
bg77.qntp.set(contextID,server)
Parameters
contextIDint Integer type. Context ID. Range: 1–16.
serverString String type. Address of NTP server.
Returns
String response

◆ set() [2/3]

String set ( int  ,
String  ,
int   
)
Description
This api synchronizes the local time with the Universal Time Coordinated (UTC) through the NTP server
Syntax
bg77.qntp.set(contextID,server,port)
Parameters
contextIDint Integer type. Context ID. Range: 1–16.
serverString String type. Address of NTP server.
portint Integer type. Port number of NTP server. Range: 1–65535. Default value: 123.
Returns
String response

◆ set() [3/3]

String set ( int  ,
String  ,
int  ,
int   
)
Description
This api synchronizes the local time with the Universal Time Coordinated (UTC) through the NTP server
Syntax
bg77.qntp.set(contextID,server,port,auto_set_time)
Parameters
contextIDint Integer type. Context ID. Range: 1–16.
serverString String type. Address of NTP server.
portint Integer type. Port number of NTP server. Range: 1–65535. Default value: 123.
auto_set_timeint Integer type. Whether to automatically set synchronized time as local time.
  • 0 Not set
  • 1 Set
Returns
String response