esp8266 / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
16.08k stars 13.33k forks source link

Add ESP-NOW library #2227

Closed igrr closed 6 years ago

igrr commented 8 years ago

Add an Arduino-style wrapper around ESP-NOW library and at least some documentation explaining what ESP-NOW is.

vanjo9800 commented 8 years ago

Is there any documentation available somewhere because I need to learn how the encryption of the messages sent works?

roboticboyer commented 8 years ago

There is a prototype code at https://github.com/HarringayMakerSpace/IoT/tree/master/ESP-Now

The Espressif's documentation is https://espressif.com/sites/default/files/documentation/esp-now_user_guide_en.pdf

The Espressif's API are listed at https://espressif.com/sites/default/files/documentation/2c-esp8266_non_os_sdk_api_reference_en.pdf

ESPlorador commented 7 years ago

I have explained all the functions with examples at http://www.esploradores.com/practica-6-conexion-esp-now/

Its in Spanish. I´m sorry.

devyte commented 7 years ago

@igrr The linked guide is actually not bad, It could be condensed into a document and examples could be built using the code there as basis. However, I somehow don't see this making into 2.4.0. I suggest pushing it back.

yoursunny commented 6 years ago

I made an ESP-NOW library. You may try it while waiting for the official library. https://github.com/yoursunny/WifiEspNow

devyte commented 6 years ago

@igrr @d-a-v I briefly looked at @yoursunny 's implementation. I would request several changes, but overall it looks sound. How should this be handled? Possibilities: -we integrate it into our libs -we add it as a subrepo, similar as SoftwareSerial -we just document the existence of the external repo and point to it

igrr commented 6 years ago

Linking to this library from libraries.rst sounds like a good first approach. The library can be easily installed via boards manager.

If one of the contributors becomes familiar enough with the library (to be able to debug issues with it), then pulling it into the project might be justified.

mischmerz commented 6 years ago

It's very easy to do basic ESP now with a simple #include (extern C) . Works quite nice, as long there's no special crypto involved. There seems to be a bug in Espressif 's core allowing controllers to send unencrypted messages even IF the slave sets it's peer to a special crypto key.

See https://github.com/espressif/ESP8266_NONOS_SDK/issues/141