You can read or change IP address-related settings for P4M-440G using AT commands.
IP Address-related Settings
Item | Descriptoin |
---|---|
dhcp | Obtain an IP address automatically(1: Enable, 0: Disable) |
ipaddr | IP Address |
netmask | Subnet Mask |
gwaddr | Gateway IP Address |
nsaddr | DNS IP Address |
These settings are stored in a buffer called "envs." Therefore, you need to use AT commands related to "envs" to access each item.
You can use this command to read a specific item from "envs."
AT+ESR="<Item>"
at+esr="ipaddr"
+ESR:203.0.113.0
OK
AT+EBL="envs"
at+ebl="envs"
OK
AT+EBS="envs",0xa5c3
at+ebs="envs",0xa5c3
OK
AT+EBW="<Item>","<Value>"
AT+EBW="<Item>",<Value>
at+ebl="envs"
OK
at+ebw="dhcp",1
OK
at+ebs="envs",0xa5c3
OK
at+ebl="envs"
OK
at+ebw="dhcp",0
OK
at+ebw="ipaddr","203.0.113.0"
OK
at+ebw="netmask","255.255.255.0"
OK
at+ebs="envs",0xa5c3
OK