From 5ee6d9144041d1ce33e4e3fde51264cfc4f675f1 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sun, 2 Aug 2026 02:07:17 +0300 Subject: [PATCH] Don't send discovery message if encrypting is disabled in espnow --- flix/wifi.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flix/wifi.ino b/flix/wifi.ino index eea9d8a..f316f83 100644 --- a/flix/wifi.ino +++ b/flix/wifi.ino @@ -58,7 +58,7 @@ void sendWiFi(const uint8_t *buf, int len) { espnow.write(buf, len); static Rate discovery(2); - if (discovery) espnowBroadcast.write((const uint8_t *)"flix", 4); // broadcast message to help finding this device + if (espnow.isEncrypted() && discovery) espnowBroadcast.write((const uint8_t *)"flix", 4); // broadcast message to help finding this device return; }