ESP-NOW change ESP_NOW_MAX_ENCRYPT_PEER_NUM

the-wal
Posts: 3
Joined: Tue Dec 21, 2021 1:22 am

ESP-NOW change ESP_NOW_MAX_ENCRYPT_PEER_NUM

Postby the-wal » Wed Dec 22, 2021 9:29 pm

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.

Who is online

Users browsing this forum: No registered users and 69 guests