Module: OCR

Members

(static) GlucoseUnits :string

Used for setting units for ocr.
Type:
  • string
Properties:
Name Type Description
MGDL string
MMOLL string
Source:

Methods

(static) getPeripheral(id, success, error)

Gets information on a supported peripheral with a given id.
Parameters:
Name Type Description
id number Peripheral ID.
success PeripheralsCallback callback function containing the peripheral's information.
error FailCallback callback function with a n error message indicating failure reason.
Source:

(static) getPeripheralsOfType(type, success, error)

Gets an array of supported peripherals matching a given type.
Parameters:
Name Type Description
type number Peripheral Type.
success PeripheralsCallback Callback function containing an array of all peripherals matching given type.
error FailCallback Callback function indicating invalid type.
Source:

(static) getSupportedPeripherals(success)

Gets an array of supported peripherals for use with OCR.
Parameters:
Name Type Description
success PeripheralsCallback Callback function containing an array of peripheral devices.
Source:

(static) read(id, success, error)

Launches the OCR view to take a reading.
Parameters:
Name Type Description
id number Id of peripheral to take a reading from.
success OCRReadCallback Callback indicates the capture screen was loaded successfully.
error FailCallback Indicates the capture screen was not loaded successfully. Includes failure reason in message.
Source:

(static) readWithGlucoseUnit(id, unit, success, error)

Launches the OCR view to take a reading that is displayed in the provided unit.
Parameters:
Name Type Description
id number Id of peripheral to take a reading from.
unit GlucoseUnit The unit that the device is displaying in.
success OCRReadCallback Callback indicates the capture screen was loaded successfully.
error FailCallback Indicates the capture screen was not loaded successfully. Includes failure reason in message.
Source: