FreeDATA/modem/command_ping.py
2023-11-24 10:46:51 +01:00

16 lines
373 B
Python

from command import TxCommand
class PingCommand(TxCommand):
def setParamsFromApi(self, apiParams):
self.dxcall = apiParams['dxcall']
return super().setParamsFromApi()
def execute(self, modem_state, tx_frame_queue):
frame = self.frame_factory.build_ping(self.dxcall)
return super().execute(modem_state, tx_frame_queue)