---
title: forceWiFiScan
framework: matter
role: symbol
role_heading: Instance Property
path: matter/mtrcommissioningparameters/forcewifiscan
---

# forceWiFiScan

Whether to force a network scan before requesting Wi-Fi credentials. The default is NO.

## Declaration

```swift
var forceWiFiScan: Bool { get set }
```

## Discussion

Discussion Even if this value is NO a scan may still be performed. This value will be ignored if Wi-Fi credentials are provided or not needed. NOTE: Not all APIs that take MTRCommissioningParameters pay attention to this flag.
