Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Rob1
#95988 Hello,
I'm using a ESP8266-01S with AT commands. So far everything works as expected, but
I noticed a strange behaviour if I use leading zero in IP address.

There is a difference if I use

case A : AT+CIPSTA_CUR="192.168.004.041","192.168.004.001","255.255.255.000"
or
case B : AT+CIPSTA_CUR="192.168.4.41","192.168.4.1","255.255.255.0"

In both cases the device accepts the string. In case B it works with the corrcect IP address, but in case A
the default IP is used instead.

Is it not allowed to use leading zeros or am I doing something wrong?

Thank you for any hint.