Add wifi configuration using parameters and cli

Add console commands to setup wifi.
Add a parameter for choosing between STA and AP mode.
Add parameters for udp ports.
Remove WIFI_ENABLED macro.
This commit is contained in:
Oleg Kalachev
2026-01-22 22:58:43 +03:00
parent c0f3301da4
commit dd3575174b
9 changed files with 95 additions and 40 deletions
+5
View File
@@ -9,6 +9,7 @@
extern float channelZero[16];
extern float channelMax[16];
extern float rollChannel, pitchChannel, throttleChannel, yawChannel, armedChannel, modeChannel;
extern int wifiMode, udpLocalPort, udpRemotePort;
Preferences storage;
@@ -82,6 +83,10 @@ Parameter parameters[] = {
{"RC_THROTTLE", &throttleChannel},
{"RC_YAW", &yawChannel},
{"RC_MODE", &modeChannel},
// wifi
{"WIFI_MODE", &wifiMode},
{"WIFI_LOC_PORT", &udpLocalPort},
{"WIFI_REM_PORT", &udpRemotePort},
};
void setupParameters() {