• AVR Freaks

Hot!Connecting SNMP-MIB-Variable to an actual Variable

Author
Findas
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2019/05/20 07:09:15
  • Location: 0
  • Status: offline
2019/05/22 22:15:47 (permalink)
0

Connecting SNMP-MIB-Variable to an actual Variable

I am working on my first SNMP-Communication. I want to set a variable and make it readable via an OID (so a GET) I wrote both *.mib and compiled it via the mib2bib.jar but how do i connect these two? Is there a function? I think it is the TCPIP_SNMP_VarbindGet, but I am not really sure how to work it!
 
Thanks in advance
 
MPLAB IDE v5.15 with Harmony v2.06
 
Edit:
 
In my .mib File I want to declare my Cooperations OID using:
 
$DeclareVar(myCorp, OID, SINGLE, READONLY, 43.6.1.2.1.1.2)
$StaticVar(myCorp, 43.6.1.4.1.XXXXX)
 
Later in the File I got:
 
$DeclareVar(MICROCHIP, OID, SINGLE, READONLY,   43.6.1.2.1.1.2)
$StaticVar(MICROCHIP, 43.6.1.4.1.17095.1)

$AgentID(MICROCHIP, 255)
 
Now I know that the contradict each other. But If I delete those 3 lines the IDE throwes Errors while Building I am working at the moment with a new Harmony Project based on the Ethernet Starter Kit II.
 
How do I correctly register my Corps OID. Do I need to define every step of the OID-Tree like in SMI/ASN.1?
 
Thanks alot
post edited by Findas - 2019/05/23 06:59:20
#1

0 Replies Related Threads

    Jump to:
    © 2019 APG vNext Commercial Version 4.5