My Project
 All Classes Functions Properties
Instance Methods | List of all members
<MQTTClientDelegate> Protocol Reference

Instance Methods

(void) - didConnect:
 
(void) - didDisconnect
 
(void) - didPublish:
 
(void) - didReceiveMessage:
 
(void) - didSubscribe:grantedQos:
 
(void) - didUnsubscribe:
 

Method Documentation

- (void) didConnect: (NSUInteger)  code

Method that gets called upon successful connection

Parameters
codeNSUInteger that represents the connection code
- (void) didDisconnect

Method that gets called when the client gets disconnected from the host

- (void) didPublish: (NSUInteger)  messageId

Method that gets called when the client publishes

Parameters
messageIdNSUInteger that represents the message ID
- (void) didReceiveMessage: (MQTTMessage *)  mqtt_msg

Method that gets called when the client receives a message

Parameters
mqtt_msgMQTTMessage that is returned to the client
- (void) didSubscribe: (NSUInteger)  messageId
grantedQos: (NSArray *)  qos 

Method that gets called upon subscription

Parameters
messageIdId of the message that was sent
qosThe Quality of service at which messages will be received
- (void) didUnsubscribe: (NSUInteger)  messageId

Method that gets called when the client unsubscribes

Parameters
messageIdID of the message sent upon unsubscribe

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