At first power ON WIFI module is in SoftAP mode so I get default APIP - "192.168.4.1" & APMAC - "1a:fe:34:9b:a0:99".
Now to join other network use below command sequence:
5. AT+CWQAP (Get ERROR in response because there is no configuration setting for Station mode)
6. AT+CWDHCP=1,1 (Get ERROR in response)
9. AT+CWJAP="WIFI Network","1234567890"
When module is set for Station mode and join to other network successfully then random IP and MAC address allocated (+CIFSR:STAIP,"252.231.255.255" & +CIFSR:STAMAC,"00:00:00:00:fc:e7"). After this I have to reset module(using AT+RST) and get message "ready\r\n WIFI CONNECTED\r\n WIFI GOT IP\r\n". Now again follow same command sequence(in the above 1-9) then only I get correct IP & MAC address. Also get OK response of AT commands "AT+CWQAP" & "AT+CWDHCP=1,1 " in this time.
In my router MAC filter is enable and in this situation MAC address is not match and not able to communicate. So in each module reset I have to follow above sequence two time to get connection with router.
Please let me know if you have some other solution.
Thanks in advance.
Still not get actual MAC address in first AT command sequence(1-9 show in the above post) only got after second attempt of all AT command sequence.
Not able to get actual Station Mode MAC Address(STAMAC) after RESET WIFI Module(ESP8266-12E).
After RESET module and configure for station mode got +CIPSTAMAC:"00:00:00:00:6c:6f" this MAC address.
Who is online
Users browsing this forum: No registered users and 2 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!