IWebSocketClient.Write (METH)ΒΆ

METHOD Write : NBS.ERROR

Send messages to a WebSocket 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

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.