KAATcpConnAck Class Reference

Inherits from KAAMqttFrame : NSObject
Declared in KAATcpConnAck.h
KAATcpConnAck.m

Overview

ConnAck message Class. The CONNACK message is a message sent by the server in response to a CONNECT request from a client.
Variable header
byte 1 reserved (0)
byte 2 Return Code

– pack

Pack message into mqtt frame

- (void)pack

Discussion

Pack message into mqtt frame

Declared In

KAAMqttFrame.h

– decode

Decode message from mqttFrame buffer

- (void)decode

Discussion

Decode message from mqttFrame buffer

Exceptions

KaaTcpProtocolException

TCP exception

Declared In

KAAMqttFrame.h

– needToCloseConnection

Check if this Mqtt frame should be last frame on connection and connection should be closed.

- (BOOL)needToCloseConnection

Return Value

YES if connection should be closed after frame transmition.

Discussion

Check if this Mqtt frame should be last frame on connection and connection should be closed.

Declared In

KAAMqttFrame.h