Both Mode ESP8266 (AP and Client Mode)

15,679

3

1

Introduction: Both Mode ESP8266 (AP and Client Mode)

About: someone who likes electronics Yt channel : https://www.youtube.com/c/mrsottong IG 1 : sottong_teknik

In the previous article I made a Tutorial on how to set the mode on ESP8266, which is as an Access point or wifi station and as a wifi client.

in this article I will show you how to set ESP8266 mode to be both mode. That is, in this Mode ESP8266 can be an Access point and wif client simultaneously.

Step 1: Required Components

The component that you need:

Step 2: Programming

I have provided Sketches for this tutorial. the sketch can be downloaded below.

Before uploading a sketch to NodeMCU, make sure the NodeMCU board has been added to the Arduino IDE. You can read it in this article "Get Started With ESP8266 (NodeMCU Lolin V3)"

Step 3: Result

To ensure that ESP8266 can be used for access points and WiFi clients together, let's check one by one.

ESP8266 as an Wifi Clients:

  • Open Serial Monitor
  • Press reset on NodeMCU
  • If the serial monitor is displayed like Figure 1, it means that the ESP8266 has succeeded in becoming a WiFi client that is connected to an access point

ESP8266 as a wifi station:

  • Open the WiFi menu on the android phone.
  • If there is an access point named "NodeMCU" and you can connect to that access point, it means that ESP8266 has succeeded in becoming an access point for the Android phone.

Be the First to Share

    Recommendations

    • New Year, New Skill Student Design Challenge

      New Year, New Skill Student Design Challenge
    • Fix It Speed Challenge

      Fix It Speed Challenge
    • Anything Goes Contest 2021

      Anything Goes Contest 2021

    Comments

    0
    RobertoF43
    RobertoF43

    11 months ago

    You saved me a lot of hours of working, thanks a lot. I have to send sensor values to my android phone from many esp8266 that are collecting information from different rooms.