Skip to content

Conversation

@bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Nov 28, 2025

Technically this would resolve the "state functions should be removed" part of #4364

It actually makes the functions private since we use them a lot internally - this also adds some intermediate states.

At least internally there is value in maintaining a WiFi state machine (unfortunately the drivers don't expose that - while they have it internally for sure)

Ironically only the async examples were using that API 🙃

Before blindly trying to mirror the async-wait-for-event API I wondered if the async counterpart is really something we want to stabilize (or even expose at all) as is?

It's easy to miss an event even with these (by willingly or by accident). (By just waiting for the event after the fact)

Wouldn't an async iteratator style API be better (and handling all the events in one place)? (And then ... the only way to not miss events for blocking would be something callback based (or a queue if the user polls it fast enough to not miss anything))

Maybe it's all fine but I have a feeling we should think about this before committing to anything - probably something to think about during the weekend :)

DRAFT since we should have an idea how to proceed with this first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant