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

Does it only support broadcast mode? #6

Open
pokliu opened this issue Jun 21, 2023 · 1 comment
Open

Does it only support broadcast mode? #6

pokliu opened this issue Jun 21, 2023 · 1 comment

Comments

@pokliu
Copy link

pokliu commented Jun 21, 2023

I found that this library works fine when using broadcast mode, but if I configure the target address as ESP_mac, then the esp_now_send function call returns a non-zero error.

...
static uint8_t my_mac[6] = {0xA4, 0xC4, 0x94, 0x20, 0x8A, 0x0F};
static uint8_t dest_mac[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
static uint8_t ESP_mac[6] = {0x34, 0x85, 0x18, 0x8F, 0x73, 0x48};
...
handler = new ESPNOW_manager("wlp2s0", DATARATE_1Mbps, CHANNEL_freq_11, my_mac, ESP_mac, false);
handler->set_filter(ESP_mac, my_mac);
...

image

From the packet capture results, it seems that Linux-ESPNOW does not have the ACK ESP32 module.

@thomasfla
Copy link
Owner

You are correct, I did not implement the ACK of the espnow protocol and only worked with broadcast packet.
For our application, we needed low latency, so we used broadcast for this purpose of not having an acknowledgement packet.

I guess you could implement this using this code as a simple base.

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