Data Sheet
WT32-ETH01 DATASHEET
13
6.2 Basic Functions
6.2.1 Set IP/ Subnet Mask/ Gateway
1. IP address is the identity representation of the module in the LAN, which is unique in the LAN, so it can not be
repeated with other devices in the same LAN. There are two ways to obtain the IP address of the module: static
IP and DHCP / dynamic IP.
a. Static IP
Static IP needs to be set manually by the user. In the process of setting, attention should be paid to write IP,
subnet mask and gateway at the same time. Static IP is suitable for scenarios where IP and devices need to be
counted and correspond to each other. You should pay attention to the correspondence of IP address, subnet
mask and gateway when setting. To use static IP, you need to set each module and ensure that the IP address is
not repeated with other network devices in the LAN.
b. DHCP/Dynamic IP
The main function of DHCP / Dynamic IP is to dynamically obtain IP address, gateway address, DNS server
address and other information from the gateway host, so as to avoid the tedious steps of setting IP address. It
is applicable to scenarios where there is no requirement for IP, and it is not required to have a one-to-one
correspondence between IP and module.
Note: The module cannot be set to DHCP when directly connected to the computer. Generally, the computer
does not have the ability to assign IP addresses. If the module is set as DHCP directly connected to the
computer, it will cause the module to be in the state of waiting for IP address allocation all the time, which will
cause the module to fail to perform normal transmission. The module default static IP: 192.168.0.7
2. The subnet mask is mainly used to determine the network number and host number of the IP address, indicate
the number of subnets, and determine whether the module is in the subnet. The subnet mask must be set
properly. The commonly used class C subnet mask is 255.255.255.0. The network number is the first 24 bits, the
host number is the last 8 bits, and the number of subnets is 255. If the module IP is within the range of 255, it is
considered that the module IP is in the subnet.
3. Gateway refers to the network number of the current IP address of the module. If the module connects to the
external network by accessing devices such as routers, the gateway is the IP address of the router. If the setting
is wrong, the external network cannot be connected correctly. If you do not connect to devices such as routers,
you do not need to set it. It’s OK by default.
6.2.2 Restore Factory Settings
1. Restore factory settings by AT command: restore factory settings via AT+ RESTORE.
2. Restore factory settings by hardware:CFG to ground, restart the module.










