-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behaviour between BLE and SoftAP #24
Comments
Hi @mk-prins, In case of BLE, SDK does not connect with the device. Whenever
|
@vikas-chandra-mnnit Thanks for the explanation. I do think the ability to create an ESPDevice instance without initially having the Peripheral available would be nice to have. If i'm not mistaken this is actually already the case in the Android version of this SDK. At least when using the A somewhat unrelated question; If there happen to be two EspDevices with the same |
|
Closing this issue since appropriate solution has been provided. Please fell free to reopen/file new issues if required. |
When creating an
ESPDevice
usingESPProvisionManager.shared.createESPDevice
when usingsoftap
as the transport protocol, anESPDevice
device instance is successfully created. However when usingble
as the transport protocol it first tries to connect to the device and if that connection fails it will not return theESPDevice
instance. Is there a specific reason for trying to connect to the device in the case ofble
?To give some context; My use-case requires me to create an
ESPDevice
instance before the device is connected to any power source and therefore not available. Now if I were to only have to create anESPDevice
manually this wouldn't be too much of a problem. However my use-case requires me to create the ESPDevices using a QR code. ThescanQRCode
method eventually makes use of thecreateESPDevice
method to create and return theESPDevice
instance, causing me to run into the same problem.The text was updated successfully, but these errors were encountered: