Tuya MiniApp
  • Introduction
  • Development
  • Solution
Panel Development Solution
AI Application Development Solution
Full-scenario Application Solution
DEVELOPER DOCS
  • Introduction
  • Usage Scenarios
  • Solutions
    • General Category Capabilities
      • Core Capabilities
      • Panel Multi-language
      • Smart Device Model
        • Usage
          • constructor
          • init
          • onInitialized
          • offInitialized
          • getDevInfo
          • getDpSchema
          • getDpState
          • getNetwork
          • getBluetooth
          • publishDps
          • queryDps
          • destroy
          • onDpDataChange
          • onDeviceOnlineStatusUpdate
          • onDeviceInfoUpdated
          • onNetworkStatusChange
          • onBluetoothAdapterStateChange
          • offDpDataChange
          • offDeviceOnlineStatusUpdate
          • offDeviceInfoUpdated
          • offNetworkStatusChange
          • offBluetoothAdapterStateChange
        • Interceptors
        • FAQ
      • Smart Group Model
      • Function Point Parsing Set
      • Hooks
      • Utility Methods
    • Vertical Category Capabilities
  • Use Cases

SmartDeviceModel.getBluetooth()

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

Description

Get the Bluetooth status of the smart device’s environment

Parameters

None

Return Value

Type: any
Bluetooth status object containing available (whether Bluetooth is available)

Examples

Example

const bluetooth = device.getBluetooth();
console.log(bluetooth.available); // true
Previous pagegetNetworkNext pagepublishDps
On this page