MedM DeviceKit
MedMCollector Class Reference

MedM Collector is where you receive data from controlled devices. More...

#import <MedMCollector.h>

Inheritance diagram for MedMCollector:

Instance Methods

(instancetype) - setDataCallback:
 
(instancetype) - setDeviceStatusCallback:
 
(instancetype) - setAddDeviceCallback:
 
(instancetype) - setErrorCallback:
 
(void) - setDeviceFilter:
 
(id< CollectorStopToken >) - start
 Start receiving data from added devices. More...
 
(id< CollectorStopToken >) - startWithPostponedAdding:
 Start receiving data from added devices and adding devices via postponed adding. More...
 
(id< CollectorStopToken >) - start::
 Start receiving data from added devices. More...
 
(id< CollectorStopToken >) - startWithPostponedAdding::error:
 Start receiving data from added devices and adding devices via postponed adding. More...
 
(id< CollectorStopToken >) - startWithPostponedAdding:withAddCallback:error:
 Start receiving data from added devices and adding devices via postponed adding. More...
 
(id< CollectorStopToken >) - start:::
 Start receiving data from the spircific device or try to add it via postponed adding. More...
 
(id< CollectorStopToken >) - start::withAddCallback:
 Start receiving data from the spircific device or try to add it via postponed adding. More...
 
(id< CollectorStopToken >) - startWithFilter:::
 Start receiving data from the spircific devices. More...
 
(id< CollectorStopToken >) - startWithPostponedAdding:::error:
 Start receiving data from the spircific devices or try to add it via postponed adding. More...
 
(id< CollectorStopToken >) - startWithPostponedAdding::withAddCallback:error:
 Start receiving data from the spircific devices or try to add it via postponed adding. More...
 

Detailed Description

MedM Collector is where you receive data from controlled devices.

Method Documentation

◆ setAddDeviceCallback:()

- (instancetype) setAddDeviceCallback: (id<AddDeviceCallback>)  addDeviceCallback
Parameters
addDeviceCallbackcallback to receive results of postponed adding

◆ setDataCallback:()

- (instancetype) setDataCallback: (id<DataCallback>)  dataCallback
Parameters
dataCallbackcallback to receive data in XML format
See also
https://documentation.medm.com/v2.13/api/v3/index.html#introduction for the measurements format

◆ setDeviceFilter:()

- (void) setDeviceFilter: (NSArray<DeviceInfo*>*)  deviceFilter
Parameters
deviceFilterdevices to receive data from

◆ setDeviceStatusCallback:()

- (instancetype) setDeviceStatusCallback: (id<DeviceStatusCallback>)  deviceStatusCallback
Parameters
deviceStatusCallbackcallback to receive device status (connected/disconnected/etc)

◆ setErrorCallback:()

- (instancetype) setErrorCallback: (id<ErrorCallback>)  errorCallback
Parameters
errorCallbackcallback to receive errors. Currently only used to notify if bluetooth is off.

◆ start()

- (id< CollectorStopToken >) start

Start receiving data from added devices.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Returns
token to stop data collection

◆ start::()

- (id< CollectorStopToken >) start: (id<DataCallback>)  dataCallback
: (id<DeviceStatusCallback>)  __deprecated 

Start receiving data from added devices.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Deprecated:
use setDataCallback:, setDeviceStatusCallback:, start instead
Parameters
dataCallbackcallback to receive data in XML format
deviceStatusCallbackcallback to receive device status (connected/disconnected/etc)
Returns
token to stop data collection

◆ start:::()

- (id< CollectorStopToken >) start: (DeviceInfo*)  device
: (id<DataCallback>)  dataCallback
: (id<DeviceStatusCallback>)  __deprecated 

Start receiving data from the spircific device or try to add it via postponed adding.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Postponed adding feature is available only for specific licences. Make sure that your license includes it.

Deprecated:
use setDataCallback:, setDeviceStatusCallback:, setDeviceFilter:, start instead
Parameters
devicedevice to receive data from
dataCallbackcallback to receive data in XML format
deviceStatusCallbackcallback to receive device status (connected/disconnected/etc)
Returns
token to stop data collection

◆ start::withAddCallback:()

- (id< CollectorStopToken >) start: (DeviceInfo*)  device
: (id<DataCallback>)  dataCallback
withAddCallback: (id<DeviceStatusWithAddResultCallback>)  __deprecated 

Start receiving data from the spircific device or try to add it via postponed adding.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Postponed adding feature is available only for specific licences. Make sure that your license includes it.

