In Access Point mode my ESP8266 (NODEMCU) refuses to accept my preferred WLAN channel. The access point works fine otherwise. Whatever I specify for channel it sticks to channel 3. See the console log below. Am I doing something wrong, like configuring config params in the wrong sequence (if there is a prescribed sequence)?
With an ESP32 (NODEMCU) same code works fine, the channel number is accepted and also changed on the fly.
Scanning the Forums and Issues at Github for this problem gives me the impression that network.config() may require repair/revision (and/or better documentation), for example: ap.config('password') gives 'unknown config param'.
Rob.
Code: Select all
>>> import network
>>> ap = network.WLAN(network.AP_IF)
>>> ap.active(True)
>>> #6 ets_task(4020edb4, 29, 3fff9548, 10)
>>> ap.active()
True
>>> ap.config(essid='my_AP')
#7 ets_task(4020edb4, 29, 3fff9548, 10)
>>> ap.config(channel=7)
#8 ets_task(4020edb4, 29, 3fff9548, 10)
>>> ap.config('channel')
3
>>> ap.config(password='12345678')
#9 ets_task(4020edb4, 29, 3fff9358, 10)
>>> ap.config('password')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unknown config param
>>>