Skip to content

Instantly share code, notes, and snippets.

@rayanamal
rayanamal / connection-drop-fix.patch
Last active May 23, 2026 11:23
Patch for connection dropout issue
diff --git a/components/openthread/src/port/esp_openthread_uart.c b/components/openthread/src/port/esp_openthread_uart.c
index 1e19af66e5..b2cb6a6395 100644
--- a/components/openthread/src/port/esp_openthread_uart.c
+++ b/components/openthread/src/port/esp_openthread_uart.c
@@ -8,7 +8,6 @@
#include <errno.h>
#include <fcntl.h>
-#include <sys/select.h>
@rayanamal
rayanamal / external-antenna.patch
Last active May 23, 2026 11:30
Patch to enable external antenna on the XIAO-ESP32-C6
diff --git a/examples/openthread/ot_rcp/main/esp_ot_rcp.c b/examples/openthread/ot_rcp/main/esp_ot_rcp.c
index 765fef58a2..bf97db1c77 100644
--- a/examples/openthread/ot_rcp/main/esp_ot_rcp.c
+++ b/examples/openthread/ot_rcp/main/esp_ot_rcp.c
@@ -31,10 +31,25 @@
#define TAG "ot_esp_rcp"
+#include "driver/gpio.h"
+#include "freertos/FreeRTOS.h"