Package jmri

Interface CommandStation

    • Method Detail

      • sendPacket

        boolean sendPacket​(@Nonnull
                           byte[] packet,
                           int repeats)
        Send a specific packet to the rails.
        Parameters:
        packet - Byte array representing the packet, including the error-correction byte.
        repeats - Number of times to repeat the transmission.
        Returns:
        true if the operation succeeds, false otherwise.