No description
Find a file
Morgan 'ARR\!' Allen a893586025 major driver cleanup to support multi IF, move most/all globals into _init
this needs more testing, error handling. see #1
2026-03-18 10:50:32 -07:00
components major driver cleanup to support multi IF, move most/all globals into _init 2026-03-18 10:50:32 -07:00
include major driver cleanup to support multi IF, move most/all globals into _init 2026-03-18 10:50:32 -07:00
main major driver cleanup to support multi IF, move most/all globals into _init 2026-03-18 10:50:32 -07:00
.gitmodules now -> lora 2023-12-29 21:08:35 -08:00
CMakeLists.txt now -> lora 2023-12-29 21:08:35 -08:00
README.md updated readme 2023-12-29 21:11:43 -08:00

esp_netif_lora

An ESP-NETIF driver for ESP-Now

usage

Installing this on two devices with LwIP debugging turned up and you will see packets being exchanged.

This could also be the basis for using any other system that is capable of using LwIP.

Install with

git clone https://git.oit.cloud/morgan/esp_netif_lora/ components/esp_netif_lora

complete example

#include "esp_mac.h"
#include "esp_wifi.h"

#include "nvs_flash.h"

#include "esp_netif_lora.h"

void app_main() {
  esp_netif_lora_config_t config;

  esp_efuse_mac_get_default((uint8_t*)&config.mac);

  esp_netif_set_ip4_addr(&config.ip_info.ip, 10, 20 , 0, config.mac[5]);
  esp_netif_set_ip4_addr(&config.ip_info.gw, 10, 20 , 0, 1);
  esp_netif_set_ip4_addr(&config.ip_info.netmask, 255, 255 , 255, 0);

  esp_log_level_set("LoRa32", ESP_LOG_INFO);
  esp_netif_lora_init(&config);
}