WebSocketClient.Write (METH)ΒΆ
METHOD Write : NBS.ERROR
Sends messages to a WebSocket server.
This method sends the payload pData
with the size udiSize
to the server.
- InOut:
Scope
Name
Type
Initial
Comment
Return
Write
NBS.ERROR
Input
pData
__XWORD
Pointer to the payload data
udiSize
UDINT
Size of the payload
eFrameType
FRAME_TYPE.BINARY
Type of the payload data
Output
udiCount
UDINT
Number of sent bytes.
Note
It can take more than one cycles to send a message if the payload is greater than the maximum buffer size.