toDataPacket

open fun toDataPacket(packet: MeshPacket): DataPacket?(source)

Maps a MeshPacket to a DataPacket, or returns null if the packet has no decoded data.