BaseRpcClient

public abstract class BaseRpcClient implements RpcClient, RpcTransport.Listener

Constructors

BaseRpcClient

protected BaseRpcClient(RpcTransport transport, RpcFormatter formatter, Listener listener)

Methods

closeDevice

public void closeDevice(int handle, RpcRequest.Callback callback)

connect

public void connect(AppKey appKey)

disconnect

public void disconnect()

getDeviceProperty

public void getDeviceProperty(int handle, Property property, RpcRequest.Callback callback)

getProperty

public void getProperty(Property property, RpcRequest.Callback callback)

isConnected

public boolean isConnected()

openDevice

public void openDevice(String guid, RpcRequest.Callback callback)

setDeviceProperty

public void setDeviceProperty(int handle, Property property, RpcRequest.Callback callback)

setProperty

public void setProperty(Property property, RpcRequest.Callback callback)

transportConnectionFailure

public void transportConnectionFailure()

transportReceivedNotification

public void transportReceivedNotification(String notificationBody)