examples: lora atcmd compiled for simulator, sx126x, and sx127x

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-01-06 17:04:21 +01:00
parent 59ff8a4585
commit dc953b09b6
5 changed files with 144 additions and 6 deletions
+9 -1
View File
@@ -1,7 +1,15 @@
package main
import (
"errors"
)
var (
errRadioNotFound = errors.New("radio not found")
)
type LoraRadio interface {
Reset() error
Reset()
LoraTx(pkt []uint8, timeoutMs uint32) error
LoraRx(timeoutMs uint32) ([]uint8, error)
SetLoraFrequency(freq uint32)