capacitor-thinmoo-ble
v0.0.6
Published
Conexion via bluetooth para los dispositivos Thinmoo
Readme
capacitor-thinmoo-ble
Conexion via bluetooth para los dispositivos Thinmoo
Install
npm install capacitor-thinmoo-ble
npx cap syncAPI
open(...)
open(options: { devSn: string; miniEkey: string; value?: string; connection_services?: string; services?: string; characteristic_read?: string; characteristic_write?: string; }) => Promise<{ success: boolean; }>| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| options | { devSn: string; miniEkey: string; value?: string; connection_services?: string; services?: string; characteristic_read?: string; characteristic_write?: string; } |
Returns: Promise<{ success: boolean; }>
addListener('openSuccess', ...)
addListener(eventName: 'openSuccess', listenerFunc: (data: OpenSuccessData) => void) => Promise<PluginListenerHandle> & PluginListenerHandle| Param | Type |
| ------------------ | ------------------------------------------------------------------------------ |
| eventName | 'openSuccess' |
| listenerFunc | (data: OpenSuccessData) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
OpenSuccessData
| Prop | Type |
| -------------- | -------------------- |
| success | boolean |
| devSn | string |
| miniEkey | string |
