esp-mesh-lite icon indicating copy to clipboard operation
esp-mesh-lite copied to clipboard

esp-mesh-lite ESP-NOW receive callback does not report rssi (AEGHB-920)

Open wemaxon opened this issue 1 year ago • 2 comments

Checklist

  • [X] Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • [X] Described the feature in detail and justified the reason for the request.
  • [X] Provided specific use cases and examples.

Feature description

The esp-mesh-lite ESP-NOW receive callback forwards only the sender mac address, the payload and its length. The Rx control info of ESP-NOW packets is omitted: void (*recv_cb)(const uint8_t *mac_addr, const uint8_t *data, int len))

Replace the mac_addr parameter with the Rx control info: void (*recv_cb)(const esp_now_recv_info_t *esp_now_info, const uint8_t *data, int len)).

Use cases

Any case where Rx info of ESP-NOW packets such as RSSI is needed by the application. e.g. RSSI based localization.

Alternatives

No response

Additional context

No response

wemaxon avatar Dec 18 '24 12:12 wemaxon

Got it, thank you for your feedback. Going forward, we will change void (*recv_cb)(const uint8_t *mac_addr, const uint8_t *data, int len)) to void (*recv_cb)(const esp_now_recv_info_t *esp_now_info, const uint8_t *data, int len).

tswen avatar Dec 23 '24 07:12 tswen

Hello, the content has been updated in the master branch.

commit link: https://github.com/espressif/esp-mesh-lite/commit/eaf4e0aa47da2a4d93c4d058395f67575d33161b

tswen avatar Feb 07 '25 07:02 tswen