question: 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 ) ; }
target:  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).