GXDN: Gurux Developer Network
Send Method (packet, sync, receiver)
NamespacesGurux.ClientGXClientSend(GXPacket, Boolean, String)
Sends the packet.
Parameters
packet (GXPacket)
Data packet to be sent.
sync (Boolean)
If True, synchronous sending mode is used. If False, asynchronous mode is used.
receiver (String)
Reserved for future use.
Remarks
If GXPacket is sent synchronously, GXCom fills the sent packet with information of the received packet, so data can be used instantly after the Send call. If GXPacket is sent asynchronously, data is received through Received method.
Examples
CopyVBScript
'Send data as synchronous.
GXClient1.Send GXPacket1, True, ""
'Check is reply packet OK.
if GXPacket1.Status = GX_STATE_OK then
       'Extract all data as hex string
       GXPacket1.ExtractData ReplyData, GX_VT_HEX_STR, 0, -1
       msgbox ReplyData
else
       'Handle error.
end if
See Also

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