d broadcastUpdate(final String action,final BluetoothGattCharacteristic characteristic){
final Intent intent = new Intent(action);
if(UUID_HEART_RATE_MEASUREMENT.equals(characteristic.getUuid())){
int flag = characteristic.getProperties();
int format = -1;
if((flag & 0x01)!= 0){
format = BluetoothGattCharacteristic.FORMAT_UINT16;
Log.d(TAG,"Heart Rate format UINT16.");
}else{
format = BluetoothGattCharacteristic.FORMAT_UINT8;
Log.d(TAG,"Heart Rate format UINT8.");
}