Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pico W: Initial Wi-Fi support #2980

Merged
merged 4 commits into from
Dec 2, 2023
Merged

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Dec 2, 2023

This enables the Wi-Fi capability for the Pico W. Tested with MNMC, Android app and MQTT. Probably needs further tuning for reconnects etc.

Had to move some calls for the Wi-Fi stack that affect ESP32 as well, but I confirmed it to still be working on a T-Beam.

@@ -44,6 +47,61 @@ Syslog syslog(syslogClient);

Periodic *wifiReconnect;

static void onNetworkConnected()
Copy link
Member Author

Choose a reason for hiding this comment

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

Only moved this up here such that it is defined before usage on line 155.
Including it in the header file lead to errors.

WiFi.disconnect(true);
WiFi.mode(WIFI_MODE_NULL);
#endif
WiFi.mode(WIFI_OFF);
Copy link
Member Author

Choose a reason for hiding this comment

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

Same as WIFI_MODE_NULL, but that's only defined for ESP32 (https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiType.h#L32). Same holds for WIFI_MODE_STA vs WIFI_STA.

@thebentern thebentern merged commit 6ff61b3 into meshtastic:master Dec 2, 2023
59 checks passed
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.

None yet

2 participants