AWS IoT Device SDK C: MQTT
MQTT 3.1.1 client library
Return to main page ↑
iot_test_access_mqtt.h File Reference

Declares the functions that provide access to the internal functions and variables of the MQTT library. More...

Go to the source code of this file.

Data Structures

struct  _topicMatchParams_t
 First parameter to _topicMatch. More...
 
struct  _packetMatchParams_t
 First parameter to _packetMatch. More...
 

Macros

#define UINT16_HIGH_BYTE(x)   ( ( uint8_t ) ( x >> 8 ) )
 Get high byte.
 
#define UINT16_LOW_BYTE(x)   ( ( uint8_t ) ( x & 0x00ff ) )
 Get low byte.
 
#define UINT16_DECODE(ptr)
 Macro for decoding a 2-byte unsigned int from a sequence of bytes. More...
 

Functions

_mqttConnection_tIotTestMqtt_createMqttConnection (bool awsIotMqttMode, const IotMqttNetworkInfo_t *pNetworkInfo, uint16_t keepAliveSeconds)
 Test access function for _createMqttConnection. More...
 
IotMqttError_t IotTestMqtt_scheduleKeepAlive (IotMqttConnection_t pMqttConnection)
 Test access function for _scheduleKeepAlive. More...
 
void IotTestMqtt_sendPuback (_mqttConnection_t *pMqttConnection, uint16_t packetIdentifier)
 Test access function for _sendPuback. More...
 
bool IotTestMqtt_topicMatch (const IotLink_t *pSubscriptionLink, void *pMatch)
 Test access function for _topicMatch. More...
 
bool IotTestMqtt_packetMatch (const IotLink_t *pSubscriptionLink, void *pMatch)
 Test access function for _packetMatch. More...
 

Detailed Description

Declares the functions that provide access to the internal functions and variables of the MQTT library.

Macro Definition Documentation

◆ UINT16_DECODE

#define UINT16_DECODE (   ptr)
Value:
( uint16_t ) ( ( ( ( uint16_t ) ( *( ptr ) ) ) << 8 ) | \
( ( uint16_t ) ( *( ptr + 1 ) ) ) )

Macro for decoding a 2-byte unsigned int from a sequence of bytes.

Parameters
[in]ptrA uint8_t* that points to the high byte.

Function Documentation

◆ IotTestMqtt_createMqttConnection()

_mqttConnection_t * IotTestMqtt_createMqttConnection ( bool  awsIotMqttMode,
const IotMqttNetworkInfo_t pNetworkInfo,
uint16_t  keepAliveSeconds 
)

Test access function for _createMqttConnection.

See also
_createMqttConnection.

◆ IotTestMqtt_scheduleKeepAlive()

IotMqttError_t IotTestMqtt_scheduleKeepAlive ( IotMqttConnection_t  pMqttConnection)

Test access function for _scheduleKeepAlive.

See also
_scheduleKeepAlive.

◆ IotTestMqtt_sendPuback()

void IotTestMqtt_sendPuback ( _mqttConnection_t pMqttConnection,
uint16_t  packetIdentifier 
)

Test access function for _sendPuback.

See also
_sendPuback.

◆ IotTestMqtt_topicMatch()

bool IotTestMqtt_topicMatch ( const IotLink_t pSubscriptionLink,
void *  pMatch 
)

Test access function for _topicMatch.

See also
_topicMatch.

◆ IotTestMqtt_packetMatch()

bool IotTestMqtt_packetMatch ( const IotLink_t pSubscriptionLink,
void *  pMatch 
)

Test access function for _packetMatch.

See also
_packetMatch.