Skip to content

Commit

Permalink
fix: rename UnsubAckData #534
Browse files Browse the repository at this point in the history
  • Loading branch information
leeway1208 committed Jul 1, 2023
1 parent 6be1ef2 commit 367d53e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Example/Example/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,10 @@ extension ViewController: CocoaMQTT5Delegate {
}
}

func mqtt5(_ mqtt5: CocoaMQTT5, didUnsubscribeTopics topics: [String], UnsubAckData: MqttDecodeUnsubAck?) {
func mqtt5(_ mqtt5: CocoaMQTT5, didUnsubscribeTopics topics: [String], unsubAckData: MqttDecodeUnsubAck?) {
TRACE("topic: \(topics)")
if(UnsubAckData != nil){
print("UnsubAckData.reasonCodes \(String(describing: UnsubAckData!.reasonCodes))")
if(unsubAckData != nil){
print("unsubAckData.reasonCodes \(String(describing: unsubAckData!.reasonCodes))")
}
print("----------------------")
}
Expand Down
4 changes: 2 additions & 2 deletions Source/CocoaMQTT5.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import MqttCocoaAsyncSocket
func mqtt5(_ mqtt5: CocoaMQTT5, didSubscribeTopics success: NSDictionary, failed: [String], subAckData: MqttDecodeSubAck?)

///
func mqtt5(_ mqtt5: CocoaMQTT5, didUnsubscribeTopics topics: [String], UnsubAckData: MqttDecodeUnsubAck?)
func mqtt5(_ mqtt5: CocoaMQTT5, didUnsubscribeTopics topics: [String], unsubAckData: MqttDecodeUnsubAck?)

///
func mqtt5(_ mqtt5: CocoaMQTT5, didReceiveDisconnectReasonCode reasonCode: CocoaMQTTDISCONNECTReasonCode)
Expand Down Expand Up @@ -849,7 +849,7 @@ extension CocoaMQTT5: CocoaMQTTReaderDelegate {
subscriptions.removeValue(forKey: t.topic)
}

delegate?.mqtt5(self, didUnsubscribeTopics: removeTopics, UnsubAckData: unsuback.unSubAckProperties ?? nil)
delegate?.mqtt5(self, didUnsubscribeTopics: removeTopics, unsubAckData: unsuback.unSubAckProperties ?? nil)
didUnsubscribeTopics(self, removeTopics, unsuback.unSubAckProperties ?? nil)
}

Expand Down

1 comment on commit 367d53e

@lchamp
Copy link

@lchamp lchamp commented on 367d53e Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.