Merge pull request #39 from ipnet-mesh/claude/issue-38-20251206-1840

Send flood advertisement on receiver startup
This commit is contained in:
JingleManSweep
2025-12-06 18:48:50 +00:00
committed by GitHub
+4 -4
View File
@@ -84,11 +84,11 @@ class Receiver:
else:
logger.warning("Failed to synchronize device clock")
# Send a local (non-flood) advertisement to announce presence
if self.device.send_advertisement(flood=False):
logger.info("Sent local advertisement")
# Send a flood advertisement to broadcast device name
if self.device.send_advertisement(flood=True):
logger.info("Sent flood advertisement")
else:
logger.warning("Failed to send local advertisement")
logger.warning("Failed to send flood advertisement")
# Start automatic message fetching
if self.device.start_message_fetching():