network configuration AbstractNIC.status() can't specify param for AP interface.

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
water
Posts: 75
Joined: Sun Sep 24, 2017 9:16 am

network configuration AbstractNIC.status() can't specify param for AP interface.

Post by water » Tue Mar 19, 2019 12:46 am

refer :
http://docs.micropython.org/en/latest/l ... twork.html

AbstractNIC.status([param])
param should be a string naming the particular status parameter to retrieve.

It work fine for STA interface:

Code: Select all

>>> sta.status('rssi')
-58

but not work for AP interface:

Code: Select all

>>> ap.status('stations')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unknown status param

documtnt says:

The return types and values are dependent on the network medium/technology. Some of the parameters that may be supported are:

what's mean may be ? :)

anyone tested ?

Post Reply