orbital-systems / react-native-esp-idf-provisioning

ESP IDF provisioning and custom data library for react-native
MIT License
26 stars 6 forks source link

[android] Can't call connect on an already connected device #25

Closed mateogianolio closed 10 months ago

mateogianolio commented 10 months ago

This line fails with "No bluetooth device found with given prefix":

https://github.com/orbital-systems/react-native-esp-idf-provisioning/blob/master/android/src/main/java/com/espidfprovisioning/EspIdfProvisioningModule.kt#L339

mateogianolio commented 10 months ago

createESPDevice had an incorrect if-block which resulted in a new (incorrect) scan returning no results even though the device existed in the espDevices[] list...