(source, new_format=False)
Read from Emotiv hid device.
    :param source: Emotiv hid device
    :param new_format: Read more data?
    :return: Next encrypted packet from Emotiv device.
Read from Emotiv hid device.
    :param source: Emotiv hid device
    :param new_format: Read more data?
    :return: Next encrypted packet from Emotiv device.
Read from Emotiv hid device . : param source : Emotiv hid device : param new_format : Read more data? : return : Next encrypted packet from Emotiv device .
def read_non_windows(source, new_format=False):
    """
    Read from Emotiv hid device.
    :param source: Emotiv hid device
    :param new_format: Read more data?
    :return: Next encrypted packet from Emotiv device.
    """
    # Doesn't seem to matter how big we make the buffer 32 returned every time, 33 for other platforms
    # Set timeout for 1 second, to help with thread shutdown.
    if new_format:
        data = validate_data(hidapi.hid_read_timeout(source, 64, 1000), new_format)
    else:
        data = validate_data(hidapi.hid_read_timeout(source, 34, 1000), new_format)
    if data is not None:
        return ''.join(map(chr, data[1:]))
def read_non_windows ( source , new_format = False ) : # Doesn't seem to matter how big we make the buffer 32 returned every time, 33 for other platforms # Set timeout for 1 second, to help with thread shutdown. if new_format : data = validate_data ( hidapi . hid_read_timeout ( source , 64 , 1000 ) , new_format ) else : data = validate_data ( hidapi . hid_read_timeout ( source , 34 , 1000 ) , new_format ) if data is not None : return '' . join ( map ( chr , data [ 1 : ] ) )