Page 1 of 1

ESP8266 does not stop to broadcast SSID

Posted: Thu May 14, 2020 3:00 am
by thunder2000nt
Hello everyone,

I have a concerned about my ESP8266 board, the code that I'm using is allowing to connect to my home wifi, but when I ran the wifi analyzer I noticed that this board was broadcasting and SSID called Microphyton-774081.

the code that I'm using to connect to the wifi is as follow:

import machine
import network
import bme280_Rev2
from machine import Pin, I2C
ssid = 'My-Home_SSID'
password = 'My-Wifi-Password'

station = network.WLAN(network.STA)
station.active(True)
station.connect(ssid, password)

Is there a way to stop broadcasting that SSID?

Thanks in advance.

Re: ESP8266 does not stop to broadcast SSID

Posted: Thu May 14, 2020 10:14 am
by kevinkk525
ap=network.WLAN(network.AP_IF)
ap.active(False)

Turns off the access point.

Re: ESP8266 does not stop to broadcast SSID

Posted: Sat May 16, 2020 2:35 am
by thunder2000nt
Hey Kevin, thanks very much for your answer. I have modified my code and it looks like this:

Code: Select all

import network
from network import WLAN

#WiFi information
ssid = 'My Wifi SSID' 
password = 'Wifi Password'

#Connect ESP8266 to the WiFi
wlan = network.WLAN(network.STA_IF)
wlan.active(True)

ap=network.WLAN(network.AP_IF)
ap.active(False)	#Turns off the access point and avoid to broadcast the Microcontroller SSID

wlan.connect(ssid,password) # Connect to the Wifi
Thanks a lot buddy!
:)