On many ESP8266 tutorials, I learn that ESP8266 (Node MCU 1.0, ESP-12E) can operate in station mode and access point mode at the same time. That makes me wonder: is it possible for one ESP8266 module to act as a WiFi hotspot? That is, to share internet connection with other devices, so that when access point is enabled, and a phone is connected, then the phone can visit websites like google.com.

Is this possible to achieve with Arduion codes (or other methods)? If so, a reference or link for that would be really helpful.

  • \$\begingroup\$ Yes, it's possible. Example code that does this is installed by default if you enable the ESP8266 Core in the Arduino IDE. Just look for it under File->Examples. \$\endgroup\$
    – StarCat
    Aug 6 at 15:30
  • \$\begingroup\$ @StarCat I might have overlooked something there. Do you mind telling me the name of that example? Many thanks! \$\endgroup\$
    – Jethro
    Aug 6 at 18:20
  • 1
    \$\begingroup\$ the RangeExtender-NAPT example \$\endgroup\$
    – Juraj
    Aug 7 at 5:40
  • \$\begingroup\$ github.com/martin-ger/esp_wifi_repeater or this github.com/martin-ger/esp32_nat_router \$\endgroup\$
    – Antonio51
    Aug 7 at 8:18
  • \$\begingroup\$ Sorry for the late reply. I had to look it up. The example I remember seeing is the RangeExtender-NAPT example under Examples->ESP8266WiFi, mentioned by Juraj. \$\endgroup\$
    – StarCat
    Aug 8 at 18:02


Your Answer

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

Browse other questions tagged or ask your own question.