code: def _stop_scan(self):
          
  
          try:
              response = self._send_command(6, 4, [])
              if response.payload[0] != 0:
                  # Error code 129 means we just were not currently scanning
                  if response.payload[0] != 129:
                      self._logger.error('Error stopping scan for devices, error=%d', response.payload[0])
  
                  return False, {'reason': "Could not stop scan for ble devices"}
          except InternalTimeoutError:
              return False, {'reason': "Timeout waiting for response"}
          except DeviceNotConfiguredError:
              return True, {'reason': "Device not connected (did you disconnect the dongle?"}
  
          return True, None
docs: Stop scanning for BLE devices