Mateo Caktaš
Mateo Caktaš

Reputation: 41

Smart watch communication with React Native application

I need to develop an app using React Native which will get some data from Amazfit Stratos smart watch.

The smart watch is connected to the phone via bluetooth and has an application "Amazfit" where it actually gets the data that I need (i.e. step count, heart rate, etc.). After a lot of research (google and youtube), I have not encountered a way to import the data into my application. Since I haven't started making the application, there is no code to show. Can any one provide any basic solution to this problem?

My guess is (if it's possible):

  1. Make my application communicate with the smart watch

  2. Make my application communicate with Amazfit Android application

Any help greatly appreciated!

Upvotes: 4

Views: 2245

Answers (1)

fabOnReact
fabOnReact

Reputation: 5942

https://docs.zepp.com/docs/guides/architecture/arc/#ble

BLE is used for communication between Device App and Side Service. The underlying BLE API is not user-friendly, so we provide the ZML tool library, which has a more complete implementation of the communication process and exposes the easy-to-use API.

  • Use this.request method to send messages in Device App and onRequest to receive messages in Side Service
  • Use this.call method to send messages in Side Service and onCall to receive messages in Device App

https://github.com/zepp-health/zml

Upvotes: 0

Related Questions