ESP-NOW change ESP_NOW_MAX_ENCRYPT_PEER_NUM
Posted: 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
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.
I am trying to increase the number of excrypted peers from 6 to 12.
I have tried both in Arduino
- ifdef ESP_NOW_MAX_ENCRYPT_PEER_NUM //if the macro MEDIAN_MAX_SIZE is defined
- undef ESP_NOW_MAX_ENCRYPT_PEER_NUM //un-define it
- define ESP_NOW_MAX_ENCRYPT_PEER_NUM 12//redefine it with the new value
- endif
#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.