Skip to content

Instantly share code, notes, and snippets.

@zs40x
Created March 6, 2016 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zs40x/eceaa1e5a71c0c1ad965 to your computer and use it in GitHub Desktop.
Save zs40x/eceaa1e5a71c0c1ad965 to your computer and use it in GitHub Desktop.
namespace SensorDevices
{
public interface SensorDevice : DeviceControl, DeviceState, SensorReading
{}
public interface DeviceControl
{
void powerOff();
int getFirmwareVersion();
long getSystemUptime();
}
public interface DeviceState
{
void enable();
void disable();
bool isEnabled();
DateTime isEnabledSince();
}
public interface SensorReading
{
int getLastReading();
int getMinReading();
int getMaxReading();
int getAvgReading();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment