blob: ec5e9c2e32022c4def6c9c549145d88db2ed8537 [file] [log] [blame]
package sample
// SmokeDetector allows clients to monitor and adjust a smoke detector.
type SmokeDetector interface {
// Status retrieves the current status and sensitivity of the SmokeDetector.
Status() (status string, sensitivity int16, err error)
// Test the SmokeDetector to check if it is working.
Test() (bool, error)
// Sensitivity adjusts the SmokeDetector's sensitivity to smoke.
Sensitivity(sens int16) (error)
}