|
AWS IoT Device SDK C++ v2 1.44.1
AWS IoT Device SDK C++ v2
|
Classes | |
| class | MqttClient |
| class | MqttConnection |
| struct | MqttConnectionOperationStatistics |
| struct | MqttConnectionOptions |
| struct | OnConnectionClosedData |
| struct | OnConnectionFailureData |
| struct | OnConnectionSuccessData |
Typedefs | |
| using | OnConnectionInterruptedHandler = std::function<void(MqttConnection &connection, int error)> |
| using | OnConnectionResumedHandler |
| using | OnConnectionCompletedHandler |
| using | OnConnectionClosedHandler |
| using | OnConnectionSuccessHandler |
| using | OnConnectionFailureHandler |
| using | OnDisconnectHandler = std::function<void(MqttConnection &connection)> |
| using | OnPublishReceivedHandler |
| using | OnWebSocketHandshakeInterceptComplete |
| using | OnWebSocketHandshakeIntercept |
| using | OnMessageReceivedHandler |
| using | OnSubAckHandler |
| using | OnMultiSubAckHandler |
| using | OnOperationCompleteHandler |
| using | QOS = aws_mqtt_qos |
| using | ReturnCode = aws_mqtt_connect_return_code |
Invoked when a connection is disconnected and shutdown successfully.
Note: Currently callbackData will always be nullptr, but this may change in the future to send additional data.
Invoked when a connack message is received, or an error occurred.
Invoked whenever the connection fails to connect.
This callback is invoked for every failed connect and every failed reconnect.
| using Aws::Crt::Mqtt::OnConnectionInterruptedHandler = std::function<void(MqttConnection &connection, int error)> |
Invoked Upon Connection loss.
Invoked Upon Connection resumed.
Invoked whenever the connection successfully connects.
This callback is invoked for every successful connect and every successful reconnect.
| using Aws::Crt::Mqtt::OnDisconnectHandler = std::function<void(MqttConnection &connection)> |
Invoked when a disconnect message has been sent.
Invoked upon receipt of a Publish message on a subscribed topic.
| connection | The connection object. |
| topic | The information channel to which the payload data was published. |
| payload | The payload data. |
| dup | DUP flag. If true, this might be re-delivery of an earlier attempt to send the message. |
| qos | Quality of Service used to deliver the message. |
| retain | Retain flag. If true, the message was sent as a result of a new subscription being made by the client. |
Invoked when a suback message for multiple topics is received.
| connection | The connection object. |
| packetId | Packet ID of the corresponding subscribe request. |
| topics | The information channels to which the payload data was published. |
| qos | Quality of Service used to deliver the message. |
| errorCode | Indicating if an error occurred. |
Invoked when an operation completes.
For QoS 0, this is when the packet is passed to the tls layer. For QoS 1 (and 2, in theory) this is when the final ACK packet is received from the server.
| connection | The connection object. |
| packetId | Packet ID of the corresponding subscribe request. |
| errorCode | Indicating if an error occurred. |
Invoked when a suback message is received.
| connection | The connection object. |
| packetId | Packet ID of the corresponding subscribe request. |
| topic | The information channel to which the payload data was published. |
| qos | Quality of Service used to deliver the message. |
| errorCode | Indicating if an error occurred. |
Invoked during websocket handshake to give users opportunity to transform an http request for purposes such as signing/authorization etc... Returning from this function does not continue the websocket handshake since some work flows may be asynchronous. To accommodate that, onComplete must be invoked upon completion of the signing process.
Callback for users to invoke upon completion of, presumably asynchronous, OnWebSocketHandshakeIntercept callback's initiated process.
| using Aws::Crt::Mqtt::QOS = aws_mqtt_qos |
| using Aws::Crt::Mqtt::ReturnCode = aws_mqtt_connect_return_code |