Merge pull request #16 from mreckhof/master

Add log entry for RPTSBKN Site Beacon.
This commit is contained in:
Randy Hall 2022-01-28 14:53:27 -08:00 committed by GitHub
commit 0ba41fcdaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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) Received 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))