0

When powering up my WeMos D1 ESP8266, I suddenly find this hotspot named "FaryLink". What is this? I programmed the ESP to work as a web server, thus connecting to an existing hotspot and not providing any beacons or acting as an access point.

Google could not provide any information to this behaviour.

enter image description here

What is the purpose of this AP and how can I use / disable it?

dda
1,5951 gold badge12 silver badges17 bronze badges
asked Dec 16, 2017 at 13:22
1
  • 2
    Did you use WiFi.setmode first? Commented Dec 16, 2017 at 13:30

1 Answer 1

4

Did you use setmode() to put it in station mode?

wifi.setmode()

Configures the WiFi mode to use. NodeMCU can run in one of four WiFi modes:

  • Station mode, where the NodeMCU device joins an existing network.
  • Access point (AP) mode, where it creates its own network that others can join.
  • Station + AP mode, where it both creates its own network while at the same time being joined to another existing network.
  • WiFi off.

When using the combined Station + AP mode, the same channel will be used for both networks as the radio can only listen on a single channel.

NOTE: WiFi Mode configuration will be retained until changed even if device is turned off.

Syntax

wifi.setmode(mode)

Parameters

mode value should be one of

  • wifi.STATION for when the device is connected to a WiFi router. This is often done to give the device access to the Internet.
  • wifi.SOFTAP for when the device is acting only as an access point. This will allow you to see the device in the list of WiFi networks (unless you hide the SSID, of course). In this mode your computer can connect to the device, creating a local area network. Unless you change the value, the NodeMCU device will be given a local IP address of 192.168.4.1 and assign your computer the next available IP address, such as 192.168.4.2.
  • wifi.STATIONAP is the combination of wifi.STATION and wifi.SOFTAP. It allows you to create a local WiFi connection and connect to another WiFi router.
  • wifi.NULLMODE to switch off WiFi

Returns

current mode after setup

answered Dec 16, 2017 at 13:37
1
  • after adding "WiFi.mode(WIFI_STA);" in the servers constructor, the mysterious FairyLink was removed. THX Commented Dec 16, 2017 at 13:53

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.