0neblock / Arduino_SNMP

SNMP Agent built with Arduino
MIT License
77 stars 30 forks source link

Add SNMP manager functions #2

Open Niich opened 6 years ago

Niich commented 6 years ago

i have added SNMP manager functions to the code you created.

I do not have any experience coding so if the code is hard to read or has any other issues please let me know the best way to fix it.

I based the new functions on the SNMP trap code since it was already creating and sending a packet.

i still don't fully understand the callback structure so I'm sure my usage is not correct.

i have included an example since the usage is not straight forward.

0neblock commented 6 years ago

HI Niich,

Sorry for not looking at this yet. I'll have a look through your code and see if I can't refactor my code base to make it easier to act as an SNMP Manager.

Niich commented 6 years ago

No problem. I'm sure my code is a mess. The code was way above my head. I got It working for my task but I'm not sure how it will perform in other tasks.

Thanks for looking it over. I hope we can get something together since while looking for an snmp manager I found a lot of other people looking too.

On Wed, Jun 6, 2018, 11:48 Aidan Cyr notifications@github.com wrote:

HI Niich,

Sorry for not looking at this yet. I'll have a look through your code and see if I can't refactor my code base to make it easier to act as an SNMP Manager.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fusionps/Arduino_SNMP/pull/2#issuecomment-395020143, or mute the thread https://github.com/notifications/unsubscribe-auth/AlBbKsxpkBEEWgpAOmBjhAbWV0C2I2Tpks5t56z4gaJpZM4UGDvl .

srivatsaks commented 5 years ago

I got it working on my ESP32. I have updated the example to include a string example

Wow...awesome... Thank you so much to both Aidan Cyr and Niich.. It was of great help for me..

shortbloke commented 4 years ago

Just curious if there is likely to be some progress merging this PR, (I know it's been pending for quite some time? I was hoping to find an SNMP manager to try and use with an ESP8266 to query a router, but I've yet to get the @Niich branch working. Though I'm still persisting, with trying to understand why it fails to decode the responses correctly.

shortbloke commented 3 years ago

Anyone interested in an SMMP Manager may want to take a look at: https://github.com/shortbloke/Arduino_SNMP_Manager