---
name: "publishOfflineDps"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.1.0" }
title: "publishOfflineDps - Publish offline cached tasks to the cloud."
summary: "Device pulls and executes when online; requires supportOfflineDps at init."
---

## publishOfflineDps

> [VERSION] @ray-js/lock-sdk >= 1.1.0

### Description

Send offline DP

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `dps` | `Record<string, string \| boolean \| number>` | Yes | code → value |

### Return Value

Type: `Promise<void>`

None

### Examples

#### Example

```ts
import { publishOfflineDps } from '@ray-js/lock-sdk';
await publishOfflineDps({ dpCode: 'switch_lock', dpValue: true });
```
