Files
heltec-repeater/firmware/main/wifi_debug.h
T

25 lines
573 B
C

#pragma once
#include <stdint.h>
typedef enum {
WIFI_DEBUG_OFF,
WIFI_DEBUG_STARTING,
WIFI_DEBUG_ON,
WIFI_DEBUG_STOPPING,
WIFI_DEBUG_ERROR,
} wifi_debug_state_t;
typedef struct {
wifi_debug_state_t state;
char ssid[22];
char password[13];
int32_t error;
} wifi_debug_status_t;
// Starts only the control task. Wi-Fi remains off until an OLED request.
void wifi_debug_init(void);
void wifi_debug_toggle(void);
void wifi_debug_disable(void); // idempotent, queued outside the HTTP task
void wifi_debug_status(wifi_debug_status_t *out);