AWS IoT Device SDK C: MQTT
MQTT 3.1.1 client library
Return to main page ↑
IoT_Client_Connect_Params Struct Reference

MQTT Connection Parameters. More...

#include <aws_iot_mqtt_client.h>

Data Fields

char struct_id [4]
 The eyecatcher for this structure. must be MQTC.
 
MQTT_Ver_t MQTTVersion
 Desired MQTT version used during connection.
 
char * pClientID
 Pointer to a string defining the MQTT client ID (this needs to be unique per device across your AWS account)
 
uint16_t clientIDLen
 Client Id Length. 16 bit unsigned integer.
 
uint16_t keepAliveIntervalInSec
 MQTT keep alive interval in seconds. Defines inactivity time allowed before determining the connection has been lost.
 
bool isCleanSession
 MQTT clean session. True = this session is to be treated as clean. Previous server state is cleared and no stated is retained from this connection.
 
bool isWillMsgPresent
 Is there a LWT associated with this connection?
 
IoT_MQTT_Will_Options will
 MQTT LWT parameters.
 
char * pUsername
 Not used in the AWS IoT Service, will need to be cstring if used.
 
uint16_t usernameLen
 Username Length. 16 bit unsigned integer.
 
char * pPassword
 Not used in the AWS IoT Service, will need to be cstring if used.
 
uint16_t passwordLen
 Password Length. 16 bit unsigned integer.
 

Detailed Description

MQTT Connection Parameters.

Defining a type for MQTT connection parameters. Passed into client when establishing a connection.


The documentation for this struct was generated from the following file: