Skip to content

Extend WiFi disconnect logging to specify reason - #3382

Open
Blake-Latchford wants to merge 1 commit into
meshcore-dev:devfrom
Blake-Latchford:wifi-disconnect-reason-logging
Open

Extend WiFi disconnect logging to specify reason#3382
Blake-Latchford wants to merge 1 commit into
meshcore-dev:devfrom
Blake-Latchford:wifi-disconnect-reason-logging

Conversation

@Blake-Latchford

Copy link
Copy Markdown

What is the problem?

Today if a user builds firmware with an incorrect WiFi SSID or password, they get a generic WiFi disconnected. error message.

What is the solution?

Extend logging to descirbe the reason that WiFi was disconnected.

Testing Done

I gathered the updated logs for the 3 scenarios below.

Provided an incorrect password

WiFi: Attempting manual WiFi reconnect...
WiFi: WiFi disconnected (reason=ASSOC_LEAVE). Flagging for reconnect...
WiFi: WiFi disconnected (reason=4WAY_HANDSHAKE_TIMEOUT). Flagging for reconnect...
WiFi: WiFi disconnected (reason=4WAY_HANDSHAKE_TIMEOUT). Flagging for reconnect...
WiFi: WiFi disconnected (reason=4WAY_HANDSHAKE_TIMEOUT). Flagging for reconnect...

Provided an incorrect SSID

WiFi: WiFi disconnected (reason=NO_AP_FOUND). Flagging for reconnect...

Provided correct SSID & password

WiFi: WiFi connected successfully!
WiFi: Got connection

# What is the problem?
Today if a user builds firmware with an incorrect WiFi SSID or password,
they get a generic `WiFi disconnected.` error message.

# What is the solution?
Extend logging to descirbe the reason that WiFi was disconnected.

# Testing Done
I gathered the updated logs for the 3 scenarios below.

## Provided an incorrect password
```
WiFi: Attempting manual WiFi reconnect...
WiFi: WiFi disconnected (reason=ASSOC_LEAVE). Flagging for reconnect...
WiFi: WiFi disconnected (reason=4WAY_HANDSHAKE_TIMEOUT). Flagging for reconnect...
WiFi: WiFi disconnected (reason=4WAY_HANDSHAKE_TIMEOUT). Flagging for reconnect...
WiFi: WiFi disconnected (reason=4WAY_HANDSHAKE_TIMEOUT). Flagging for reconnect...
```

## Provided an incorrect SSID
```
WiFi: WiFi disconnected (reason=NO_AP_FOUND). Flagging for reconnect...
```

## Provided correct SSID & password
```
WiFi: WiFi connected successfully!
WiFi: Got connection
```
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