Files
pi-dashboard/components/esp_wifi_bsp/esp_wifi_bsp.h

26 lines
494 B
C
Raw Normal View History

2026-02-15 02:48:59 +09:00
#ifndef ESP_WIFI_BSP_H
#define ESP_WIFI_BSP_H
2026-02-15 04:15:30 +09:00
#include <freertos/FreeRTOS.h>
#include <freertos/event_groups.h>
#include <stdbool.h>
2026-02-15 02:48:59 +09:00
2026-02-15 04:15:30 +09:00
#ifdef __cplusplus
extern "C" {
#endif
2026-02-15 02:48:59 +09:00
2026-02-15 04:15:30 +09:00
#define WIFI_CONNECTED_BIT BIT0
#define WIFI_DISCONNECTED_BIT BIT1
void wifi_sta_init(void);
bool wifi_sta_wait_connected(uint32_t timeout_ms);
bool wifi_sta_is_connected(void);
EventGroupHandle_t wifi_sta_get_event_group(void);
void wifi_sta_get_ip_str(char *buf, size_t len);
#ifdef __cplusplus
}
#endif
#endif