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.
ESP8266 does not stop to broadcast SSID
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: ESP8266 does not stop to broadcast SSID
ap=network.WLAN(network.AP_IF)
ap.active(False)
Turns off the access point.
ap.active(False)
Turns off the access point.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
-
- Posts: 2
- Joined: Thu May 14, 2020 2:49 am
Re: ESP8266 does not stop to broadcast SSID
Hey Kevin, thanks very much for your answer. I have modified my code and it looks like this:
Thanks a lot buddy!
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