18 lines
383 B
C
18 lines
383 B
C
#pragma once
|
|
|
|
#include <esp_http_server.h>
|
|
|
|
#define WIFI_CONNECTED_BIT BIT0
|
|
#define WIFI_FAIL_BIT BIT1
|
|
#define HTML_RESPONSE_SIZE 512U
|
|
#define METRIC_NAME_MAX_SIZE 64U
|
|
#define METRIC_MAX_COUNT 32U
|
|
|
|
typedef struct _metric
|
|
{
|
|
char caMetricName[METRIC_NAME_MAX_SIZE];
|
|
float fMetricValue;
|
|
} sMetric;
|
|
|
|
void initMetrics(void);
|
|
void vSetMetrics(sMetric *paMetrics, uint16_t u16Size); |