-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using uint8 internally to get better performance #1067
base: master
Are you sure you want to change the base?
Conversation
"buildPerformanceButton" what does this screen look like? please put this in a seperate PR but realistically the data must be configurable, as most devices dont have a characteristic that just "ignores" data im not sure ill merge it. |
lib/src/bluetooth_msgs.dart
Outdated
var rawServiceUuids = json['service_uuids'] ?? []; | ||
Map<Object?, Object?> rawManufacturerData = json['manufacturer_data'] ?? <int, List<int>>{}; | ||
Map<Object?, Object?> rawServiceData = json['service_data'] ?? <int, List<int>>{}; | ||
List<Object?> rawServiceUuids = json['service_uuids'] ?? <String>[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use var
. Or give it a proper type. not Object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rollback as before
lib/src/flutter_blue_plus.dart
Outdated
@@ -746,7 +746,7 @@ class ServiceDataFilter { | |||
// The 'mask' must have the same length as 'data'. | |||
List<int> mask; | |||
|
|||
ServiceDataFilter(this.service, {this.data = const [], this.mask = const []}); | |||
ServiceDataFilter(this.service, {required this.data, required this.mask}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a breaking change. please undo it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
lib/src/flutter_blue_plus.dart
Outdated
@@ -726,7 +726,7 @@ class MsdFilter { | |||
/// The 'mask' must have the same length as 'data'. | |||
List<int> mask; | |||
|
|||
MsdFilter(this.manufacturerId, {this.data = const [], this.mask = const []}); | |||
MsdFilter(this.manufacturerId, {required this.data, required this.mask}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a breaking change. please undo it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
|
help needed for iOS device, can you help me test it? |
thanks for the update. I can't test it right now, but maybe another day. |
Detailed discussion in #1010
Tested on Android system, but not iOS.