Skip to content

Rename Device

Modify the device display name for easy identification and management of multiple devices.

Interface Description

Interface Type

renameDevice

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID
deviceNamestringNew device name (max 18 characters)

Return Value

javascript
true  // Returns true on successful operation

Basic Usage

javascript
// Rename device
await apiInvoke('renameDevice', {
    deviceId: 'P72578581E07',
    deviceName: 'Test Device 1'
});

Cooperation: try.catch@foxmail.com