public synchronized void notifyBand(final int times,final int onTime,final int offTime,final int flashColour){
  final List<BLEAction> list=new ArrayList<>();
  byte[] colors=convertRgb(flashColour);
  list.add(new WaitAction(150));
  list.add(new WriteAction(Profile.UUID_CHAR_CONTROL_POINT,Protocol.VIBRATION_WITHOUT_LED));
  list.add(new WaitAction(300));
  list.add(new WriteAction(Profile.UUID_CHAR_CONTROL_POINT,colors));
  queue(list);
}

public synchronized void notifyBand ( final int times , final int onTime , final int offTime , final int flashColour ) { final List < BLEAction > list = new ArrayList < > ( ) ; byte [ ] colors = convertRgb ( flashColour ) ; list . add ( new WaitAction ( 150 ) ) ; list . add ( new WriteAction ( Profile . UUID_CHAR_CONTROL_POINT , Protocol . VIBRATION_WITHOUT_LED ) ) ; list . add ( new WaitAction ( 300 ) ) ; list . add ( new WriteAction ( Profile . UUID_CHAR_CONTROL_POINT , colors ) ) ; queue ( list ) ; }
notifies the mi band with vibration and colour . vibrate and flashes the colour " times " times . each iteration will start " on_time " milliseconds ( up to 500 , will be truncated if larger ) , and then stop it " off_time " milliseconds ( no limit here ) .
