MeshDataMapper

class MeshDataMapper(nodeIdLookup: NodeIdLookup)(source)

Utility class to map MeshPacket protobufs to DataPacket domain models.

This class is platform-agnostic and can be used in shared logic.

Constructors

Link copied to clipboard
constructor(nodeIdLookup: NodeIdLookup)

Functions

Link copied to clipboard
fun toDataPacket(packet: ERROR CLASS: Symbol not found for MeshPacket): DataPacket?

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