mirror of
https://github.com/ShaYmez/hblink3.git
synced 2024-11-26 17:58:39 -05:00
Add log entry for RPTSBKN Site Beacon.
This commit is contained in:
parent
c05d8fed5a
commit
0c12df00a7
2
const.py
2
const.py
@ -68,6 +68,8 @@ RPTC = b'RPTC'
|
|||||||
RPTP = b'RPTP'
|
RPTP = b'RPTP'
|
||||||
RPTA = b'RPTA'
|
RPTA = b'RPTA'
|
||||||
RPTO = b'RPTO'
|
RPTO = b'RPTO'
|
||||||
|
RPTS = b'RPTS'
|
||||||
|
RPTSBKN = b'RPTSBKN'
|
||||||
|
|
||||||
|
|
||||||
# Higheset peer ID permitted by HBP
|
# Higheset peer ID permitted by HBP
|
||||||
|
@ -695,6 +695,10 @@ class HBSYSTEM(DatagramProtocol):
|
|||||||
self._stats['CONNECTION'] = 'NO'
|
self._stats['CONNECTION'] = 'NO'
|
||||||
logger.info('(%s) MSTCL Recieved', self._system)
|
logger.info('(%s) MSTCL Recieved', self._system)
|
||||||
|
|
||||||
|
elif _command == RPTS:
|
||||||
|
if _data[:7] == RPTSBKN:
|
||||||
|
logger.info('(%s) Recieved Site Beacon with Repeater ID: \'%s\'', self._system, int_id(_data[7:]))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.error('(%s) Received an invalid command in packet: %s', self._system, ahex(_data))
|
logger.error('(%s) Received an invalid command in packet: %s', self._system, ahex(_data))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user