Inserts new data into the packets header part.
- data (Object)
- Inserted data.
- type (VariantType)
- Type of inserted Data.
- position (Int32)
- Position in bytes, in the packet header, where the data is inserted.
- startIndex (Int32)
- count (Int32)
- How many bytes are added. Set to Zero if all data is added.
Returns an error, if data is empty, or in an unknown form.
If the data is given in a hexadecimal string, every byte is separated with a space.
'Add new data to header part. GXPacket1.InsertHeader "01 02 03 04", GX_VT_HEX_STR, 0
Assembly: Gurux.Client (Module: Gurux.Client) Version: 5.0.0.1