Closed shiv2299 closed 10 months ago
The demo app is just configured to show a quick demo. It isn't meant to be used beyond that. Because of this, it is not optimized for continued use. Once you make the first connection with your bridge, that IP is saved to the device. Later on, when you try to make a new connection, that bridge doesn't show up since it is already saved to memory. The demo app doesn't look into saved memory to get previous bridges.
To fix this, you can clear the memory on the emulator every time you run the demo, or you can practice and get to know Flutter Hue by adding to the demo and retrieving the bridge from memory if it has already established a connection.
I will try using fetchSavedBridges()
to get the existing bridges.
Hi, I was able to fetch the bridge from fetchSavedBridges
. Thanks for the clarification 🙌🏻
I used the example demo app as it is. It is able to discover the bridge and control the light on first install but after reopening the app it doesn’t show the bridge ip. I am not sure what I am doing wrong.
Steps followed:
Appreciate any help