29 #ifndef IOT_TEST_ACCESS_MQTT_H_ 30 #define IOT_TEST_ACCESS_MQTT_H_ 41 uint16_t keepAliveSeconds );
58 uint16_t packetIdentifier );
65 #define UINT16_HIGH_BYTE( x ) ( ( uint8_t ) ( x >> 8 ) ) 66 #define UINT16_LOW_BYTE( x ) ( ( uint8_t ) ( x & 0x00ff ) ) 73 #define UINT16_DECODE( ptr ) \ 74 ( uint16_t ) ( ( ( ( uint16_t ) ( *( ptr ) ) ) << 8 ) | \ 75 ( ( uint16_t ) ( *( ptr + 1 ) ) ) ) 80 typedef struct _topicMatchParams
82 const char * pTopicName;
83 uint16_t topicNameLength;
86 typedef struct _packetMatchParams
88 uint16_t packetIdentifier;
bool IotTestMqtt_packetMatch(const IotLink_t *pSubscriptionLink, void *pMatch)
Test access function for _packetMatch.
Definition: iot_test_access_mqtt_subscription.c:48
IotMqttError_t
Return codes of MQTT functions.
Definition: iot_mqtt_types.h:106
Represents an MQTT connection.
Definition: iot_mqtt_internal.h:383
_mqttConnection_t * IotTestMqtt_createMqttConnection(bool awsIotMqttMode, const IotMqttNetworkInfo_t *pNetworkInfo, uint16_t keepAliveSeconds)
Test access function for _createMqttConnection.
Definition: iot_test_access_mqtt_api.c:40
First parameter to _topicMatch.
Definition: iot_mqtt_subscription.c:46
First parameter to _packetMatch.
Definition: iot_mqtt_subscription.c:56
struct _mqttConnection * IotMqttConnection_t
Opaque handle of an MQTT connection.
Definition: iot_mqtt_types.h:67
IotMqttError_t IotTestMqtt_scheduleKeepAlive(IotMqttConnection_t pMqttConnection)
Test access function for _scheduleKeepAlive.
Definition: iot_test_access_mqtt_api.c:49
MQTT network connection details.
Definition: iot_mqtt_types.h:1013
bool IotTestMqtt_topicMatch(const IotLink_t *pSubscriptionLink, void *pMatch)
Test access function for _topicMatch.
Definition: iot_test_access_mqtt_subscription.c:40
void IotTestMqtt_sendPuback(_mqttConnection_t *pMqttConnection, uint16_t packetIdentifier)
Test access function for _sendPuback.
Definition: iot_test_access_mqtt_network.c:37