0.0.1 • Published 10 months ago

capacitor-polar-sdk v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

capacitor-polar-sdk

Ionic capacitor to connect Polar H10 band to ionic app

Install

npm install capacitor-polar-sdk
npx cap sync

API

connectPolar()

connectPolar() => Promise<{ value: boolean; message?: string; }>

Returns: Promise<{ value: boolean; message?: string; }>


streamHR()

streamHR() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>


streamEcg()

streamEcg() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>


stopHR()

stopHR() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>


stopEcg()

stopEcg() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>


disconnectPolar()

disconnectPolar() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>


addListener('hrData', ...)

addListener(eventName: 'hrData', data: any) => Promise<PluginListenerHandle>
ParamType
eventName'hrData'
dataany

Returns: Promise<PluginListenerHandle>


addListener('ecgData', ...)

addListener(eventName: 'ecgData', data: any) => Promise<PluginListenerHandle>
ParamType
eventName'ecgData'
dataany

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
0.0.1

10 months ago