Skip to content

fix: use base64 BWIFI for WiFi credential provisioning#1745

Open
JeromeRGero wants to merge 7 commits intoSlimeVR:mainfrom
JeromeRGero:fix/bwifi-special-char-ssid
Open

fix: use base64 BWIFI for WiFi credential provisioning#1745
JeromeRGero wants to merge 7 commits intoSlimeVR:mainfrom
JeromeRGero:fix/bwifi-special-char-ssid

Conversation

@JeromeRGero
Copy link

SSIDs containing non-alphanumeric characters (periods, hyphens, etc.) fail to connect when sent via the plain-text SET WIFI serial command.

The firmware already supports SET BWIFI which accepts base64-encoded SSID and password, eliminating all parsing issues. This change switches both the desktop and Android serial handlers to use it.

SSIDs containing non-alphanumeric characters (periods, hyphens, etc.)
fail to connect when sent via the plain-text SET WIFI serial command.

The firmware already supports SET BWIFI which accepts base64-encoded
SSID and password, eliminating all parsing issues. This change switches
both the desktop and Android serial handlers to use it.
@github-actions github-actions bot added the Area: Server Related to the server label Feb 11, 2026
Copy link
Member

@ButterscotchV ButterscotchV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ButterscotchV
Copy link
Member

Forgot to mention in my review, this would put a minimum tracker firmware version for serial of at least firmware v0.4.0, as that's when the BWIFI command was added. We could possibly add a fallback for the older one? But idk, it's been over 2 years and we have automatic updates now... It's probably fine; we just need to consider that when merging this.

JeromeRGero and others added 4 commits February 11, 2026 18:48
…dSerialHandler.kt

Co-authored-by: Butterscotch! <bscotchvanilla@gmail.com>
…pSerialHandler.kt

Co-authored-by: Butterscotch! <bscotchvanilla@gmail.com>
…pSerialHandler.kt

Co-authored-by: Butterscotch! <bscotchvanilla@gmail.com>
…dSerialHandler.kt

Co-authored-by: Butterscotch! <bscotchvanilla@gmail.com>
@ButterscotchV ButterscotchV linked an issue Feb 12, 2026 that may be closed by this pull request
Copy link
Member

@ButterscotchV ButterscotchV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the PR! This was meant to happen a long while ago when BWIFI was added to firmware, but it seems to have been lost to time.

Re-iterating to make it clear, this will set the minimum firmware version for setting WiFi through the server to be at least v0.4.0.

@Eirenliel
Copy link
Member

Can we parse the response and use a different command if it's unknown command?

@JeromeRGero
Copy link
Author

Can we parse the response and use a different command if it's unknown command?

I think that would come down to either parsing the serial response for the unrecognized command error and falling back to 'SET WIFI', or checking the firmware version before sending and picking the command. Version checking is probably the cleaner approach since setWifi is fire-and-forget.

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

Labels

Area: Server Related to the server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot Set WIFI SSID that Contains Emoji

3 participants