FreeDATA/modem/command_ping.py

16 lines
373 B
Python
Raw Normal View History

2023-11-23 15:59:53 +00:00
from command import TxCommand
class PingCommand(TxCommand):
def setParamsFromApi(self, apiParams):
self.dxcall = apiParams['dxcall']
return super().setParamsFromApi()
2023-11-24 09:46:51 +00:00
def execute(self, modem_state, tx_frame_queue):
frame = self.frame_factory.build_ping(self.dxcall)
return super().execute(modem_state, tx_frame_queue)