Signed-off-by: Karl Osterseher <karli_o@gmx.at>
This commit is contained in:
Karl Osterseher
2024-01-23 20:34:05 +01:00
Unverified
parent 7150a48353
commit ef3583c583
2 changed files with 5 additions and 7 deletions

View File

@@ -2,7 +2,9 @@
#define _WIFI_INTERFACE_H_
#include "esp_netif_types.h"
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "freertos/task.h"
// use wifi provisioning
#define ENABLE_WIFI_PROVISIONING CONFIG_ENABLE_WIFI_PROVISIONING
@@ -24,7 +26,7 @@
#define WIFI_CONNECTED_BIT BIT0
#define WIFI_FAIL_BIT BIT1
void wifi_init (void);
esp_netif_t *get_current_netif (void);
void wifi_init(void);
esp_netif_t *get_current_netif(void);
#endif /* _WIFI_INTERFACE_H_ */

View File

@@ -4,17 +4,13 @@
Must be taken over/merge with wifi provision
*/
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "freertos/task.h"
#include "wifi_interface.h"
// #include "esp_event.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_mac.h"
#include "esp_wifi.h"
#include "wifi_interface.h"
#if ENABLE_WIFI_PROVISIONING
#include <string.h> // for memcpy