examples: lora atcmd minimal rx and tx

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-01-07 13:10:44 +01:00
parent f098853465
commit 8cfe5ebc4a
8 changed files with 76 additions and 30 deletions
+5 -1
View File
@@ -52,7 +52,7 @@ func setupLora() (LoraRadio, error) {
loraRadio.LoraConfig(loraConf)
return loraRadio, nil
return loraRadio, nil
}
// radioIntHandler will take care of radio interrupts
@@ -63,3 +63,7 @@ func radioIntHandler(intr interrupt.Interrupt) {
func firmwareVersion() string {
return "sx126x"
}
func lorarx() ([]byte, error) {
return loraRadio.LoraRx(LORA_DEFAULT_RXTIMEOUT_MS)
}