Skip to content

Commit 01aab9f

Browse files
authored
Merge pull request #1283 from carp-dk/bardram-movesense-plus-hr-update
Update of docs on address format
2 parents 2f4b540 + 38c389f commit 01aab9f

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

packages/movesense_plus/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
## 1.1.1
2+
3+
Update of docs to highlight that the `address` format is platform dependent:
4+
5+
* on Android, the address is the Bluetooth MAC address (e.g. `0C:8C:DC:1B:23:BF`).
6+
* on iOS, the address is the UUID of the device (e.g. `00000000-0000-0000-0000-000000000000`).
7+
18
## 1.1.0
29

3-
* added R-R interval to HR reading
10+
Added R-R interval to HR reading
411

512
## 1.0.0
613

packages/movesense_plus/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The singleton `Movesense` can be used for scanning devices:
7373
```dart
7474
/// Listen for discovered devices
7575
Movesense().devices.listen((device) {
76-
debugPrint('Discovered device: ${device.name} [${device.address}]');
76+
print('Discovered device: ${device.name} [${device.address}]');
7777
});
7878
/// Start scanning.
7979
Movesense().scan();

packages/movesense_plus/lib/movesense_device.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class MovesenseDevice {
77

88
/// The Movesense device address.
99
///
10-
/// Address is Bluetooth MAC address for Android devices and UUID for iOS devices.
10+
/// Address is Bluetooth MAC address for Android devices and UUID for
11+
/// iOS devices.
1112
String? address;
1213

1314
/// The Movesense device serial number.
@@ -36,6 +37,13 @@ class MovesenseDevice {
3637
final _statusController =
3738
StreamController<DeviceConnectionStatus>.broadcast();
3839

40+
/// Creates a new Movesense device with the given [address].
41+
///
42+
/// The [address] must be set in before connecting to the device.
43+
/// Note that the [address] format is platform dependent:
44+
/// - On Android, the address is the Bluetooth MAC address (e.g. "0C:8C:DC:1B:23:BF").
45+
/// - On iOS, the address is the UUID of the device (e.g. "00000000-0000-0000-0000-000000000000").
46+
/// The [serial], [name] and [deviceType] are set upon successful connection.
3947
MovesenseDevice({
4048
this.address,
4149
this.serial,

packages/movesense_plus/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: movesense_plus
22
description: "A Flutter package for Movesense sensor integration. Wraps the MDS plugin and provides easy access to Movesense device features and data streams."
3-
version: 1.1.0
3+
version: 1.1.1
44
homepage: https://github.com/cph-cachet/flutter-plugins/tree/master/packages/movesense_plus
55

66
environment:

0 commit comments

Comments
 (0)