Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
Switchbot
Switchbot
Class Switchbot
Hierarchy
Switchbot
Switchbot_Bot
Switchbot_Meter
Switchbot_Meter_Plus
Switchbot_IOSensorTH
Switchbot_MotionSensor
Switchbot_ContactSensor
Switchbot_PlugMini
Implements
ObnizPartsBleInterface
Index
Constructors
constructor
Properties
_peripheral
ondisconnect
Methods
connect
Wait
get
Service
Data
Payload
is
Switchbot
Device
Constructors
constructor
new
Switchbot
(
peripheral
:
BleRemotePeripheral
)
:
Switchbot
Parameters
peripheral:
BleRemotePeripheral
Returns
Switchbot
Properties
_peripheral
_peripheral
:
BleRemotePeripheral
Optional
ondisconnect
ondisconnect
:
undefined
|
(
(
reason
:
any
)
=>
void
)
Methods
connect
Wait
connect
Wait
(
setting
?:
Pick
<
BleConnectSetting
,
"retry"
|
"forceConnect"
>
)
:
Promise
<
void
>
Parameters
Optional
setting:
Pick
<
BleConnectSetting
,
"retry"
|
"forceConnect"
>
Returns
Promise
<
void
>
Static
get
Service
Data
Payload
get
Service
Data
Payload
(
peripheral
:
BleRemotePeripheral
, deviceType
:
number
|
number
[]
, serviceDataPayloadLength
:
number
)
:
null
|
number
[]
Parameters
peripheral:
BleRemotePeripheral
deviceType:
number
|
number
[]
serviceDataPayloadLength:
number
Returns
null
|
number
[]
Static
is
Switchbot
Device
is
Switchbot
Device
(
peripheral
:
BleRemotePeripheral
, deviceType
:
number
|
number
[]
, serviceDataPayloadLength
:
number
)
:
boolean
Parameters
peripheral:
BleRemotePeripheral
deviceType:
number
|
number
[]
serviceDataPayloadLength:
number
Returns
boolean
Globals
Switchbot
constructor
_peripheral
ondisconnect
connect
Wait
get
Service
Data
Payload
is
Switchbot
Device
Generated using
TypeDoc