blinkstick.js
function getInfoBlock (device, location, callback) {
    getFeatureReport(location, 33, function (err, buffer) {
        if (typeof(err) !== 'undefined')
        {
            callback(err);
            return;
        }

        var result = '',
        i, l;

        for (i = 1, l = buffer.length; i < l; i++) {
            if (i === 0) break;
            result += String.fromCharCode(buffer[i]);
        }

        callback(err, result);
    });
}
function getInfoBlock (device, location, callback) {
    getFeatureReport(location, 33, function (err, buffer) {
        if (typeof(err) !== 'undefined')
        {
            callback(err);
            return;
        }

        var result = '',
        i, l;

        for (i = 1, l = buffer.length; i < l; i++) {
            if (i === 0) break;
            result += String.fromCharCode(buffer[i]);
        }

        callback(err, result);
    });
}
function getInfoBlock ( device , location , callback ) { getFeatureReport ( location , 33 , function ( err , buffer ) { if ( typeof ( err ) !== 'undefined' ) { callback ( err ) ; return ; } var result = '' , i , l ; for ( i = 1 , l = buffer . length ; i < l ; i ++ ) { if ( i === 0 ) break ; result += String . fromCharCode ( buffer [ i ] ) ; } callback ( err , result ) ; } ) ; }
Get an infoblock from a device.

@private
@static
@method getInfoBlock
@param {BlinkStick} device Device from which to get the value.
@param {Number} location Address to seek the data.
@param {Function} callback Callback to which to pass the value.
Get an infoblock from a device .