AT 指令如下:
AT+CWMODE=2 // Set WiFi SoftAP mode
AT+CWMODE?
AT+CWDHCP=1,2 // Enable SoftAP DHCP mode
AT+CWDHCP?
AT+CWDHCPS? // Query the IPv4 Addresses Allocated by an ESP32 SoftAP DHCP Server
AT+CIPAP="192.10.5.1","192.10.5.1","255.255.255.0" // Set the IP Address of an ESP32 SoftAP
AT+CWDHCPS? // Query the IPv4 Addresses Allocated by an ESP32 SoftAP DHCP Server
AT+CWDHCPS=1,60,"192.10.5.2","192.10.5.100" // Set the IPv4 Addresses Allocated by an ESP32 SoftAP DHCP Server