You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-40
Original file line number
Diff line number
Diff line change
@@ -27,45 +27,6 @@ Using the FlutterBlue instance, you can scan for and connect to nearby devices (
27
27
Once connected to a device, the BluetoothDevice object can discover services ([BluetoothService](lib/src/bluetooth_service.dart)), characteristics ([BluetoothCharacteristic](lib/src/bluetooth_characteristic.dart)), and descriptors ([BluetoothDescriptor](lib/src/bluetooth_descriptor.dart)).
28
28
The BluetoothDevice object is then used to directly interact with characteristics and descriptors.
29
29
30
-
## Setup
31
-
### Change the minSdkVersion for Android
32
-
33
-
Flutter_blue is compatible only from version 19 of Android SDK so you should change this in **android/app/build.gradle**:
34
-
```dart
35
-
Android {
36
-
defaultConfig {
37
-
minSdkVersion: 19
38
-
```
39
-
### Add permissions for Bluetooth
40
-
We need to add the permission to use Bluetooth and access location:
41
-
42
-
#### **Android**
43
-
In the **android/app/src/main/AndroidManifest.xml** let’s add:
For location permissions on iOS see more at: [https://developer.apple.com/documentation/corelocation/requesting_authorization_for_location_services](https://developer.apple.com/documentation/corelocation/requesting_authorization_for_location_services)
For location permissions on iOS see more at: [https://developer.apple.com/documentation/corelocation/requesting_authorization_for_location_services](https://developer.apple.com/documentation/corelocation/requesting_authorization_for_location_services)
150
+
151
+
150
152
## Reference
151
153
### FlutterBlue API
152
154
|| Android | iOS | Description |
@@ -182,6 +184,6 @@ Note that iOS will not allow requests of MTU size, and will always try to negoti
182
184
| write |:white_check_mark:|:white_check_mark:| Writes the value of the descriptor. |
183
185
184
186
## Troubleshooting
185
-
### Scanning for service UUID's doesn't return any results
187
+
### When I scan using a service UUID filter, it doesn't find any devices.
186
188
Make sure the device is advertising which service UUID's it supports. This is found in the advertisement
187
189
packet as **UUID 16 bit complete list** or **UUID 128 bit complete list**.
0 commit comments