refacto: change lora to class with ITransmitter interface

This commit is contained in:
Alexis Fourmaux 2026-05-06 17:25:17 +02:00
parent 2d87381903
commit 244d1eea21
7 changed files with 225 additions and 179 deletions

View file

@ -1,22 +1,8 @@
#ifndef CONFIG_H
#define CONFIG_H
#include <Arduino.h>
#define LORA_SCK 5
#define LORA_MISO 19
#define LORA_MOSI 27
#define LORA_NSS 18
#define LORA_RST 23
#define LORA_DIO0 26
#define LORA_DIO1 33
#pragma once
uint64_t joinEUI = 0x35f48318e1324e2e;
uint64_t devEUI = 0x0586fe41112d83d9;
uint8_t appKey[] = {
0x0b, 0x84, 0xb4, 0x04, 0x0f, 0xd5, 0x56, 0x1b,
0x00, 0x53, 0x94, 0x22, 0xc1, 0xf1, 0x4f, 0xd6
};
uint8_t *nwkKey = appKey;
#endif
uint64_t devEUI = 0x0586fe41112d83d9;
uint8_t appKey[] = {
0x0b, 0x84, 0xb4, 0x04, 0x0f, 0xd5, 0x56, 0x1b,
0x00, 0x53, 0x94, 0x22, 0xc1, 0xf1, 0x4f, 0xd6};
uint8_t *nwkKey = appKey;