Add GET WIFISCAN and base64 WiFi credential commands #259

Closed
opened 2026-04-05 17:52:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @nekomona on 7/12/2023

This PR add GET WIFISCAN command to initiate a blocking scan, retrieving what hotspot could be seen by the trackers during provisioning. Could avoid connecting to a 5G hotspot, misspelling, and might help future fancy provisioning.

The result would be printed in the format below:

[INFO ] [SerialCommands] [WSCAN] Scanning for WiFi networks...
[INFO ] [SerialCommands] [WSCAN] Found <Count> networks:
[INFO ] [SerialCommands] [WSCAN] 0:\t<SSID0 Length>\t<SSID0>\t(<RSSI0>)\t<OPEN/PASS>
[INFO ] [SerialCommands] [WSCAN] 1:\t<SSID1 Length>\t<SSID1>\t(<RSSI1>)\t<OPEN/PASS>

In addition, since CmdParser couldn't deal with double quotes in SSID / Password, a base64 version for serial provisioning is added (SET BWIFI <B64SSID> <B64PASS>). Everything is the same except encoded in base64 to avoid double quote in the command.

Currently blocked by #256

*Originally created by @nekomona on 7/12/2023* This PR add `GET WIFISCAN` command to initiate a blocking scan, retrieving what hotspot could be seen by the trackers during provisioning. Could avoid connecting to a 5G hotspot, misspelling, and might help future fancy provisioning. The result would be printed in the format below: ``` [INFO ] [SerialCommands] [WSCAN] Scanning for WiFi networks... [INFO ] [SerialCommands] [WSCAN] Found <Count> networks: [INFO ] [SerialCommands] [WSCAN] 0:\t<SSID0 Length>\t<SSID0>\t(<RSSI0>)\t<OPEN/PASS> [INFO ] [SerialCommands] [WSCAN] 1:\t<SSID1 Length>\t<SSID1>\t(<RSSI1>)\t<OPEN/PASS> ``` In addition, since `CmdParser` couldn't deal with double quotes in SSID / Password, a base64 version for serial provisioning is added (`SET BWIFI <B64SSID> <B64PASS>`). Everything is the same except encoded in base64 to avoid double quote in the command. Currently blocked by #256
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/SlimeVR-Tracker-ESP#259