ESP-NOW

Mr-Techtron
Posts: 8
Joined: Mon Dec 30, 2019 4:20 am

ESP-NOW

Postby Mr-Techtron » Mon Apr 06, 2020 3:37 am

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.

Mr-Techtron
Posts: 8
Joined: Mon Dec 30, 2019 4:20 am

Re: ESP-NOW

Postby Mr-Techtron » Tue Apr 07, 2020 1:51 pm

Is there any way to get the rssi value using esp-now protocol?

Mr-Techtron
Posts: 8
Joined: Mon Dec 30, 2019 4:20 am

Re: ESP-NOW

Postby Mr-Techtron » Tue Apr 07, 2020 8:00 pm

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.

Ivo.Tisch
Posts: 11
Joined: Tue Nov 05, 2019 7:59 pm

Re: ESP-NOW

Postby Ivo.Tisch » Thu Apr 09, 2020 3:51 am

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.

Mr-Techtron
Posts: 8
Joined: Mon Dec 30, 2019 4:20 am

Re: ESP-NOW

Postby Mr-Techtron » Thu Apr 09, 2020 1:03 pm

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.

Who is online

Users browsing this forum: deimos and 28 guests