I am looking for a package that can fit me in a flutter that will sync between smart watches like Samsung watch or Apple Watch. I want to get heart rate data from them. Anyone know of such a package or idea to communicate with the watch?
At present all of wear, tizen, and watch os have different mechanisms for obtaining this data natively, all of which would need a flutter MethodChannel mapping to expose to the flutter side. For wear you can use the wearable_communicator plugin for communicating via the data layer, but I’m not aware of any equivalent for the other two. Alternatively, you could publish this data from the watch to something like an MQTT broker and use an MQTT client on the flutter app to obtain the readings.
Related
I have a Project to send data from flutter to Arduino to do some tasks, I was working with HC -05 and 'serial Bluetooth communication library' but I found that isn't support Low energy Bluetooth, so I have to work with 'flutter_blue' and I can't find exactly how just send data like "1"
if someone has already work with something like that, help me and thanks
method to how can I send data with this library "Flutter blue"
'how can I send data with this library "Flutter blue"?'
There is an example there in flutter blue page (https://pub.dev/packages/flutter_blue) on how to get and send data to a BLE device.
await c.write([0x12, 0x34])
There are initial steps before the app can read and write data to the BLE device. Basically, the steps consists of scanning, connecting, and discovering services. After that, the app can start reading and writing data. Data are written(or read) to (or from) a 'characteristics'. The app can also subscribe to a characteristics so it can receive data from the notification. These are just a general guide for communicating with BLE devices. You must know the details from the documentation of the specific device.
I would like to build an app with Flutter that can read data from a Polar H9 or H10 heart rate monitor (Bluetooth).
I must say that I am a bit lost and don't see how to do.
I would appreciate some clues and a little guidance for it.
Thank you very much !
Best Regards
The best way to start with any new BLE would be to look for any kind of documentation describing the process of connecting and accessing the data. I found the official polar SDK on GitHub. It's written for either iOS (Swift) or Android (Java) but might help you anyway.
In case it is not possible to use native libraries with flutter you should start by using a generic BLE scanner such as nRF Connect to find out more about the device and the available BLE services. It could be that nRF Connect already recognizes the Heart Rate Service in case Polar uses the official Service structure. If that's the case you need to read the specification of the Heart Rate Service (Found here).
If they decided to use a custom service or protocol you could use nRF Connect to try to find out something about the device by sending some messages. This is a tedious process of try and error. A BLE sniffer might also help to collect data about existing communications between the sensor and a device.
I am trying to create a mobile app using flutter that connects and reads/writes data from multiple Bluetooth low energy devices. I am a beginner in flutter and I have read that using BluetoothGatt you can achieve that but I haven't found any exhaustive documentation on the steps I should follow.
Flutter is a UI framework.
If the main purpose of your app involves BLE, controlling it from flutter would cause you a headache.
Build your app where all the BLE logic is on the native side, and use the Native bridge as an interface for sending/receiving data to/from the UI.
(You can build it as a plugin, but it's more advanced stuff)
You'll benefit a simple multiplatform unified UI, with all advantages of working natively and having full control over the hardware-related stuff.
In the Ionic framework, is there a way to read the current cellular signal strength & other data (currently connected tower, band, etc..) via the Ionic APi?
Thanks!
Ionic is a frontend framework so no you can't read low level network related data via its API. Also if you are referring to ionic-native, thats only a wrapper around the APIs exposed by different cordova plugins to provide some convenience features such as autocomplete, promise-callbacks and change-detection out of the box.
What you can do is searching for a cordova-plugin which can deliver this kind of information (for example: cordova-plugin-signal-strength (Android only)). Another possibility is to create your own plugin and implement the native parts yourself.
I am a medical student working this summer to create a wearable device for children with cerebral palsy. The device should be capable of streaming via bluetooth LE to ios or android app, and I am hoping to have two bluetooth capable sensors each streaming (realtime) data samples (size: 3 float values per sample) at around 50 Hz (or the highest frequency possible). I do see that there is a react native library for BLE (https://github.com/innoveit/react-native-ble-manager), however I am concerned that I may run into performance issues if I go the route of developing with react native instead of native ios/android. Could you please either explain what route you think is best or link me some resources which may help? Main questions I have are 1. Is this possible? 2. What BLE library do you recommend 3. Will I be sacrificing on BLE real time data streaming performance by going with react native? THANK YOU VERY MUCH