2023-11-26 14:45:41 +00:00
|
|
|
from command import TxCommand
|
|
|
|
|
|
|
|
class BeaconCommand(TxCommand):
|
|
|
|
|
|
|
|
def build_frame(self):
|
2024-04-16 06:28:37 +00:00
|
|
|
beacon_state = self.state_manager.is_away_from_key
|
|
|
|
return self.frame_factory.build_beacon(beacon_state)
|
2023-11-26 14:45:41 +00:00
|
|
|
|
2023-12-21 16:47:48 +00:00
|
|
|
|
2024-04-17 20:49:08 +00:00
|
|
|
#def transmit(self, freedata-server):
|
|
|
|
# super().transmit(freedata-server)
|
2023-12-21 16:47:48 +00:00
|
|
|
# if self.config['MODEM']['enable_morse_identifier']:
|
|
|
|
# mycall = f"{self.config['STATION']['mycall']}-{self.config['STATION']['myssid']}"
|
2024-04-17 20:49:08 +00:00
|
|
|
# freedata-server.transmit_morse("morse", 1, 0, mycall)
|