9.7.1.1 +DHCPSC

This command is used to read or set the DHCP server 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 9.2.3 Configuration Commands section.

Security – Default Security for the command is: GGGG

Table 9-38. Command Syntax
Command Description Security

AT+DHCPSC

Query pool list

GGGG

AT+DHCPSC=<IDX>

Query all configuration elements

GGGG

AT+DHCPSC=<IDX>,<ID>

Query a single element

GGGG

AT+DHCPSC=<IDX>,<ID>,<VAL>

Set a single element

GGGG
Table 9-39. Command Parameter Syntax
Parameter Name Type Description

<IDX>

Integer

Pool index

<ID>

Integer

Parameter ID number

<VAL>

Integer String Byte Array

Parameter value

Table 9-40. Response Syntax
Response Description

+DHCPSC:<ID>,<VAL>

Read response

Table 9-41. Response Element Syntax
Element Name Type Description

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

Table 9-42. Configuration Parameters
ID Name Type Description Security

1

<ENABLED>

Bool

DCE’s internal DHCP Server
  • 0’ – Disabled
  • 1’ – Enabled

GGGG

2

<POOL_START>

IPv4 Address

Start address of DHCP server pool format is ‘a.b.c.d’

GGGG

3

<POOL_END>

IPv4 Address (Read Only)

End address of DHCP server pool format is ‘a.b.c.d’

GGGG

4

<POOL_LEASES>

Integer (Read Only)

Number of leases

GGGG

5

<NETIF_IDX>

Integer

Network interface index

GGGG

10

<GATEWAY>

IPv4 Address

The address of the default gateway format is ‘a.b.c.d’

GGGG