Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions radio-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,24 @@
"use_dio3_tcxo": true,
"use_dio2_rf": true,
"preamble_length": 17
},
"femtofox-SX": {
"name": "FemtoFox SX1262",
"bus_id": 0,
"cs_id": 0,
"cs_pin": 16,
"gpio_chip": 1,
"use_gpiod_backend": true,
"reset_pin": 25,
"busy_pin": 22,
"irq_pin": 23,
"txen_pin": -1,
"rxen_pin": 24,
"txled_pin": -1,
"rxled_pin": -1,
"tx_power": 30,
"use_dio3_tcxo": true,
"preamble_length": 17
}
}
}
2 changes: 2 additions & 0 deletions repeater/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def get_radio_for_board(board_config: dict):
"bus_id": spi_config["bus_id"],
"cs_id": spi_config["cs_id"],
"cs_pin": spi_config["cs_pin"],
"gpio_chip": spi_config.get("gpio_chip", 0),
"use_gpiod_backend": spi_config.get("use_gpiod_backend", False),
"reset_pin": spi_config["reset_pin"],
"busy_pin": spi_config["busy_pin"],
"irq_pin": spi_config["irq_pin"],
Expand Down
8 changes: 7 additions & 1 deletion repeater/data_acquisition/letsmesh_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
import paho.mqtt.client as mqtt
import threading

from datetime import datetime, timedelta, UTC
from datetime import datetime, timedelta
from nacl.signing import SigningKey
from typing import Callable, Optional, List, Dict
from .. import __version__

# Try to import datetime.UTC (Python 3.11+) otherwise fallback to timezone.utc
try:
from datetime import UTC
except Exception:
from datetime import timezone
UTC = timezone.utc

# Try to import paho-mqtt error code mappings
try:
Expand Down