mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
esp32: Add support for espnow based pktradio
Espnow is a connectionless WiFi communication protocol that can be used to exchange information between esp nodes. A espnow pktradio driver is proposed that allows building a 6lowpan network of nodes. The driver has been evaluated using udpclient & server running on different devices. Solves #15347 Signed-off-by: Laczen JMS <laczenjms@gmail.com>
This commit is contained in:
committed by
Tiago Medicci Serrano
parent
69b0cefe80
commit
eba0362bde
@@ -179,6 +179,10 @@
|
||||
# include "espressif/esp_nxdiag.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_ESPNOW_PKTRADIO
|
||||
# include "esp32_espnow_pktradio.h"
|
||||
#endif
|
||||
|
||||
#include "esp32-devkitc.h"
|
||||
|
||||
/****************************************************************************
|
||||
@@ -362,6 +366,15 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_ESPNOW_PKTRADIO
|
||||
ret = pktradio_espnow();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize ESPNOW pktradio=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_OPENETH
|
||||
ret = esp_openeth_initialize();
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user