SNMPNotifyPrepare Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
SNMPNotifyPrepare Function
C
void SNMPNotifyPrepare(
    IP_ADDR* remoteHost, 
    char* community, 
    BYTE communityLen, 
    SNMP_ID agentIDVar, 
    BYTE notificationCode, 
    DWORD timestamp
);
Description

This function prepares SNMP module to send SNMP trap notification to remote host. It sends ARP request to remote host to learn remote host MAC address.

Preconditions

SNMPInit() is already called.

Parameters
Parameters 
Description 
remoteHost 
pointer to remote Host IP address 
community 
Community string to use to notify 
communityLen 
Community string length 
agentIDVar 
System ID to use identify this agent 
notificaitonCode 
Notification Code to use 
timestamp 
Notification timestamp in 100th of second. 
Returns

None

Remarks

This is first of series of functions to complete SNMP notification.

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