9.14.1.1 +SNTPC

This command is used to read or set the SNTP configuration. This command is a configuration command which supports setting and getting parameter values. The behaviour of configuration commands is described in general in the Configuration Commands section.

Security – Default Security for the command is: GGGG

Table 9-128. Command Syntax

Command

Description

Security

AT+SNTPC

Query all configuration elements

GGGG

AT+SNTPC=<ID>

Query a single element

GGGG

AT+SNTPC=<ID>,<VAL>

Set a single element

GGGG

Table 9-129. Command Parameter Syntax

Parameter Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Integer String Byte Array

Parameter value

Table 9-130. Response Syntax

Response

Description

+SNTPC:<ID>,<VAL>

Read response

Table 9-131. Response Element Syntax

Element Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

Table 9-132. Configuration Parameters

ID

Name

Type

Description

Security

1

<NTP_ENABLED>

Bool

Network Time (NTP) client function
  • 0 – Disabled
  • 1 – Enabled

GGGG

2

<NTP_STATIC>

Bool

NTP configuration mode
  • 0 – DHCP - can be set via DHCP
  • 1 – Static - cannot be set by DHCP

GGGG

3

<NTP_SVR>

String

The address/name of NTP server Maximum length is 128

GGGG