sendBinaryPointMessages
sendBinaryPointMessages — formats data in binary mode (C++ only).
Syntax
For C++:
ST_STATUS sendBinaryPointMessages( | bool | enable); |
Parameters
- enable
- TRUE enables binary mode,
FALSE disables it.
Returns
- ST_OK if the command was
successfully sent to the DataHub. Since the command
is sent asynchronously, the actual success or failure
of the command must be determined through the onSuccess
or onError
message handlers.
- ST_NO_TASK if no connection to
the DataHub is established.
- ST_TOO_LARGE if the message
string exceeds the message buffer size.
- ST_ERROR if the format contains
an error or if the connection socket is unable to send
the message.
Description
This method tells the
CDataHubConnector instance to format data
in binary mode, and also to request binary mode transmissions
from the DataHub. Binary messages are more CPU efficient than ASCII
messages.