How to determine wlan connected ESSID ?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Posts: 106
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall

How to determine wlan connected ESSID ?

Postby devnull » Mon Feb 27, 2017 7:09 am

I am trying to get the connected ssid, however this is failing:

Code: Select all

>>> from network import WLAN,STA_IF
>>> sta = WLAN(STA_IF)
>>> print(sta.config('essid'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: AP required

I don't understand the error AP required ?

Also, is it possible to get the dbm signal strength without doing a scan of all the networks ?

Return to “ESP8266 boards”

Who is online

Users browsing this forum: No registered users and 3 guests