Both Mode ESP8266 (AP and Client Mode)

by MrSottong in Circuits > Arduino

23918 Views, 7 Favorites, 0 Comments

Both Mode ESP8266 (AP and Client Mode)

photo_2019-10-06_11-32-17.jpg

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.

Required Components

IMG_7153.JPG
photo_2019-10-05_10-36-43.jpg

The component that you need:

Programming

z.PNG

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)"

Downloads

Result

Capture.PNG
photo_2019-10-06_12-05-30.jpg

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.