On Tue, 19 Jul 2011 12:18:02 +0200 Giuseppe wrote:
GM> Now suppose the device is turned off and on again, and the user sends GET 
requests of mute and volumeLevel variables.  Which value should the agent 
return for volumeLevel, if the value 30 wasn't permanently saved in a 
non-volatile memory?  It can't be deduced by the volume_set() API function that 
returns just -1.

There is no wrong answer here. It's your implementation, so you can do as you
like. If the agent starts (assuming the agent is within the device, so that
the agent restarts when the device is turned off and then on again) and the
volume_get returns -1, then you can set the saved volume level to anything.
I'd probably go with 0.  If you have non-volatile storage and want to use it
to support remembering the last value for the volume, then you can do that if
you want, but it's your decision.

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to