-
Notifications
You must be signed in to change notification settings - Fork 194
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
espnow missing some functions to get going #101
Comments
I'm not too familiar with how espnow works (I'll do some reading), but PR's would be most welcome! |
In the latest I'll think about the |
I've now added |
Initially I wanted to make a PR for this, but before I do it might be better to check if I am overlooking something.
While trying out ESPNow, I noticed a few missing pieces:
esp-idf-sys
has it, but that is less nice. Currently I did:esp!(esp_wifi_get_mac(wifi_mode_t_WIFI_MODE_NULL, &mut mac as *mut c_types::c_uchar))?;
. I think a nice helper function either inespnow
or inwifi
would greatly help the next guy trying out ESPNow.esp_wifi_start()
in STA, without actually connecting to an AP.set_configuration
does a lot more than is needed for ESPNow. For now I settled on:But here too it might be useful to have a simple wrapper function.
Am I overlooking something, or would it be fine if I make a PR to wrap both in a nice little function?
I was thinking of putting the first one in
espnow
, as there are several MAC addresses assigned to an ESP, but only one works with ESPNow. The second I guess belongs inwifi
, so something likestart_sta()
or something?Tnx :)
The text was updated successfully, but these errors were encountered: