Package | Description |
---|---|
com.lhings.java | |
com.lhings.java.exception |
Modifier and Type | Method and Description |
---|---|
List<com.lhings.java.model.Device> |
LhingsDevice.getDevices()
This method returns a list of all the other devices that belong to the
same account as the calling device.
|
Map<String,Object> |
LhingsDevice.getStatus(String uuid)
Retrieves the status of the given device.
|
String |
LhingsDevice.requestAction(String uuid,
String actionName,
Map<String,Object> arguments)
Request another device to perform one of its actions.Both the action name
and argument names must have been declared by the other device in its
descriptor file.
|
void |
LhingsDevice.storeStatus()
Stores the value of all the status components of this device in Lhings.
|
Constructor and Description |
---|
LhingsDevice(String username,
String password,
int port,
String deviceName)
Creates a new device in Lhings associated to the account with the given
username and password.
|
LhingsDevice(String username,
String password,
String deviceName)
Creates a new device in Lhings associated to the account with the given
username and password.
|
Modifier and Type | Class and Description |
---|---|
class |
ActionExecutionException |
class |
BadRequestException |
class |
DeviceDoesNotExistException |
class |
DeviceUnreachableException |
class |
InitializationException |
class |
UnauthorizedException |
Copyright © 2014. All rights reserved.