fix: yet more wiznet bugs, reconnects, led status indicators
This commit is contained in:
@@ -3,7 +3,20 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// Function prototype for initializing GPIO
|
||||
// Status states
|
||||
typedef enum {
|
||||
LED_STATE_OFF,
|
||||
LED_STATE_ON, // ok
|
||||
LED_STATE_WARNING, // slow blink
|
||||
LED_STATE_ERROR, // fast blink
|
||||
LED_STATE_BUSY // "breathing"
|
||||
} led_state_t;
|
||||
|
||||
// Initialize GPIO
|
||||
void init_gpio(void);
|
||||
|
||||
// LED status handling
|
||||
void led_status_set(led_state_t state);
|
||||
void led_status_process(void);
|
||||
|
||||
#endif // GPIO_H
|
||||
@@ -25,6 +25,7 @@ typedef struct {
|
||||
uint32_t last_yield;
|
||||
bool is_connected;
|
||||
char base_topic[64];
|
||||
bool discovery_published;
|
||||
} mqtt_state_t;
|
||||
|
||||
extern char nodes_list[MAX_PAYLOAD_LENGTH];
|
||||
|
||||
Reference in New Issue
Block a user