SendNotification Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
SendNotification Function
C
static BOOL SendNotification(
    BYTE receiverIndex, 
    SNMP_ID var, 
    SNMP_VAL val, 
    UINT8 targetIndex
);
Description

This routine prepares the trap notification pdu, sends ARP and get remote device MAC address to which notification to sent, sends the notification. Notofication state machine is getting updated if there is any ARP resolution failure for a perticular trap destination address.

Preconditions

SNMPTrapDemo() is called.

Parameters
Parameters 
Description 
receiverIndex 
The index to array where remote ip address is stored. 
var 
SNMP var ID that is to be used in notification 
val 
Value of var. Only value of BYTE, WORD or DWORD can be sent. 
targetIndex 
snmpv3 target index 
Return Values
Return Values 
Description 
TRUE 
If notification send is successful. 
FALSE 
If send notification failed. 
Remarks

None.

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