# 1.21.0 -> 1.22.0

## Breaking changes

* BluetoothDeviceProvider class has one new parameter for TDWP feature (can be nil) and a modified parameter with `wedgeRegex`

### Concrete Example

#### Required Parameter:

* `wedgeRegex`: Regex object required with supported devices

#### Optional Parameter:

* `tdwdServerEnv`: Server environment to choose from dev, uat and prod

```swift
// Initialize BluetoothDeviceProvider and configuration
let supportedDevicesPrefixes = [
    "IMS-"
]

let pattern = "^(" + supportedDevicesPrefixes.joined(separator: "|") + ")"
do {
    // Create a regex object
    bluetoothDeviceProvider = BluetoothDeviceProvider(wedgeRegex: try NSRegularExpression(pattern: pattern, options: []),
                                                      tdwdServerEnv: .dev)
} catch {
    fatalError("Failed to create regex: \(error)")
}

IMSDeviceManager.configure(providers: [bluetoothDeviceProvider])
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sdk.ims.tech/migration-notes/ios/older-releases/1.21.0-greater-than-1.22.0.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
