FreeDATA/modem/command_ping.py

16 lines
369 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()
def run(self, modem_state, tx_frame_queue):
2023-11-24 09:46:51 +00:00
frame = self.frame_factory.build_ping(self.dxcall)
return super().execute(modem_state, tx_frame_queue)