#ifndef WIFI_PASSTHROUGH_H
#define WIFI_PASSTHROUGH_H

#include "ringBuffer.h"
#include "stm32f4xx_hal.h"

#ifdef __cplusplus
extern "C" {
#endif

// Replace these values for the Wi-Fi network and TCP server used for testing
#define WIFI_PASSTHROUGH_SSID                  "HC_HOME"
#define WIFI_PASSTHROUGH_PASSWORD              "$Bb1988121!"
#define WIFI_PASSTHROUGH_SERVER_IP             "192.168.1.176"
#define WIFI_PASSTHROUGH_SERVER_PORT           8000U

// Set to 0 to disable generated traffic and use only the USART1 bridge
#define WIFI_PASSTHROUGH_ENABLE_TEST_PAYLOAD   1U
#define WIFI_PASSTHROUGH_TEST_INTERVAL_MS      1000U
#define WIFI_PASSTHROUGH_TEST_LINE_REPEAT      40U

void WiFiPassthrough_Run(UART_HandleTypeDef *console_uart,
		ringBuffer_t *console_rx_buffer);

#ifdef __cplusplus
}
#endif

#endif
