Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetProtParam - method of object PmComm

Description:
The method allows to modify some values that are set in the PmComm > Parameters > Protocol parameters configurator.
Syntax:
SetProtParam(sParam As String, Value As Variant) As Boolean
Calling:
oComm.SetProtParam sParam, Value
Parameters:
sParam(String) Name of the parameter.
"ProtType" - The parameter value is a String.

This parameter can be used for the driver PmSNMP: Defines 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 parameters of protocol driver PmSNMP:
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
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice