Page 1 of 1

ESP-NOW change ESP_NOW_MAX_ENCRYPT_PEER_NUM

Posted: Wed Dec 22, 2021 9:29 pm
by the-wal
Hello and thank your for your time.

I am trying to increase the number of excrypted peers from 6 to 12.

I have tried both in Arduino
  1.   ifdef ESP_NOW_MAX_ENCRYPT_PEER_NUM //if the macro MEDIAN_MAX_SIZE is defined
  2.   undef ESP_NOW_MAX_ENCRYPT_PEER_NUM //un-define it
  3.   define ESP_NOW_MAX_ENCRYPT_PEER_NUM 12//redefine it with the new value
  4.   endif
and changing it in esp_now.h
#define ESP_NOW_MAX_ENCRYPT_PEER_NUM 12

When I read the valeu before calling esp_now_init() the value returns as 12 but I can still only add 6 peers.
I get the error E (993) ESPNOW: Peer is full

Thank you again for your help.