getGroupDpsInfos(groupId: string)

Requires:
@ray-js/ray≥1.5.2

Description

Get all DP information for a group device, typically to retrieve group DP names, used with updateGroupDpName

Parameters

ParameterTypeRequiredDescription
groupIdstringYesGroup ID

Return Value

Type: Promise<IGetGroupDpsInfosResponse>
DP info object containing code, dpId, value, name, time, type

Examples

Basic usage

import { getGroupDpsInfos } from '@ray-js/ray';

getGroupDpsInfos('1').then((response) => {
  console.log('Group DP info:', response);
}).catch((err) => {
  console.error(err);
});