VitalSnap Operations

React Native ==> VitalSnap module

Taking a Reading

You can take a reading from any supported peripheral device using ValidicVitalSnap:

ValidicVitalSnap.takeReading(1)
  .then(result => {
    console.log(result);
  })
  .catch(error => {
    console.error(error);
  });

For any peripheral that supports multiple units, you can specify the units at runtime for a given reading. If no unit is provided, a default unit is assumed.

ValidicVitalSnap.takeReading(32, VitalSnapTemperatureUnit.Fahrenheit)
  .then(result => {
    console.log(result);
  })
  .catch(error => {
    console.error(error);
  });