mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Fix
This commit is contained in:
parent
4d7cb6dfc4
commit
39ed4b5ce4
1 changed files with 4 additions and 2 deletions
|
|
@ -228,7 +228,7 @@ actor TAKConnection {
|
|||
}
|
||||
|
||||
do {
|
||||
let cotMessage = try CoTMessage.parse(from: data)
|
||||
let cotMessage = try CoTMessage.parseData(data)
|
||||
|
||||
// Handle TAK Protocol control messages
|
||||
if cotMessage.type.hasPrefix("t-x-takp") {
|
||||
|
|
@ -268,7 +268,8 @@ actor TAKConnection {
|
|||
Logger.tak.warning("Failed to parse CoT message: \(error.localizedDescription)")
|
||||
// Log the raw XML for debugging
|
||||
if let xmlString = String(data: data, encoding: .utf8) {
|
||||
Logger.tak.debug("Failed Raw CoT XML: \(xmlString.prefix(500))")
|
||||
let snippet = String(xmlString.prefix(500))
|
||||
Logger.tak.debug("Failed Raw CoT XML: \(snippet)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -494,3 +495,4 @@ enum TAKConnectionError: LocalizedError {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue