mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-08-02 13:52:26 +02:00
* Move self_test check and Wi-Fi state into their modules Also removed main.h and superfluous GlobalState inits. * Fix compile error * EOL * Fix compile error
23 lines
538 B
C
23 lines
538 B
C
#ifndef CONNECT_H_
|
|
#define CONNECT_H_
|
|
|
|
#include "lwip/sys.h"
|
|
#include <arpa/inet.h>
|
|
#include <lwip/netdb.h>
|
|
|
|
#include "esp_wifi_types.h"
|
|
|
|
// Structure to hold WiFi scan results
|
|
typedef struct {
|
|
char ssid[33]; // 32 chars + null terminator
|
|
int8_t rssi;
|
|
wifi_auth_mode_t authmode;
|
|
} wifi_ap_record_simple_t;
|
|
|
|
void toggle_wifi_softap(void);
|
|
void wifi_init(void * GLOBAL_STATE);
|
|
esp_err_t wifi_scan(wifi_ap_record_simple_t *ap_records, uint16_t *ap_count);
|
|
esp_err_t get_wifi_current_rssi(int8_t *rssi);
|
|
|
|
#endif /* CONNECT_H_ */
|