---
name: "SmartSupportAbility.isSupportDp"
mode: "api"
versionRequirements:
  - { name: "@ray-js/panel-sdk", version: "1.0.0" }
title: "isSupportDp"
---

## SmartSupportAbility.isSupportDp

> [VERSION] @ray-js/panel-sdk >= 1.0.0

> 💡 Supports both single and group devices. The result is cached by default; pass isForce=true to force a recheck.

### Description

Check whether a given DP code is supported by the device

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `dpCode` | `any` | Yes | DP code |
| `isForce` | `boolean` | No | Whether to bypass the cache and force a check; default: false |

### Return Value

None


### Examples

#### Example

```typescript
const hasBright = sdm.support.isSupportDp('bright_value');
const hasSwitch = sdm.support.isSupportDp('switch_led');
console.log('Brightness supported:', hasBright, 'Switch supported:', hasSwitch);
```
