Package 

Interface OnBleUpgradeListener

    • Method Summary

      Modifier and Type Method Description
      abstract void onUpgrade(int percent) percent of ota
      abstract void onSuccess() ota success
      abstract void onFail(String errorCode, String errorMsg) ota errorerrorCode:303; // file load error304; // ota write error or something wrong307; // ota timeout
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onUpgrade

         abstract void onUpgrade(int percent)

        percent of ota

        Parameters:
        percent - percent 0-100
      • onSuccess

         abstract void onSuccess()

        ota success

      • onFail

         abstract void onFail(String errorCode, String errorMsg)

        ota error

        errorCode:303; // file load error304; // ota write error or something wrong307; // ota timeout

        Parameters:
        errorCode - error code
        errorMsg - error msg