Page 1 of 1

ESP-NOW

Posted: Mon Apr 06, 2020 3:37 am
by Mr-Techtron
In the esp-now user guide, it is mentioned that one can connect up to 10 encrypted pairs, but in esp_now.h "ESP_NOW_MAX_ENCRYPT_PEER_NUM" is defined as 6. Can someone please explain this, since I can't find enough documentation about ESP-NOW.

Re: ESP-NOW

Posted: Tue Apr 07, 2020 1:51 pm
by Mr-Techtron
Is there any way to get the rssi value using esp-now protocol?

Re: ESP-NOW

Posted: Tue Apr 07, 2020 8:00 pm
by Mr-Techtron
After some digging, I manage to get the RSSI value by enabling the promiscuous mode and implement filtering based on the frame control field of the mac header.

Re: ESP-NOW

Posted: Thu Apr 09, 2020 3:51 am
by Ivo.Tisch
Hi Mr Techtron,

I believe if you have only ESPNOW, you can have up to 10 encrypted pairs. If you are running both ESPNOW and have a wifi soft-AP, then you can only have 6 encrypted pairs.

Re: ESP-NOW

Posted: Thu Apr 09, 2020 1:03 pm
by Mr-Techtron
I'm using ESPNOW in WIFI_MODE_STA mode but can only add 6 peers.
In esp_now.h there is
#define ESP_NOW_MAX_ENCRYPT_PEER_NUM 6 /*!< Maximum number of ESPNOW encrypted peers */

I set it at 10 but I've got no success.