Documentation
    Preparing search index...
    DfuState:
        | "initializing"
        | "connecting"
        | "connected"
        | "starting"
        | "enablingDfuMode"
        | "uploading"
        | "validatingFirmware"
        | "disconnecting"
        | "disconnected"
        | "completed"
        | "aborted"
        | "errored"

    The list of possible DFU states. They are roughly listed in the order in which they occur.

    Type Declaration

    • "initializing"

      Initializing the DFU service. This state is notified immediately upon calling startDfu and before validating the given parameters.

    • "connecting"

      The DFU service has started connecting with the DFU target.

    • "connected"

      The DFU service has successfully connected, discovered services and found DFU service on the DFU target.

    • "starting"

      The DFU process is starting. This includes reading the DFU Version characteristic, sending the DFU_START command as well as the Init packet, if set.

    • "enablingDfuMode"

      The DFU service discovered that the DFU target is in the application mode and must be switched to DFU mode. The switch command will be sent and the DFU process should start again. There will be no "disconnected" DFU state notification following this event.

    • "uploading"

      The DFU process was started and bytes about to be sent.

    • "validatingFirmware"

      The new firmware is being validated on the target device.

    • "disconnecting"

      The DFU service started to disconnect from the target device.

    • "disconnected"

      The DFU service disconnected from the device. The device has been reset.

    • "completed"

      The DFU process succeeded.

    • "aborted"

      The DFU process has been aborted by calling abortDfu.

    • "errored"

      The DFU process encountered an error.