Monitoring MQTT Packet
CourierMQTTChuck
is used to inspects all the outgoing or incoming packets for an underlying MQTT connection.
It intercepts all the packets, persisting them and providing a UI for accessing all the MQTT packets sent or received. It also provides multiple other features like search, share, and clear data.
It uses SwiftUI under the hood with minimum iOS deployment version of 15, you can still build this on iOS 11 to access the logger without the view.
Usage
Add Dependency to CourierMQTTChuck
and simply declare the logger like so:
import CourierMQTTChuck
let logger = MQTTChuckLogger()
Then Declare the MQTTChuckView
passing the logger
in SwiftUI View.
.sheet(isPresented: $showChuckView, content: {
NavigationView {
MQTTChuckView(logger: logger)
}
})