I'm using Android DFU library 1.11.1 and occasionally I see "E/DfuBaseService: Connection state change error: 133 newState: 0" errors. It appears they happen when the initial scan for devices (after performing buttonless DFU entry) does not find the device in 5 seconds, and so attempts to connect to the device at the original address (but the device is advertising at the incremented address). This may occur if the device does not start advertising in the 5s window, or Android does not see it in the 5s window, or there is some delay (for example a breakpoint, which is how I reproduce the issue) on disconnection from the device when DFU reboot occurs which causes the timer to expire without finding any devices.
Looking at the code, the timeout cannot be modified from 5s. Would it be possible to make this configurable? Or could the library provide a better error than the generic GATT_ERROR 133?