GXClient component uses this method to check if the content of the response packet is not damaged.
This method to check that the content of the response packet is not damaged.
If the packet is intact, it is sent to the Received method.
If IsReplyOK is set to False, the GXClient marks the status of the received packet as
DeviceError (GX_ST_DEV_ERR).
'In this example we assume that device has returned an error if second byte of the header is not 0. sub GXSClient1_IsReplyPacketOK(object ReceivedPacket, bool IsReplyOK) dim data 'Extract second byte to the variable GXPacket.ExtractData data, GX_VT_BYTE, 1, 1 if data = 0 then IsReplyOK = True else IsReplyOK = False end if end sub
Assembly: Gurux.Client (Module: Gurux.Client) Version: 5.0.0.1