@procivis/react-native-one-core
Preparing search index...
BleCentral
Interface BleCentral
interface
BleCentral
{
connect
(
peripheral
:
string
)
:
Promise
<
number
>
;
disconnect
(
peripheral
:
string
)
:
Promise
<
void
>
;
getDiscoveredDevices
()
:
Promise
<
PeripheralDiscoveryDataBindingDto
[]
>
;
getNotifications
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
)
:
Promise
<
number
[]
[]
>
;
isAdapterEnabled
()
:
Promise
<
boolean
>
;
isScanning
()
:
Promise
<
boolean
>
;
readData
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
)
:
Promise
<
number
[]
>
;
startScan
(
filterServices
:
undefined
|
string
[]
)
:
Promise
<
void
>
;
stopScan
()
:
Promise
<
void
>
;
subscribeToCharacteristicNotifications
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
)
:
Promise
<
void
>
;
unsubscribeFromCharacteristicNotifications
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
)
:
Promise
<
void
>
;
writeData
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
data
:
number
[]
,
writeType
:
CharacteristicWriteTypeBindingEnum
,
)
:
Promise
<
void
>
;
}
Index
Methods
connect
disconnect
get
Discovered
Devices
get
Notifications
is
Adapter
Enabled
is
Scanning
read
Data
start
Scan
stop
Scan
subscribe
To
Characteristic
Notifications
unsubscribe
From
Characteristic
Notifications
write
Data
Methods
connect
connect
(
peripheral
:
string
)
:
Promise
<
number
>
Parameters
peripheral
:
string
Returns
Promise
<
number
>
disconnect
disconnect
(
peripheral
:
string
)
:
Promise
<
void
>
Parameters
peripheral
:
string
Returns
Promise
<
void
>
get
Discovered
Devices
getDiscoveredDevices
()
:
Promise
<
PeripheralDiscoveryDataBindingDto
[]
>
Returns
Promise
<
PeripheralDiscoveryDataBindingDto
[]
>
get
Notifications
getNotifications
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
)
:
Promise
<
number
[]
[]
>
Parameters
peripheral
:
string
service
:
string
characteristic
:
string
Returns
Promise
<
number
[]
[]
>
is
Adapter
Enabled
isAdapterEnabled
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
is
Scanning
isScanning
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
read
Data
readData
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
)
:
Promise
<
number
[]
>
Parameters
peripheral
:
string
service
:
string
characteristic
:
string
Returns
Promise
<
number
[]
>
start
Scan
startScan
(
filterServices
:
undefined
|
string
[]
)
:
Promise
<
void
>
Parameters
filterServices
:
undefined
|
string
[]
Returns
Promise
<
void
>
stop
Scan
stopScan
()
:
Promise
<
void
>
Returns
Promise
<
void
>
subscribe
To
Characteristic
Notifications
subscribeToCharacteristicNotifications
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
)
:
Promise
<
void
>
Parameters
peripheral
:
string
service
:
string
characteristic
:
string
Returns
Promise
<
void
>
unsubscribe
From
Characteristic
Notifications
unsubscribeFromCharacteristicNotifications
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
)
:
Promise
<
void
>
Parameters
peripheral
:
string
service
:
string
characteristic
:
string
Returns
Promise
<
void
>
write
Data
writeData
(
peripheral
:
string
,
service
:
string
,
characteristic
:
string
,
data
:
number
[]
,
writeType
:
CharacteristicWriteTypeBindingEnum
,
)
:
Promise
<
void
>
Parameters
peripheral
:
string
service
:
string
characteristic
:
string
data
:
number
[]
writeType
:
CharacteristicWriteTypeBindingEnum
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
connect
disconnect
get
Discovered
Devices
get
Notifications
is
Adapter
Enabled
is
Scanning
read
Data
start
Scan
stop
Scan
subscribe
To
Characteristic
Notifications
unsubscribe
From
Characteristic
Notifications
write
Data
@procivis/react-native-one-core
Loading...