GXDN: Gurux Developer Network
IsReplyPacketOKEventHandler Delegate
NamespacesGurux.ClientIsReplyPacketOKEventHandler
GXClient component uses this method to check if the content of the response packet is not damaged.
Parameters
sender (GXClient)
The source of the event.
receivedPacket (GXPacket)
Received Packet.
isReplyOK ( Boolean %)
True, if received packet is OK.
Remarks
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).
Examples
CopyVBScript
'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
See Also

Assembly: Gurux.Client (Module: Gurux.Client) Version: 5.0.0.1