DLN_DEVICE_ADDED_EV
The DLN_DEVICE_ADDED event is generated when a device is added to a server. The event contains the type of the device and its identification.
typedef struct
{
DLN_MSG_HEADER header;
uint32_t hardwareType;
uint32_t id;
uint32_t sn;
} __PACKED_ATTR DLN_DEVICE_ADDED_EV;
Parameters:
- header
Defines the DLN message header DLN_MSG_HEADER. The event header contains the following fields:
- size - The size of the message. It is equal to the size of the DLN_DEVICE_ADDED_EV structure.
- msgId - Defines the message. For the DLN_DEVICE_ADDED_EV event it is set to 0x002F. The DLN_MSG_ID_DEVICE_ADDED_EV constant can be used.
- echoCounter - A freerunning counter. It shows the number of events sent by the device. The echoCounter is reset when its value reaches 0xFFFF (65536).
- handle - A handle to the DLN-series adapter. Can be either a handle to a specific device (stream) or the HDLN_ALL_DEVICES value.
- hardwareType
- A type of the DLN-series adapter
- id
- An ID number of the DLN-series adapter.
- sn
- A serial number of the DLN-series adapter.
2006-2012