mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-03-28 17:42:56 +01:00
Send flood advertisement on receiver startup
Changed the startup advertisement from flood=False to flood=True so that the device name is broadcast to the mesh network. Fixes #38 Co-authored-by: JingleManSweep <jinglemansweep@users.noreply.github.com>
This commit is contained in:
@@ -84,9 +84,9 @@ 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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user