mirror of
https://github.com/ShaYmez/hblink3.git
synced 2024-11-23 00:08:37 -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'
|
||||
RPTA = b'RPTA'
|
||||
RPTO = b'RPTO'
|
||||
RPTS = b'RPTS'
|
||||
RPTSBKN = b'RPTSBKN'
|
||||
|
||||
|
||||
# Higheset peer ID permitted by HBP
|
||||
|
@ -695,6 +695,10 @@ class HBSYSTEM(DatagramProtocol):
|
||||
self._stats['CONNECTION'] = 'NO'
|
||||
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:
|
||||
logger.error('(%s) Received an invalid command in packet: %s', self._system, ahex(_data))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user