Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
QuinnDamerell committed Jan 24, 2025
1 parent 0c531d7 commit 31ff749
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bambu_octoeverywhere/bambuclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ def _GetConnectionContextToTry(self) -> ConnectionContext:
# Since we 100% identify the printer by the access token and printer SN, we can try to scan for it.
# Note we don't want to do this too often since it's CPU intensive and the printer might just be off.
# We use a lower thread count and delay before each action to reduce the required load.
# Using this config, it takes about 30 seconds to scan for the printer.
self.Logger.info(f"Searching for your Bambu Lab printer {self.PrinterSn}")
ips = NetworkSearch.ScanForInstances_Bambu(self.Logger, self.LanAccessCode, self.PrinterSn, threadCount=25, delaySec=0.2)

Expand Down

0 comments on commit 31ff749

Please sign in to comment.