Add Device.SetPropertyRefreshRateMs
This commit is contained in:
parent
90c97fb098
commit
98840bd76a
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,8 @@ type DeviceStatistics interface {
|
|||
// Refresh rate of the rest of properties of this interface. The properties are guaranteed to be refreshed each RefreshRateMs milliseconds in case the underlying counter has changed too. If zero, there is no guaranteed refresh rate of the properties.
|
||||
GetPropertyRefreshRateMs() (uint32, error)
|
||||
|
||||
SetPropertyRefreshRateMs(uint32) (error)
|
||||
|
||||
// Number of transmitted bytes
|
||||
GetPropertyTxBytes() (uint64, error)
|
||||
|
||||
|
@ -45,6 +47,10 @@ func (d *deviceStatistics) GetPropertyRefreshRateMs() (uint32, error) {
|
|||
return d.getUint32Property(DeviceStatisticsPropertyRefreshRateMs)
|
||||
}
|
||||
|
||||
func (d *deviceStatistics) SetPropertyRefreshRateMs(rate uint32) (error) {
|
||||
return d.setProperty(DeviceStatisticsPropertyRefreshRateMs, rate)
|
||||
}
|
||||
|
||||
func (d *deviceStatistics) GetPropertyTxBytes() (uint64, error) {
|
||||
return d.getUint64Property(DeviceStatisticsPropertyTxBytes)
|
||||
}
|
||||
|
|
Reference in a new issue