Master and Client work with MMDVM/BrandMeister
….for real this time.
This commit is contained in:
parent
7c2e4ce49c
commit
4a74b7d8bc
@ -230,6 +230,7 @@ class HBMASTER(DatagramProtocol):
|
|||||||
elif _command == 'RPTP': # RPTPing -- client is pinging us
|
elif _command == 'RPTP': # RPTPing -- client is pinging us
|
||||||
_radio_id = _data[7:11]
|
_radio_id = _data[7:11]
|
||||||
if _radio_id in self._clients and self._clients[_radio_id]['CONNECTION'] == "YES":
|
if _radio_id in self._clients and self._clients[_radio_id]['CONNECTION'] == "YES":
|
||||||
|
self._clients['LAST_PING'] = time()
|
||||||
self.send_packet(_radio_id, 'MSTPONG'+_radio_id)
|
self.send_packet(_radio_id, 'MSTPONG'+_radio_id)
|
||||||
logger.info('(%s) Received and answered RPTPING from client %s', self._master, h(_radio_id))
|
logger.info('(%s) Received and answered RPTPING from client %s', self._master, h(_radio_id))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user