def transmit! bits
      bytes_sent = @handle.bulk_transfer dataOut: bits, endpoint: USB_ENDPOINT_OUT
      bytes_sent == bits.length
    end
def transmit! bits
      bytes_sent = @handle.bulk_transfer dataOut: bits, endpoint: USB_ENDPOINT_OUT
      bytes_sent == bits.length
    end
Creates a connection to the NXT brick.

 Sends a packed string of bits.

 Example:

     # Causes the brick to beep
     conn.transmit [0x80, 0x03, 0xf4, 0x01, 0xf4, 0x01].pack('C*')'

 @see The LEGO MINDSTORMS NXT Communications Protocol (Appendex 1 of the Bluetooth Development Kit)

 @param {String} bits This must be a binary string. Use `Array#pack('C*')` to generate the string.
 @return [Boolean] Returns true if all the data was sent and received by the NXT.