Skip to content

[Espressif] wifi.radio.ap_info None #7240

@bill88t

Description

@bill88t

CircuitPython version

Adafruit CircuitPython 8.0.0-beta.4 on 2022-10-30; Waveshare ESP32-S2-Pico with ESP32S2
Adafruit CircuitPython 8.0.0-beta.4 on 2022-10-30; DFRobot Beetle ESP32-C3 with ESP32-C3FN4

Code/REPL

# without .env

>>> import wifi
>>> wifi.radio.start_ap("testing", "amogus sus")
>>> wifi.radio.ap_info
>>> wifi.radio.ap_info()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object is not callable
>>> a = wifi.radio.ap_info
>>> type(a)
<class 'NoneType'>

# with .env

>>> import wifi
>>> wifi.radio.start_ap("testing", "amogus sus")
>>> wifi.radio.ap_info
<Network>
>>> wifi.radio.ap_info.ssid
'Pi400'

Behavior

Without .env, ap_info is None.
With .env (it is connected to a wifi), ap_info is the connected wifi's network properties.

Tested on c3 and s2

Description

No response

Additional information

Tried using ol' realiable s2 as a reference for picow-ap, but here we are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions