3.3. DataHubConnection.DataHubConnection Class Reference

Public Member Functions

Public Attributes

3.3.1. Detailed Description

Represents a connection to the DataHub.

Attributes:
    onConnected: Callback for when the connection is established.
    onDisconnected: Callback for when the connection is disconnected.
    onPointChange: Callback for when a point changes.
    onCommand: Callback for when a command is received.
    onEcho: Callback for when an echo message is received.
    onAsyncMessage: Callback for when an asynchronous 
    message is received.
    onAlive: Callback for when an alive message is received.
    onSuccess: Callback for when an operation is successful.
    onError: Callback for when an error occurs.
    onLog: Callback for logging messages.
    onConnectionSuccess: Callback for when the connection is 
    successfully established.
    onConnectionFailure: Callback for when the connection fails.
    onConnecting: Callback for when the connection is in the 
    process of connecting.
    onStatusChange: Callback for when the connection status changes.
    data: Bytearray to store data.
    m_connstate: Current connection state.
    ConnectionStatus: Alias for the current connection state.
    m_aliveTimer: Timer for the alive message.
    m_retrytimer: Timer for retrying the connection.
    m_domainlisttimer: Timer for domain list updates.
    Options: Connection options.
    loop: Event loop.
    writer: Stream writer.
    reader: Stream reader.
    name: Connection name.
    m_datamodel: Data model dictionary.
    message_queue: Queue for messages.
    m_timeoutTimer: Timer for connection timeout.
    dataWasRead: Flag indicating if data was read.