mongoose/examples/esp32/uart-bridge/main/main.h

19 lines
418 B
C
Raw Normal View History

2022-06-20 01:27:37 +08:00
#pragma once
#include "mongoose.h"
#include "driver/gpio.h"
#include "driver/uart.h"
#include "esp_spiffs.h"
#include "freertos/FreeRTOS.h"
#define FS_ROOT "/spiffs"
#define WIFI_FILE FS_ROOT "/wifi.json"
#define UART_NO 1
void uart_bridge_fn(struct mg_connection *, int, void *);
2022-06-20 01:27:37 +08:00
int uart_read(void *buf, size_t len);
bool wifi_init(const char *ssid, const char *pass);
void cli(uint8_t ch);
2022-08-03 01:39:36 +08:00
void cli_init(void);