mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
Add examples/esp32/uart-bridge
This commit is contained in:
1 parent
2d5c26d44f
commit
46bf79455c
20 files changed
+434
-8
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#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 *, void *);
|
||||
int uart_read(void *buf, size_t len);
|
||||
bool wifi_init(const char *ssid, const char *pass);
|
||||
void cli(uint8_t ch);
|
||||
Reference in new issue
Block a user