code: def stop_scan(self):
          
          try:
              self.bable.stop_scan(sync=True)
          except bable_interface.BaBLEException:
              # If we errored our it is because we were not currently scanning
              pass
  
          self.scanning = False
docs: Stop to scan.