mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-20 06:28:59 +00:00
examples: lora atcmd minimal rx and tx
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user