How ESPDevice and ESPProvisionManager work together
masterThe library uses two primary abstractions to manage the provisioning lifecycle:
ESPProvisionManager: A singleton class that serves as the entry point. It provides APIs for searching for devices via BLE or SoftAP and for scanning QR codes.ESPDevice: A virtual representation of the target ESP32/ESP32-S2/ESP8266 device. Once you obtain anESPDeviceinstance (via scanning or manual creation), you use it to perform connection, security configuration, network scanning, and the final provisioning steps.
Once an ESPDevice is obtained, you can maintain it for subsequent API calls or retrieve the same instance later using ESPProvisionManager.getInstance(context).getEspDevice().