blob: 3adc96f9eff1e991fa079c429dd33efa87741097 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package sample
// Sprinkler allows clients to control the virtual sprinkler.
type Sprinkler interface {
// Status retrieves the Sprinkler's status (i.e., active, idle)
Status() (string | error)
// Start causes the Sprinkler to emit water for the given duration (in seconds).
Start(duration uint16) error
// Stop causes the Sprinkler to cease watering.
Stop() error
}