FreeDATA/modem/command_beacon.py

13 lines
414 B
Python
Raw Normal View History

2023-11-26 14:45:41 +00:00
from command import TxCommand
class BeaconCommand(TxCommand):
def build_frame(self):
return self.frame_factory.build_beacon()
def transmit(self, modem):
super().transmit(modem)
2023-11-26 20:51:19 +00:00
if self.config['MODEM']['enable_morse_identifier']:
2023-11-26 14:45:41 +00:00
mycall = f"{self.config['STATION']['mycall']}-{self.config['STATION']['myssid']}"
modem.transmit_morse("morse", 1, 0, mycall)