Skip to content

wifi Monitor channel doesn't change in 8.0.0-beta.0 #6829

@anecdata

Description

@anecdata

CircuitPython version

Adafruit CircuitPython 8.0.0-beta.0 on 2022-08-18; Adafruit Feather ESP32-S2 TFT with ESP32S2

Code/REPL

import time
import random
import wifi

mon = wifi.Monitor()
while True:
    pkt = mon.packet()
    if pkt:
        print(f"{time.monotonic_ns()} {mon.lost()} {mon.queued():3} {pkt[wifi.Packet.LEN]:4} {mon.channel:2} {pkt[wifi.Packet.CH]:2} {pkt[wifi.Packet.RSSI]} {' '*10}", end="\r")
    mon.channel = random.randrange(1, 14)

Behavior

Code works fine in 7.3.2, channel updates rapidly as the loop chooses a new random channel. In 8.0.0-beta.0, channel never changes.

Description

No response

Additional information

I don't think there have been any changes to the Monitor code, so probably something in the esp-idf update.

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