Step 1: scan local area looking visibile bluetooth device - STB1019/Flutter-AppRing GitHub Wiki
Thirdy Parts App
In this deploy, the entire Bluetooth stack is managed by plugin Flutter Bluetooth Library
Logic Business
App implements a Scanner, an entity with the goal to provide any Bluetooth device available in the area, one by one. Every single device will be collected into a list used to show data in UI.
Logic Code
There are three parts:
- UI: all necessary code to show collected data, even any kind of update that depends.
- Scanner: manage specific thirdy part's code and provide an interface for specific functionalities; for this parts the most important goal to achieve, it is to keep separate required functions by third parts app's services. This is like a "proxy" in which all entire app doesn't need to known which thirdy parts app is installed.
- Device: provide a easy interface to manage results from Scanner's stream.