Merge pull request #77

Handle broadcast IDs check in client details retrieval
This commit is contained in:
Gleb Tcivie 2025-01-05 20:20:59 +02:00 committed by GitHub
commit 0281d0b990
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -309,6 +309,8 @@ class MessageProcessor:
).set(mesh_packet.rx_rssi)
def _get_client_details(self, node_id: int) -> ClientDetails:
if node_id == 4294967295 or node_id == 1: # FFFFFFFF or 1 (Broadcast)
return ClientDetails(node_id=node_id, short_name='Broadcast', long_name='Broadcast')
node_id_str = str(node_id) # Convert the integer to a string
with self.db_pool.connection() as conn:
with conn.cursor() as cur: