ESP8266 Developer Zone The Official ESP8266 Forum 2017-12-25T15:22:52+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=8795 2017-12-25T15:22:52+08:00 2017-12-25T15:22:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8795&p=18818#p18818 <![CDATA[Re: setting a gateway for an access point]]> That is a great work! How did you do that?

Statistics: Posted by Her Mary — Mon Dec 25, 2017 3:22 pm


]]>
2017-12-21T16:50:20+08:00 2017-12-21T16:50:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8795&p=18767#p18767 <![CDATA[Re: setting a gateway for an access point]]> Statistics: Posted by syemour — Thu Dec 21, 2017 4:50 pm


]]>
2017-12-21T06:10:23+08:00 2017-12-21T06:10:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8795&p=18762#p18762 <![CDATA[setting a gateway for an access point]]>
Now I'm not talking about the gateway command when initializing the softAP. That gateway is forward from the cell phone through the access point to the station network and on to the router. This would be a gateway returning from the router. Since the data sent will be on the AP network address, and the only thing the router knows is connected to it is the station mode network (assigned by the router). In other words the cell phone on the AP network has an AP assigned address of 192.168.4.2 and the AP on the ESP8266 is address 192.168.4.1 while the Station portion of the ESP8266 has the router assigned address of 192.168.200.25 with the router 192.168.200.1. So the data passed as 192.168.4.2 from the cell phone knows it's only wifi connection is to 192.168,4,1 so it passes the data there. The AP at 192.168,4.1 knows the connection to the router is through 192.168,200.25 by its internal gateway command and of course the station mode knows it connected to the router at 192.168,200.1 so the data is passed smoothly to the internet. But when data comes back from the internet for address 192.168,4.2 there is nothing to tell the router where to send it. Is there a command that can be sent when initializing the station that can tell the router that it (the station 192.168,200.25) is the gateway to the 192.168,4.1 network and thereby the 192.168.4.2 cell phone and any other phones that may subsequently connect?

Thanks in advance. Hope I was clear enough.
Bob

Statistics: Posted by bob41042 — Thu Dec 21, 2017 6:10 am


]]>