diff --git a/const.py b/const.py index f873a94..926c4b7 100755 --- a/const.py +++ b/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 diff --git a/hblink.py b/hblink.py index 7896396..f586ef3 100755 --- a/hblink.py +++ b/hblink.py @@ -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))