getGroupDpsInfos

Requires:
@ray-js/ray≥1.5.2

Method signature
getGroupDpsInfos(groupId: string)

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

Referenced Types

interfaceIGetGroupDpsInfosResponse
PropertyTypeDescription
codestringDP Code
dpIdnumberDP ID
valuestringDP value
namestringDP name
timenumberMost recent DP report time
typestringDP 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);
});