Chat freely about anything...

User avatar
By OzGrant
#34454 G'day,
A youtube I've been watching states that AT+CIFSR returns:-

192.168.4.1 // AccessPoint address
192.168.0.15 //Station address

But with my version 1 8266 the reply is:-

+CIFSR:APIP, "192.168.4.1"
+CIFSR:APMAC,"5e:cf:7f:06:ad90"
+CIFSR:STAIP,"0.0.0.0"
+CIFSR:STAMAC,"5c:cf:7f:06:ad90"

So at a loss why the Station IP is 0.0.0.0 ????
Tks
User avatar
By jgustavoam
#34469 For reference : http://bbs.espressif.com/viewtopic.php?f=51&t=1022
4A-ESP8266__AT Instruction Set__EN_v1.4.pdf List of AT commands based on esp_iot_sdk_v1.4.0
4B-ESP8266__AT Command Examples__EN_v1.3.pdf Examples of using AT commands


AT+GMR View version info

AT+CWMODE=3 (example) Wi-Fi mode(sta/AP/sta+AP)
1 : station mode
2 : softAP mode
3 : softAP + station mode

AT+CWLAP Lists available APs

AT+CWJAP=<ssid>,<pwd> Connect to AP
<error code> 1 connecting timeout
<error code> 2 wrong password
<error code> 3 can not found target AP
<error code> 4 connect fail

AT+CIFSR Get local IP address
User avatar
By OzGrant
#34509 Tks for the information, I now get
at+CIFSR
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"5e:cf:7f:06:ad:90"
+CIFSR:STAIP,"192.168.2.38"
+CIFSR:STAMAC,"5c:cf:7f:06:ad:90"

and obtained he following
WIFI CONNECTED
WIFI GOT IP

I then set up a Virtual Server on my Belkin router
Inbound and private port =80
Private IP address 192.168.2.38
Now how do I access the 8266 (via the net), have tried my public IP address and station address.
I keep getting "URL you entered could not be found"
tks