Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetProtParam - method of object PmaComm

Description:
Sets values in some configurators of the "PmaComm > Parameters" page.
Syntax:
Boolean SetProtParam(String sParam, Variant Value)
Calling:
oComm.SetProtParam sParam, Value
Parameters:
sParam(String) Name of the parameter.
"ProtType" - The value is 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 Values:
true - on success
false - on error
Example:
Changes values of 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.7 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice