public class CliRepository extends Object implements TelldusRepository
Constructor and Description |
---|
CliRepository(String tdtool) |
Modifier and Type | Method and Description |
---|---|
int |
dimDevice(int deviceId,
int level) |
List<Device> |
getDevices() |
String |
getDeviceState(int id) |
List<Sensor> |
getSensors() |
boolean |
turnDeviceOff(int deviceId) |
boolean |
turnDeviceOn(int deviceId) |
public CliRepository(String tdtool)
public List<Device> getDevices()
getDevices
in interface TelldusRepository
public List<Sensor> getSensors() throws TelldusException
getSensors
in interface TelldusRepository
TelldusException
public String getDeviceState(int id)
getDeviceState
in interface TelldusRepository
public boolean turnDeviceOn(int deviceId)
turnDeviceOn
in interface TelldusRepository
public boolean turnDeviceOff(int deviceId)
turnDeviceOff
in interface TelldusRepository
public int dimDevice(int deviceId, int level) throws TelldusException
dimDevice
in interface TelldusRepository
TelldusException
Copyright © 2015. All rights reserved.