esp-mesh-lite ESP-NOW receive callback does not report rssi (AEGHB-920)
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
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).
Hello, the content has been updated in the master branch.
commit link: https://github.com/espressif/esp-mesh-lite/commit/eaf4e0aa47da2a4d93c4d058395f67575d33161b