asWaypoint

fun MeshPacket.asWaypoint(): Waypoint?(source)

Decodes the payload as Waypoint if MeshPacket.decoded.portnum matches PortNum.WAYPOINT_APP.