Closed brahma-dev closed 5 years ago
Thanks for the heads up! I'll look at this sometime this week.
Looks like this is a simple fix, but the Photon I brought with me while working out of state got damaged along the way, so I can't smoke test today. I'll have access to more test devices next week, so at that point I can test and do a new setup lib release with this fix.
This seems to be the offending code. https://github.com/particle-iot/spark-setup-android/blob/master/devicesetup/src/main/java/io/particle/android/sdk/devicesetup/ui/DiscoverProcessWorker.java#L84
When
c=0
it attempts to setnull
as claim code which crashes the app (here). I believe this is unintended behaviour because older versions of stock exampleapp (ininitWithSetupOnly
mode) still work for me.