decodeAsPosition

fun MeshPacket.decodeAsPosition(): Position?(source)

Decode the payload as a Position iff decoded.portnum == POSITION_APP.