FreeDATA/modem/command_beacon.py
2024-04-16 08:28:37 +02:00

14 lines
491 B
Python

from command import TxCommand
class BeaconCommand(TxCommand):
def build_frame(self):
beacon_state = self.state_manager.is_away_from_key
return self.frame_factory.build_beacon(beacon_state)
#def transmit(self, modem):
# super().transmit(modem)
# if self.config['MODEM']['enable_morse_identifier']:
# mycall = f"{self.config['STATION']['mycall']}-{self.config['STATION']['myssid']}"
# modem.transmit_morse("morse", 1, 0, mycall)