UART bridge between two ESP32. I created this to establish a MAVLink connection between my drone (remote) and the ground station (base). I'm using a Seeedstudio Xiao ESP32C6 due to its compact size, low cost and the option to use an external antenna.
There are several debug flags, i.e. RSSI. All debug flags are off by default.
This bridge is intended for establishing a point to point connection between 2 devices. The MAC IDs for the remote/base ESP32 and UART GPIOs are being configured in config.h Use either #define PLATFORM_BASE or #define PLATFORM_REMOTE accordingly, the then configured MAC adresses will match their peer. PLATFORM_BASE will utilize the USB JTAG port to receive and send data.
Setting LONG_RANGE will enable the ESPNOW specific long range mode https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/wifi.html
Supposedly enabling line of sight ranges up to 1km albeit at reduced data rates. Range hasn't been tested yet, the default setting is LONG_RANGE true with a baud rate of 38400.
Testing the difference in signal strength between EXTERNAL_ANTENNA true/false to verify that the external antenna is indeed being used