RemoteAdapter_diag.GetDeviceState (METH)ΒΆ
METHOD GetDeviceState : DEVICE_STATE
Returns the state of the device, if device state is ERROR further information can be read by GetDeviceError
The internal states AdapterState are mapped to the DED.DEVICE_STATE as follows:
AdapterState.NOT_CONFIGURED:
DED.DEVICE_STATE.NOT_CONFIGURED
AdapterState.IP_CONFIG,
AdapterState.ENCAPSULATION_CONFIG:
DED.DEVICE_STATE.NOT_FOUND
AdapterState.LIST_SERVICES,
AdapterState.REGISTER_SESSION,
AdapterState.PARAMETER_CONFIG:
DED.DEVICE_STATE.NOT_CONFIGURED
AdapterState.CONFIGURED:
DED.DEVICE_STATE.CONFIGURED
AdapterState.RUNNING,
AdapterState.IDLE:
RunIdleHeader.RUN:
DED.DEVICE_STATE.RUNNING
RunIdleHeader.IDLE:
DED.DEVICE_STATE.STOPPED
AdapterState.CONNECTIVITY_CHECK,
AdapterState.RESET_SERVICE:
DED.DEVICE_STATE.STOPPED
AdapterState.RESET:
DED.DEVICE_STATE.NOT_CONFIGURED
AdapterState.ERROR,
AdapterState.BUS_ERROR:
DED.DEVICE_STATE.ERROR
- InOut:
Scope
Name
Type
Comment
Return
GetDeviceState
DEVICE_STATE
Output
xDiagnosisInfoAvailable
BOOL
if true, diagnosis info can be read by calling GetDeviceDiagnosisInfo
eError
DED.ERROR