TAKPacketConversion

Legacy v1 CoT <-> TAKPacket conversion for firmware <= 2.7.x.

Wire format: bare protobuf-encoded TAKPacket on ATAK_PLUGIN port 72, no zstd compression (the proto has an is_compressed flag but the firmware doesn't act on it). Supports only PLI and GeoChat payloads — shape, marker, route, casevac, emergency, and task CoT events return null and are dropped.

For the SDK-backed path that handles all payload types with zstd dictionary compression on ATAK_PLUGIN_V2 port 78, see TAKPacketV2Conversion.

TAKMeshIntegration picks between the two paths based on Capabilities.supportsTakV2 (firmware >= 2.8.0).

Functions

Link copied to clipboard
fun TAKPacket.toCoTMessage(): CoTMessage?
Link copied to clipboard
fun CoTMessage.toTAKPacket(): TAKPacket?