Unintended AP and STA mode at the same time

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Pablo Oyarzo
Posts: 16
Joined: Tue Mar 14, 2017 12:55 am

Unintended AP and STA mode at the same time

Post by Pablo Oyarzo » Tue Mar 14, 2017 1:02 am

How do I stop the already started AP on the ESP? I see you can use x.disconnect() but I believe this is only for STA mode

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Unintended AP and STA mode at the same time

Post by deshipu » Tue Mar 14, 2017 8:18 am

Code: Select all

import network

network.WLAN(network.AP_IF).active(False)

Pablo Oyarzo
Posts: 16
Joined: Tue Mar 14, 2017 12:55 am

Re: Unintended AP and STA mode at the same time

Post by Pablo Oyarzo » Tue Mar 14, 2017 8:16 pm

Thank you, it worked.

Post Reply