![Asentria Teleboss 850 User Manual Download Page 189](http://html.mh-extra.com/html/asentria/teleboss-850/teleboss-850_user-manual_2981745189.webp)
TeleBoss 850 2.06.280_STD User Manual
Page 183
a_lib.SNMPSet
Description
Sets an SNMP object to an SNMP agent.
Syntax
a_lib.SNMPSet(agent, community name, oid, type, value)
agent: Agent name or IP address
community name: Community name string
oid: Object identifier string
type: A case-insensitive string that defines the type of
the value
Allowed types: "Int", "Integer", "String", "IP",
"IPAddress"
value: The value to be set.
Returns
Returns 1 if successful, otherwise returns nil and an error message.
Example
-- set a contact closure to event state on an S571
Return_val, err = a_lib.SNMPSet("10.10.5.137", "public",
"1.3.6.1.4.1.3052.14.2.2.2.1.5", "Int", "1" )
if Return_val == nil then
print(err)
return
end
a_lib.GetModbusValue
Description
Request a register value from a Modbus device.
Syntax
a_lib.GetModbusValue(handle, address, type, register)
handle: The handle obtained when the serial port device was opened
address: Address of the Modbus device (1-63)
type: The type of data to return ("int16", "uint16", "int32",
"uint32", "float")
register: The register on the Modbus device from which to obtain the value
Returns
Returns a string containing the requested value if successful. If not successful, returns nil plus a string containing
an error message.
Note:
The serial port device must already be set to the required baud rate and data format.
Summary of Contents for Teleboss 850
Page 6: ......