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?

3
  • 2
    Did you use WiFi.setmode first?
    – user31481
    Dec 16 '17 at 13:30
  • look again ... it does not say FairyLink
    – jsotola
    Dec 16 '17 at 22:11
  • wow, i guess i only see what i want to see. will edit question for future readers
    – clockw0rk
    Dec 18 '17 at 1:43
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

1
  • after adding "WiFi.mode(WIFI_STA);" in the servers constructor, the mysterious FairyLink was removed. THX
    – clockw0rk
    Dec 16 '17 at 13:53

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.