Use the Bluetooth Beacon function to control devices and receive commands
The beacon device will broadcast a data packet to the surroundings at regular
intervals. As an independent Bluetooth host (such as a mobile phone, etc.), it will .
receive the data packets broadcasted by Beacon at intervals
At the same time, when the host receives the broadcasted packet, it will
determine which Bluetooth device the broadcast packet comes from. At this time, if
the APP corresponding to Beacon is installed on the mobile phone, the APP that
receives the ID will take corresponding action according to the setting condition of the ID.
In the same way, it can also be operated in reverse. The mobile phone is used as .
the transmitter and the Bluetooth device is used as the receiver, which can solve the .
problem that Bluetooth cannot connect to multiple devices at once .