Add repeater protocol and device firmware features
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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);
|
||||
Reference in New Issue
Block a user