Skip to content

Conversation

@LiuPack
Copy link

@LiuPack LiuPack commented Jul 19, 2025

Description

ESPProvisionManager add method

    /**
     * This method is to set the timeout for Bluetooth scanning
     *
     * @param timeout timeout
     * @return Returns ESPProvisionManager
     */
    public ESPProvisionManager scanTimeout(long timeout) {
        this.timeout = timeout;
        return this;
    }

BleScanner change SCAN_TIME_OUT

    public BleScanner(Context context, long timeout, BleScanListener bleScannerListener) {
        this.bleScanListener = bleScannerListener;
        this.SCAN_TIME_OUT = timeout;
        handler = new Handler();
        BluetoothManager bluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);
        bluetoothAdapter = bluetoothManager.getAdapter();
    }

    public BleScanner(Context context, String prefix, long timeout, BleScanListener bleScannerListener) {
        this(context, timeout, bleScannerListener);
        this.prefix = prefix;
    }

PS:RequiresPermission add an Manifest.permission.BLUETOOTH_SCAN

Related

Testing

image ---

Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@CLAassistant
Copy link

CLAassistant commented Jul 19, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants