Skip to content

Home > resol-vbus-core > LiveTransceiver > getValueIndexByIdHash

LiveTransceiver.getValueIndexByIdHash() method

Get the index of a (menu) value by its ID hash.

Signature:

typescript
getValueIndexByIdHash(peerAddress: number, valueIdHash: number | string, options?: LiveTransceiverActionTriesAndTimeouts): Promise<Datagram | null>;

Parameters

Parameter

Type

Description

peerAddress

number

The address of the peer.

valueIdHash

number | string

The ID hash of the value.

options

LiveTransceiverActionTriesAndTimeouts

(Optional) Options.

**Returns:**

Promise<Datagram | null>

A promise that resolves when the datagram was received or the action timed out.