Promotic

SetProtParam - method of the PmaComm object

Description:
Sets values in some configurators of the "PmaComm > Parameters" tab.
Syntax:
Boolean SetProtParam(String sParam, Variant Value)
Parameters:
sParam(String) The parametr name.
"ProtType" - The value je of the String type.
This parameter can be used for the driver PmSNMP: Specifies the version of SNMP and additional parameters. See Changing SNMP protocol parameters.
Value(Variant) Parameter value.
Return value:
true - on success
false - on error
See also:
Example:
Changes values of the protocol parameters of the PmSNMP communication driver:
JavaScriptVBScriptSelect and copy to clipboard

oComm.SetProtParam("ProtType", "snmpVer:1;commRO:public;commRW:private;");   // Sets SNMP version 1
oComm.SetProtParam("ProtType", "snmpVer:3;usrName:user1;psw:auth1;privKey:priv1;");   // Sets SNMP version 3

History:
Pm8.03.15: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.