Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/MQTTNIO/AsyncAwaitSupport/MQTTClient+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
//
//===----------------------------------------------------------------------===//

#if canImport(FoundationEssentials)
import Dispatch
import FoundationEssentials
#else
import Foundation
#endif
import NIOCore

@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
Expand Down
4 changes: 4 additions & 0 deletions Sources/MQTTNIO/AsyncAwaitSupport/MQTTClientV5+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
//
//===----------------------------------------------------------------------===//

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
import NIOCore

@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
Expand Down
4 changes: 4 additions & 0 deletions Sources/MQTTNIO/MQTTConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
//
//===----------------------------------------------------------------------===//

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
#if canImport(Network)
import Network
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/MQTTNIO/MQTTPacket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@

/// MQTT incoming packet parameters.
struct MQTTIncomingPacket: MQTTPacket {
var description: String { "Incoming Packet 0x\(String(format: "%x", self.type.rawValue))" }
var description: String { "Incoming Packet 0x\(String(self.type.rawValue, radix: 16))" }

Check warning on line 626 in Sources/MQTTNIO/MQTTPacket.swift

View check run for this annotation

Codecov / codecov/patch

Sources/MQTTNIO/MQTTPacket.swift#L626

Added line #L626 was not covered by tests

/// Type of incoming MQTT packet.
let type: MQTTPacketType
Expand Down
Loading