SmartSupportAbility.isBleDevice()

Requires:
@ray-js/panel-sdk≥1.0.0

Description

Determine whether it is a Bluetooth-class device (including Bluetooth, BLE Mesh, SIG Mesh)

Parameters

None

Return Value

Type: boolean
Whether it is a Bluetooth-class device

Examples

Example

if (sdm.support.isBleDevice()) {
  console.log('This is a Bluetooth-class device (including BLE Mesh / SIG Mesh)');
}