added IsConnected and Type to IDeviceState