Skip to content

Commit f20d175

Browse files
committed
examples/lora/lorawan: add missing functions for simulated interface
Signed-off-by: deadprogram <[email protected]>
1 parent 6b79a1b commit f20d175

File tree

1 file changed

+12
-7
lines changed
  • examples/lora/lorawan/common

1 file changed

+12
-7
lines changed

examples/lora/lorawan/common/sim.go

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@ func (sr *SimLoraRadio) Rx(timeoutMs uint32) ([]uint8, error) {
2323
return nil, nil
2424
}
2525

26-
func (sr *SimLoraRadio) SetFrequency(freq uint32) {}
27-
func (sr *SimLoraRadio) SetIqMode(mode uint8) {}
28-
func (sr *SimLoraRadio) SetCodingRate(cr uint8) {}
29-
func (sr *SimLoraRadio) SetBandwidth(bw uint8) {}
30-
func (sr *SimLoraRadio) SetCrc(enable bool) {}
31-
func (sr *SimLoraRadio) SetSpreadingFactor(sf uint8) {}
32-
func (sr *SimLoraRadio) LoraConfig(cnf lora.Config) {}
26+
func (sr *SimLoraRadio) SetFrequency(freq uint32) {}
27+
func (sr *SimLoraRadio) SetIqMode(mode uint8) {}
28+
func (sr *SimLoraRadio) SetCodingRate(cr uint8) {}
29+
func (sr *SimLoraRadio) SetBandwidth(bw uint8) {}
30+
func (sr *SimLoraRadio) SetCrc(enable bool) {}
31+
func (sr *SimLoraRadio) SetSpreadingFactor(sf uint8) {}
32+
func (sr *SimLoraRadio) SetHeaderType(headerType uint8) {}
33+
func (sr *SimLoraRadio) SetPreambleLength(pLen uint16) {}
34+
func (sr *SimLoraRadio) SetPublicNetwork(enabled bool) {}
35+
func (sr *SimLoraRadio) SetSyncWord(syncWord uint16) {}
36+
func (sr *SimLoraRadio) SetTxPower(txPower int8) {}
37+
func (sr *SimLoraRadio) LoraConfig(cnf lora.Config) {}
3338

3439
func FirmwareVersion() string {
3540
return "simulator " + CurrentVersion()

0 commit comments

Comments
 (0)