Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/movesense_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
## 1.1.1

Update of docs to highlight that the `address` format is platform dependent:

* on Android, the address is the Bluetooth MAC address (e.g. `0C:8C:DC:1B:23:BF`).
* on iOS, the address is the UUID of the device (e.g. `00000000-0000-0000-0000-000000000000`).

## 1.1.0

* added R-R interval to HR reading
Added R-R interval to HR reading

## 1.0.0

Expand Down
2 changes: 1 addition & 1 deletion packages/movesense_plus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The singleton `Movesense` can be used for scanning devices:
```dart
/// Listen for discovered devices
Movesense().devices.listen((device) {
debugPrint('Discovered device: ${device.name} [${device.address}]');
print('Discovered device: ${device.name} [${device.address}]');
});
/// Start scanning.
Movesense().scan();
Expand Down
10 changes: 9 additions & 1 deletion packages/movesense_plus/lib/movesense_device.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class MovesenseDevice {

/// The Movesense device address.
///
/// Address is Bluetooth MAC address for Android devices and UUID for iOS devices.
/// Address is Bluetooth MAC address for Android devices and UUID for
/// iOS devices.
String? address;

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

/// Creates a new Movesense device with the given [address].
///
/// The [address] must be set in before connecting to the device.
/// Note that the [address] format is platform dependent:
/// - On Android, the address is the Bluetooth MAC address (e.g. "0C:8C:DC:1B:23:BF").
/// - On iOS, the address is the UUID of the device (e.g. "00000000-0000-0000-0000-000000000000").
/// The [serial], [name] and [deviceType] are set upon successful connection.
MovesenseDevice({
this.address,
this.serial,
Expand Down
2 changes: 1 addition & 1 deletion packages/movesense_plus/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: movesense_plus
description: "A Flutter package for Movesense sensor integration. Wraps the MDS plugin and provides easy access to Movesense device features and data streams."
version: 1.1.0
version: 1.1.1
homepage: https://github.com/cph-cachet/flutter-plugins/tree/master/packages/movesense_plus

environment:
Expand Down