9.11.1.1 +NETIFC

This command is used to read or set the network interface 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-104. Command Syntax

Command

Description

Security

AT+NETIFC

Query interface list

GGGG

AT+NETIFC=<IF>

Query all configuration elements

GGGG

AT+NETIFC=<IF>,<ID>

Query a single element

GGGG

AT+NETIFC=<IF>,<ID>,<VAL>

Set a single element

GGGG

Table 9-105. Command Parameter Syntax

Parameter Name

Type

Description

<IF>

Integer

Interface number

<ID>

Integer

Parameter ID number

<VAL>

Integer String Byte Array

Parameter value

Table 9-106. Response Syntax

Response

Description

+NETIFC:<IF>,<IF>

List response

+NETIFC:<ID>,<VAL>

Read response

Table 9-107. Response Element Syntax

Element Name

Type

Description

<IF>

Integer

Interface number

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

Table 9-108. Configuration Parameters

ID

Name

Type

Description

Security

1

<NAME>

String (Read Only)

Network interface name Maximum length is 16

GGGG

2

<ETHER>

MAC Address (Read Only)

Ethernet MAC address of interface

GGGG

3

<HOSTNAME>

String

Name of this interface Maximum length is 16

GGGG

10

<DHCPC_EN>

Bool

DHCP client enable
  • 0 – Disabled - use static configuration
  • 1 – Enabled - use automatic settings

GGGG

11

<DHCPC_LEASE_START>

UTC Time (Read Only)

DHCP lease start time, displayed in system time format

GGGG

12

<DHCPC_LEASE_ENDS>

UTC Time (Read Only)

DHCP lease end time, displayed in system time format

GGGG

13

<DHCPC_SRV_ADDR>

IPv4 Address (Read Only)

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

GGGG

40

<IP_MASK>

IPv4 Address

IP address and net mask' format is ‘a.b.c.d/m’

GGGG

41

<GATEWAY>

IPv4 Address

IP address of gateway format is ‘a.b.c.d’

GGGG