sendToRadioForConnection

abstract suspend fun sendToRadioForConnection(packet: MeshPacket, expectedConnectionVersion: Long): Boolean(source)

Adds packet only while expectedConnectionVersion still owns the connected lifecycle generation.

This is the admission path for work captured by a specific connection and closes the check-then-send race across disconnect/reconnect.

Return

true when the expected generation is still current and the packet is admitted, or false when the generation is stale or admission fails for any reason documented by sendToRadio.