MedM DeviceKit
<DataCallback> Protocol Reference

Callback which receives data from a device. More...

#import <DataCallback.h>

Inheritance diagram for <DataCallback>:

Instance Methods

(void) - onNewData::
 Called when new data from device was received. More...
 
(void) - onDataCollectionStopped
 Called when data collection was stopped. More...
 

Detailed Description

Callback which receives data from a device.

Method Documentation

◆ onDataCollectionStopped()

- (void) onDataCollectionStopped

Called when data collection was stopped.

◆ onNewData::()

- (void) onNewData: (DeviceInfo *_Nullable)  source
: (NSString *)  reading 

Called when new data from device was received.

See also
https://health.medm.com/docs/api/v3/index.html#measurement-types
Parameters
sourcedevice description or nil if Device Kit can't retrieve it DeviceInfo fields that would be provided are SKU, Address, Name, Model, DBTitle, Manufacturer DeviceInfo fields that may be provided are Manufacturer, Firmware, Hardware, Serial
readingserialized as XML reading

The documentation for this protocol was generated from the following file: