Sets the position, and the type, of the packet ID.
- position (Int32)
- Position where packet ID is located, counted from the first byte of the header data.
- type (VariantType)
- Type of packet ID.
PacketId is an automatically increasing packet counter. It increases every time,
when a new GXPacket is sent.
Use PacketId to set the location, and the type, of the packet ID, to the GXPacket.
When the maximum value is reached, PacketId is automatically reset to 1.
By default packet ID is not used. A media must be selected, before using this method.
'Packet counter value is 0A. 'If the Packet structure is 4 bytes on header, and N. bytes on data. GXClient1.GetPacketId 2, GX_VT_BYTE 'Before send '01 02 00 00 | 01 02 03 04 05 ... 'After send '01 02 0A 00 | 01 02 03 04 05 ... 'If the Packet structure is 4 bytes on header, and N. bytes on data. 'PacketId is in data part GXClient1.GetPacketId 4, GX_VT_BYTE 'Before send '01 02 00 00 | 01 02 03 04 05 ... 'After send '01 02 00 00 | 0A 02 03 04 05 ...
Assembly: Gurux.Client (Module: Gurux.Client) Version: 5.0.0.1