1

I am connected with my ESP-12 through a programmer and all the AT functions work correctly. However I do not get a connection when connecting to the ESP8266 module.

I have done the following:

Set the mode both: AT+CWMODE=3

Connect to an Access Point: AT+CWJAP="<name>","<password>" (Responds with WIFI Connected and WIFI Got IP)

Set the Access Point: AT+CWSAP = "<other_name>","<password>",<channel>,<password_security>

So at this time it should be connected to my local network and I can connect to it through wifi on my laptop. However when I connect to it, it says 'Connected, No Internet' (The network the esp8266 module is connected to, has internet).

When I troubleshoot problems it says DNS is not responding.

Does anyone have a clue what to do next? Or what I might do wrong?

  • ESP8266 isn't a router. It doesn't route your laptop traffic to the AP with the internet. – gre_gor Apr 24 '17 at 17:50
  • Also this problem has nothing to do with Arduino. – gre_gor Apr 24 '17 at 17:52
  • It is an Arduino like module which can be set with Arduino and is able to be set as Access Point so it should be able to connect and have internet,.. – Sliver2009 Apr 24 '17 at 18:29
  • make sure to set your AP to the same channel as the STA. – dandavis Apr 24 '17 at 22:08
  • @dandavis Thanx for the good tip! :) But I indeed made sure the channel was the same. – Sliver2009 Apr 25 '17 at 6:23
0

You can make the ESP8266 behave as a router, see Google for details. By default it won't do this.

You need to create two separate WIFI networks and then tell the ESP to 'route' traffic between them.

Your ESP needs to form one network (STA mode?). Your laptop needs to be on one network with the ESP. The laptop needs to be configured to use the ESP as the gateway and unless your ESP has a DHCP server the laptop needs a static address.

Your ESP also needs to be a client to you router's network, and needs to take an address from the Router's DHCP server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.