Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
wemaxon opened this issue Dec 18, 2024 · 2 comments
Open
3 tasks done

Comments

@wemaxon
Copy link

wemaxon commented Dec 18, 2024

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Described the feature in detail and justified the reason for the request.
  • 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

@github-actions github-actions bot changed the title esp-mesh-lite ESP-NOW receive callback does not report rssi esp-mesh-lite ESP-NOW receive callback does not report rssi (AEGHB-920) Dec 18, 2024
@tswen
Copy link
Contributor

tswen commented Dec 23, 2024

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
Copy link
Contributor

tswen commented Feb 7, 2025

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

commit link: eaf4e0a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants