Added options to RPC function getValue to get value from device.