ThingWorx C SDK
|
ThingWorx API structure definition. More...
#include <twApi.h>
Public Attributes | |
twMessageHandler * | mh |
twList * | callbackList |
twList * | boundList |
twList * | bindEventCallbackList |
genericRequest_cb | defaultRequestHandler |
char | autoreconnect |
int8_t | manuallyDisconnected |
char | isAuthenticated |
uint8_t | duty_cycle |
uint32_t | duty_cycle_period |
TW_MUTEX | mtx |
char | offlineMsgEnabled |
twList * | offlineMsgList |
uint32_t | offlineMsgSize |
char * | offlineMsgFile |
char * | subscribedPropsFile |
uint32_t | subscribedPropsSize |
uint32_t | ping_rate |
char | handle_pongs |
uint32_t | connect_timeout |
int16_t | connect_retries |
char | connectionInProgress |
char | firstConnectionComplete |
twConnectionInfo * | connectionInfo |
ThingWorx API structure definition.
char twApi::autoreconnect |
#TRUE if automatic reconnection to ThingWorx server is enabled.
int16_t twApi::connect_retries |
The number of times to attempt to reconnect if the connection fails.
uint32_t twApi::connect_timeout |
How long to wait for the websocket to be established (in milliseconds).
twConnectionInfo* twApi::connectionInfo |
twConnectionInfo associated with the API.
char twApi::connectionInProgress |
Connection in progress flag.
genericRequest_cb twApi::defaultRequestHandler |
The default request handler.
uint8_t twApi::duty_cycle |
The duty cycle of the connection in percent (1-100).
uint32_t twApi::duty_cycle_period |
The connection period (in milliseconds). Value of 0 indicates AlwaysOn and overrides duty_cycle.
char twApi::firstConnectionComplete |
First connection completion flag.
char twApi::handle_pongs |
#TRUE if Pongs are currently handled in the API (see twApi_RegisterPongCallback()).
char twApi::isAuthenticated |
Authentication status flag.
int8_t twApi::manuallyDisconnected |
#TRUE if the API was manually disconnected from the ThingWorx server.
twMessageHandler* twApi::mh |
Pointer to the ThingWorx message handler.
TW_MUTEX twApi::mtx |
ThingWorx mutex.
char twApi::offlineMsgEnabled |
Offline message enabled flag.
char* twApi::offlineMsgFile |
The offline message filename.
uint32_t twApi::offlineMsgSize |
The size of the offline message(s).
uint32_t twApi::ping_rate |
The websockets Ping/Pong interval.
char* twApi::subscribedPropsFile |
Subscribed properties file.
uint32_t twApi::subscribedPropsSize |
Subscribed properties size.