I am using the latest AT command FW (AT_V1.0 based on ESP8266_NONOS_SDK_V1.5.3).
I can't set the DHCP lease time correctly.
I am using AT+CWDHCPS_DEF=1,3,"192.168.4.2","192.168.4.3" to set the lease time to 3 minutes. This command returns OK and it should store parameters to flash. But after I restart the ESP8266 module, the DHCP lease time returns to default 120 minutes, as you can see from the serial log below.
After restart, the AT+CWDHCPS_DEF? command returns: +CWDHCPS_DEF:3,192.168.4.2,192.168.4.3
But the AT+CWDHCPS_CUR? command returns: +CWDHCPS_CUR:120,192.168.4.2,192.168.4.3
Code: Select all
AT+RST
OK
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79
2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
rlŽ‚rlŒžâŒ¢þ
ready
AT+CWDHCPS_DEF?
+CWDHCPS_DEF:0,0.0.0.0,0.0.0.0
OK
AT+CWDHCPS_CUR?
+CWDHCPS_CUR:120,192.168.4.2,192.168.4.101
OK
AT+CWDHCPS_DEF=1,3,"192.168.4.2","192.168.4.3"
OK
AT+CWDHCPS_DEF?
+CWDHCPS_DEF:3,192.168.4.2,192.168.4.3
OK
AT+CWDHCPS_CUR?
+CWDHCPS_CUR:3,192.168.4.2,192.168.4.3
OK
AT+RST
OK
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79
2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
rlŽ‚rlŒžâŒ¢þ
ready
AT+CWDHCPS_DEF?
+CWDHCPS_DEF:3,192.168.4.2,192.168.4.3
OK
AT+CWDHCPS_CUR?
+CWDHCPS_CUR:120,192.168.4.2,192.168.4.3
OK
AT+GMR
AT version:1.0.0.0(Apr 16 2016 13:02:45)
SDK version:1.5.3(aec24ac9)
compile time:Apr 18 2016 14:20:15
OK