Skip to content

antenucci96/capacitor-polar-sdk

Repository files navigation

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>
Param Type
eventName 'hrData'
data any

Returns: Promise<PluginListenerHandle>


addListener('ecgData', ...)

addListener(eventName: 'ecgData', data: any) => Promise<PluginListenerHandle>
Param Type
eventName 'ecgData'
data any

Returns: Promise<PluginListenerHandle>


addListener('disconnected', ...)

addListener(eventName: 'disconnected', data: any) => Promise<PluginListenerHandle>
Param Type
eventName 'disconnected'
data any

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

About

Ionic capacitor polar sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published