#pragma once

#include <Arduino.h>
#include "data_model.h"
#include "wifi_manager.h"

void web_server_begin_ap(const SenderStatus *statuses, uint8_t count);
void web_server_begin_sta(const SenderStatus *statuses, uint8_t count);
void web_server_set_config(const WifiMqttConfig &config);
void web_server_set_sender_faults(const FaultCounters *faults, const FaultType *last_errors);
void web_server_set_last_batch(uint8_t sender_index, const MeterData *samples, size_t count);
void web_server_loop();
