cdfizz17 - 2021-08-20

Hello all, I am trying to use the SNMP_Agent FB but I cannot get it to accept SNMP_VALUE variables. It only seems to accept SNMP_DINT and SNMP_STRING. Example:

VAR
    snmpAgent    : SNMP.SNMP_AGENT;
    stValue      : SNMP.SNMPValue;
    diObject     : SNMP.SNMP_DINT;
    vObject      : SNMP.SNMP_VALUE;
END_VAR

snmpAgent(
    xExecute := TRUE,
    sOwnIP := GVL.sOwnIP
);

diObject(
    sOID := '1.3.6.1.4.1.3000.1.1.1',
    pSnmpAgent := ADR(snmpAgent),
    diValue := 3
);
stValue := diObject.Value;    // Copy property
vObject(
    sOID := '1.3.6.1.4.1.3000.1.1.2',
    pSnmpAgent := ADR(snmpAgent)
);
vObject.Value := stValue;     // Set property, should be identical?

Despite this, only diObject gets added to the agent (see attached). Is this expected?