From df14a5678ff06604b125331a89ba8ed974c33585 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Mon, 20 Jul 2026 19:01:38 +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 62b1649..4b17f19 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; }