0neblock / Arduino_SNMP

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

addDynamicWrite ? #42

Open gonzabrusco opened 1 year ago

gonzabrusco commented 1 year ago

Hi. Since you recently added the "addDynamicReadOnly" callbacks (by the way, they are all named addDynamicReadOnly except for the integer one which is missing the "ReadOnly" part, maybe you should change that for consistency).

It would be very useful to have this but for writing variables too. Is that possible? I would like to avoid the need to duplicate the variables in my code. I would prefer to be called using a callback with the new variable value and set it myself inside my class or something.

Also, using std:: function would be very useful to have callbacks managed directly with class members instead of global functions.

Thanks!!