getSnmpV2GenTrapOid Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
getSnmpV2GenTrapOid Function
C
BYTE * getSnmpV2GenTrapOid(
    BYTE generic_trap_code, 
    BYTE * len
);
Description

This function resolves given generic trap code to generic trap OID.

Preconditions

SNMPNotifyPrepare() is already called.

Parameters
Parameters 
Description 
generic_trap_code 
len 
generic trap OID length 
Return Values
Return Values 
Description 
BYTE * 
TRAP OID 
Remarks

This would fail if generic_trap_code is not coming under GENERIC_TRAP_NOTIFICATION_TYPE

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.