Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ESP-NOW encrypt with ESP32 peer (Arduino 3.x): silent no-recv on SoftAP ESP8266

Open
#9,322 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
arduino, cpp

Research direction

Start by reading the linked arduino-esp32 issue and the DRAKE_2_0_TAIL field notes, then reproduce the ESP32-to-ESP8266 SoftAP case using the shown esp_now_set_kok and esp_now_add_peer calls. Determine whether encrypted cross-chip ESP-NOW is supported; done means documenting the support status, encryption limitation or workaround, and the SoftAP-versus-STA MAC distinction.

Written by the indexing model from the issue text.

Description

Summary

Encrypted ESP-NOW between ESP32 (Arduino-ESP32 3.x) and ESP8266 SoftAP fails silently (no recv on 8266) even with matching PMK/LMK, same channel, and STA joined SoftAP. Unencrypted peers work on the same setup.

Full write-up + repro sketch shapes:

https://github.com/espressif/arduino-esp32/issues/12796

ESP8266 side (fail)
esp_now_set_kok((u8*)PMK, 16);
esp_now_add_peer(tail_mac, ESP_NOW_ROLE_COMBO, 2, (u8*)LMK, 16);
// recv_cb never called for encrypted frames from ESP32
Workaround
esp_now_add_peer(tail_mac, ESP_NOW_ROLE_COMBO, 2, NULL, 0);  // no encrypt
Also document please

ESP8266 SoftAP MAC ≠ STA MAC (WiFi.softAPmacAddress() / client WiFi.BSSID() vs WiFi.macAddress()). Wrong peer MAC also looks like “ESP-NOW ready but dead.”

Asking: is encrypted ESP-NOW ESP32↔ESP8266 supported? If not, docs would save a lot of bench time.

Field notes: https://github.com/tmdrake/DRAKE_2_0_TAIL/blob/main/docs/ESPNOW_ENCRYPT_CROSS_CHIP_ISSUE.md

Dominant language
C++
Stars
16.7k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from esp8266/Arduino

All issues in esp8266/Arduino

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.