blob: dd6fd3b5d1d808dbb05666775d3ac52d7916cdb8 [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 | 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
}