Implement WiFi networking

This commit is contained in:
2023-05-15 22:55:12 +01:00
parent 129e8188d2
commit 7d84b95ad5
7 changed files with 287 additions and 2 deletions

29
components/wifi/wifi.h Normal file
View File

@@ -0,0 +1,29 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) Camden Dixie O'Brien
*/
#ifndef WIFI_H
#define WIFI_H
typedef enum {
WIFI_STATUS_DISCONNECTED,
WIFI_STATUS_CONNECTED,
} WifiStatus;
/**
* Initialize the WiFi subsystem, and try to connect to the network.
*/
void wifi_init(void);
/**
* Disconnect and reconnect to WiFi.
*/
void wifi_reconnect(void);
/**
* Get the status of the WiFi connection.
*/
WifiStatus get_wifi_status(void);
#endif