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 Configuration Commands section.

Security – Default Security for the command is: GGGG

Table 9-116. 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-117. 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-118. Response Syntax

Response

Description

+NETIFC:<IF>,<IF>

List response

+NETIFC:<ID>,<VAL>

Read response

Table 9-119. Response Element Syntax

Element Name

Type

Description

<IF>

Integer

Interface number

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

Table 9-120. 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

60<IPV6_GLO_ADDR>IPv6 Address

IPv6 global address

Format is ‘a:b:c:d::e:f/m’

This is a multiple value parameter with an ID range 60.0 to 60.1

GGGG

61<IPV6_LL_ADDR>IPv6 Address (Read Only)IPv6 link-local address

Format is ‘a:b:c:d::e:f/m’

GGGG

62<IPV6_GATEWAY>IPv6 AddressIPv6 gateway address

Format is ‘a:b:c:d::e:f’

GGGG