Rework WiFi code #89

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

Originally created by @gorbit99 on 5/3/2025

This PR reworks the WiFi code in the following ways:

  • WiFiNetwork and WiFiProvisioning are now singleton classes, instead of namespaces with free-floating functions in them
  • The code for the wifi connection logic is now pulled into separate functions for clarity
  • The mcu only tries switching to the G phy mode if the connection on the N phy mode timed out, not when the credentials were incorrect
  • The reason for the failure is now reported correctly
*Originally created by @gorbit99 on 5/3/2025* This PR reworks the WiFi code in the following ways: - WiFiNetwork and WiFiProvisioning are now singleton classes, instead of namespaces with free-floating functions in them - The code for the wifi connection logic is now pulled into separate functions for clarity - The mcu only tries switching to the G phy mode if the connection on the N phy mode timed out, not when the credentials were incorrect - The reason for the failure is now reported correctly
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#89