Setdownlinkkey method, Setencryptiontype method, Returns – Echelon OpenLDV User Manual
Page 183: Syntax

OpenLDV Programmer’s Guide
175
Table 62. SetCurrentAuthenticationKey Parameters
Parameter
Description
authKey
xDriver authentication key for this session, as a 32-character
hexadecimal string representing a 128-bit authentication key. The
authentication key must be entered as a 32-character hexadecimal
string representing a 128-bit MD5 key. For example:
0102030405060708090A0B0C0D0E0F10
Returns
Standard COM HRESULT describing the result of the call. Returns
E_ACCESS_DENIED if field is presently read-only. Table 48 on page 166 lists
each SCO field, along with when these fields are read-only.
SetDownlinkKey Method
Applies to: Session Control Object
This method sets the downlink lookup key. xDriver sets this value automatically
during a downlink session, and the lookup extension component should be
programmed to fill it into the SCO during an uplink session.
Syntax
C++
STDMETHOD(SetDownlinkKey)(BSTR dnKey)
Visual Basic Sub SetDownlinkKey(ByVal dnKey As String)
Table 63. SetDownlinkKey Parameters
Parameter
Description
dnKey
The downlink lookup key of the RNI, as a String (a maximum of 105
characters).
Returns
Standard COM HRESULT describing the result of the call. Returns
E_ACCESS_DENIED if the field is currently read-only. Table 48 on page 166
lists each SCO field, along with when these fields are read-only.
SetEncryptionType Method
Applies to: Session Control Object
This method sets the encryption type that xDriver should use when sending
encrypted data packets to an RNI. The xDriver lookup extension component