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
+5 -2
View File
@@ -10,8 +10,7 @@ func setupLora() (LoraRadio, error) {
type SimLoraRadio struct {
}
func (sr *SimLoraRadio) Reset() error {
return nil
func (sr *SimLoraRadio) Reset() {
}
func (sr *SimLoraRadio) LoraTx(pkt []uint8, timeoutMs uint32) error {
@@ -28,3 +27,7 @@ func (sr *SimLoraRadio) SetLoraCodingRate(cr uint8) {}
func (sr *SimLoraRadio) SetLoraBandwidth(bw uint8) {}
func (sr *SimLoraRadio) SetLoraCrc(enable bool) {}
func (sr *SimLoraRadio) SetLoraSpreadingFactor(sf uint8) {}
func firmwareVersion() string {
return "Simulator "+currentVersion()
}