* @param device the id of the device to configure.
* @param data device configuration data.
* @return
*/
public DeviceConfigReply configureDevice(int device, short[] data) {
DeviceConfigRequest request = DeviceConfigRequest.newBuilder()
.setDeviceAlias(device)
.setData(convertToUnsigned(data))
.build();
return (DeviceConfigReply) callRpcMethod("ConfigureDevice", request);
}