mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-15 04:13:40 +00:00
examples: lora atcmd compiled for simulator, sx126x, and sx127x
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user