Deprecated:
use setDataCallback:, setDeviceStatusCallback:, setDeviceFilter:, start instead
Parameters
devicedevice to receive data from
dataCallbackcallback to receive data in XML format
deviceStatusCallbackcallback to receive device status (connected/disconnected/add result/etc)
Returns
token to stop data collection

◆ startWithFilter:::()

- (id<CollectorStopToken>) startWithFilter: (NSArray< DeviceInfo * > *)  devices
: (id< DataCallback >)  dataCallback
: (id< DeviceStatusCallback >)  __deprecated 

Start receiving data from the spircific devices.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Deprecated:
use setDataCallback:, setDeviceStatusCallback:, setDeviceFilter:, start instead
Parameters
devicesdevices to receive data from
dataCallbackcallback to receive data in XML format
deviceStatusCallbackcallback to receive device status (connected/disconnected/etc)
Returns
token to stop data collection

◆ startWithPostponedAdding:()

- (id< CollectorStopToken >) startWithPostponedAdding: (NSError**)  error

Start receiving data from added devices and adding devices via postponed adding.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Postponed adding feature is available only for specific licences. Make sure that your license includes it.

Returns
token to stop data collection
Exceptions
MedMDeviceKitExceptionpossible codes: DeviceKitFeatureUnavailable

◆ startWithPostponedAdding:::error:()

- (id<CollectorStopToken>) startWithPostponedAdding: (NSArray< DeviceInfo * > *)  devices
: (id< DataCallback >)  dataCallback
: (id< DeviceStatusCallback >)  deviceStatusCallback
error: (NSError **)  __deprecated 

Start receiving data from the spircific devices or try to add it via postponed adding.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Postponed adding feature is available only for specific licences. Make sure that your license includes it.

Deprecated:
use setDataCallback:, setDeviceStatusCallback:, setDeviceFilter:, startWithPostponedAdding: instead
Parameters
devicesdevices to receive data from
dataCallbackcallback to receive data in XML format
deviceStatusCallbackcallback to receive device status (connected/disconnected/add result/etc)
Returns
token to stop data collection

◆ startWithPostponedAdding::error:()

- (id< CollectorStopToken >) startWithPostponedAdding: (id<DataCallback>)  dataCallback
: (id<DeviceStatusCallback>)  deviceStatusCallback
error: (NSError**)  __deprecated 

Start receiving data from added devices and adding devices via postponed adding.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Postponed adding feature is available only for specific licences. Make sure that your license includes it.

Deprecated:
use setDataCallback:, setDeviceStatusCallback:, startWithPostponedAdding: instead
Parameters
dataCallbackcallback to receive data in XML format
deviceStatusCallbackcallback to receive device status (connected/disconnected/etc)
Returns
token to stop data collection
Exceptions
MedMDeviceKitExceptionpossible codes: DeviceKitFeatureUnavailable

◆ startWithPostponedAdding::withAddCallback:error:()

- (id<CollectorStopToken>) startWithPostponedAdding: (NSArray< DeviceInfo * > *)  devices
: (id< DataCallback >)  dataCallback
withAddCallback: (id< DeviceStatusWithAddResultCallback >)  deviceStatusCallback
error: (NSError **)  __deprecated 

Start receiving data from the spircific devices or try to add it via postponed adding.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Postponed adding feature is available only for specific licences. Make sure that your license includes it.

Deprecated:
use setDataCallback:, setDeviceStatusCallback:, setAddDeviceCallback:, setDeviceFilter:, startWithPostponedAdding: instead
Parameters
devicesdevices to receive data from
dataCallbackcallback to receive data in XML format
deviceStatusCallbackcallback to receive device status (connected/disconnected/add result/etc)
Returns
token to stop data collection

◆ startWithPostponedAdding:withAddCallback:error:()

- (id< CollectorStopToken >) startWithPostponedAdding: (id<DataCallback>)  dataCallback
withAddCallback: (id<DeviceStatusWithAddResultCallback>)  deviceStatusCallback
error: (NSError**)  __deprecated 

Start receiving data from added devices and adding devices via postponed adding.

If the device doesn't automatically delete data after sending, Device Kit would filter incoming data by storing the last reading time.

Postponed adding feature is available only for specific licences. Make sure that your license includes it.

Deprecated:
use setDataCallback:, setDeviceStatusCallback:, setAddDeviceCallback:, startWithPostponedAdding: instead
Parameters
dataCallbackcallback to receive data in XML format
deviceStatusCallbackcallback to receive device status (connected/disconnected/add result/etc)
Returns
token to stop data collection
Exceptions
MedMDeviceKitExceptionpossible codes: DeviceKitFeatureUnavailable

The documentation for this class was generated from the following files: