GXDN: Gurux Developer Network
ReceivedEventHandler Delegate
NamespacesGurux.ClientReceivedEventHandler
GXClient component sends all asynchronous and notification packets using this method.
Parameters
sender (GXClient)
The source of the event.
packet (GXPacket)
Received packet.
answer (Boolean)
True, if the packet is a reply packet.
Remarks
This method handles the received asynchronous and notification packets. If all communication is done using synchronous communication, this method is not necessary to implement.
Examples
CopyVBScript
'In this example we assume that device has returned an error if second byte of the header is not 0.
sub GXSClient1_Received(object GXPacket, bool Answer)
    'Extract all data to the textbox
    dim data 
    'Extract all data to the variable
    GXPacket.ExtractData data, GX_VT_HEX_STR, 0, -1
    textbox1.text = data
end sub

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