gattacker2nrf.js
function formatUuid(Uuid) {
	var formatted='';
	//expand short service/characteristic UUID
	if (Uuid.length == 4) {
		formatted='0000' + Uuid + '-0000-1000-8000-00805f9b34fb';
	}
	else { //just add dashes 
		formatted = Uuid.slice(0,8)+'-'+Uuid.slice(8,12)+'-'+Uuid.slice(12,16)+'-'+Uuid.slice(16,20)+'-'+Uuid.slice(20,32);
	}
	return formatted;
}
function formatUuid(Uuid) {
	var formatted='';
	//expand short service/characteristic UUID
	if (Uuid.length == 4) {
		formatted='0000' + Uuid + '-0000-1000-8000-00805f9b34fb';
	}
	else { //just add dashes 
		formatted = Uuid.slice(0,8)+'-'+Uuid.slice(8,12)+'-'+Uuid.slice(12,16)+'-'+Uuid.slice(16,20)+'-'+Uuid.slice(20,32);
	}
	return formatted;
}
function formatUuid ( Uuid ) { var formatted = '' ; //expand short service/characteristic UUID if ( Uuid . length == 4 ) { formatted = '0000' + Uuid + '-0000-1000-8000-00805f9b34fb' ; } else { //just add dashes  formatted = Uuid . slice ( 0 , 8 ) + '-' + Uuid . slice ( 8 , 12 ) + '-' + Uuid . slice ( 12 , 16 ) + '-' + Uuid . slice ( 16 , 20 ) + '-' + Uuid . slice ( 20 , 32 ) ; } return formatted ; }
nrf requires strict UUID format
nrf requires strict UUID format