How to data get Smartwatch - flutter

I have made some apps in flutter (pedometer, heart rate, audio recorder) for the moto360 with flutter wear. everything works fine, but I don't know how to save the data on the watch and how to access the data on the smartphone. I have managed to send messages to the watch, but I can't send data from the watch to the phone. I can save my data on the smartphone, but I don't know how to manage it on the smartwatch. can someone show me a tutorial or an example? thank you so much!
how to get smartwatch data, how to retrieve steps count and heart rate etc. from a smartwatch with communicating Bluetooth in flutter so I have received Bluetooth device id and Bluetooth UUID. how to data read and get permission to data show the flutter app

Related

How do I send data using low bluetooth energy in flutter

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.

how to receive data from ESP32 to flutter app using bluetooth_serial

I am currently working on a project which is basically showing the Realtime readings from firebase database that are being uploaded by ESP32. I am plotting an ECG graph in the app and the delays are terrible( uploading values to firebase). I want to shift the app to Bluetooth and did some research and found Bluetooth Serial for flutter.. I can connect to a Bluetooth device but I don't know how to receive data from this device. any help would be appreciated. I have 0 knowledge of implementing Bluetooth as I am new to Flutter.
I am using this : https://pub.dev/packages/flutter_bluetooth_serial
currently I am using firebase Realtime Database for fetching values but the delays are huge due to internet delays. here are some screenshots:
whenever this ECG values changes in the firebase, the graph plots. I want to shift this graph to Bluetooth.

Continuous update UI from Service

I'd be very grateful if somebody can help me. (I'm absolute beginer with Android).
There's a lot of code in the web, but I couldn't find anything suitable for my application.
I've an installation with some sensors connected to Arduino. All input data are collected in a String, and this String is sent via Bluetooth to an Android device every 1~2 seconds (depending on data availability from sensors). Is to be used for hours.
I made an App that receives the data (via Bluetooth) and shows all data in real time update in one layout, with the Bluetooth code in the MainActivity. Works well.
What I need is an App with three different Activities, all using the same String data from Bluetooth, and real time updated.
My question is how to build the App:
-Bluetooth running in a Service, and Activities connected to it?
-Which is a good way for real time update in any of the three Activities?
A similar example could be a weather station, an Android device receiving data via Bluetooth, showing the same weather data in three different layouts, with continous update.
Thanks in advance

Get GPS from iPhone to wifi iPad via bluetooth?

Is it possible to transmit GPS data from a GPS-enabled iPhone to a wifi-only iPad? Does anyone have sample code to share that would do this?
How about getting GPS data from an Android via bluetooth, over to a wifi iPad?
Yes, but you would need to create an application for both devices that would communicate with each other. You cannot get the location over wifi without a custom application sending the data.
Have a look at the WiTap sample app. This app allows two devices to find each other and send data to each other using WiFi. You can adapt this code so one device sends location data it obtains to the other device instead of info about which rectangle was tapped.
I have no info for doing this with Android.

video streaming between two iphones?

is it possible to show what is showing in camera in one IPhone to another iphone through
bluetooth(GKSession)..Remote Live is available in Appstore.any idea pls?
I have never developed for iPhone before, but the idea sounds like it should be possible. I would take the approach of remote desktop basically. On the host phone, start up the camera and capture the image/video stream, then on the receiving phone have the client app that pairs to the host via bluetooth (wouldnt a wireless connection be better?) and send the data to the client phone to be rendered?