eddystone-characteristics.js
function ByteCharateristic(opts) {
	ByteCharateristic.super_.call(this, opts);

	this.on('beforeWrite', function(data, res) {
		res(data.length == opts.sizeof ? Results.Success : Results.InvalidAttributeLength);
	});

	this.toBuffer = byte2buf(opts.sizeof);
	this.fromBuffer = buf2byte(opts.sizeof);
}
function ByteCharateristic(opts) {
	ByteCharateristic.super_.call(this, opts);

	this.on('beforeWrite', function(data, res) {
		res(data.length == opts.sizeof ? Results.Success : Results.InvalidAttributeLength);
	});

	this.toBuffer = byte2buf(opts.sizeof);
	this.fromBuffer = buf2byte(opts.sizeof);
}
function ByteCharateristic ( opts ) { ByteCharateristic . super_ . call ( this , opts ) ; this . on ( 'beforeWrite' , function ( data , res ) { res ( data . length == opts . sizeof ? Results . Success : Results . InvalidAttributeLength ) ; } ) ; this . toBuffer = byte2buf ( opts . sizeof ) ; this . fromBuffer = buf2byte ( opts . sizeof ) ; }
characteristics for byte data
characteristics for byte data