Abstract
Bluetooth technology is a solution for wireless transmission of consumer electronics products, especially low-power Bluetooth technology is more and more widely used in recent years due to its ultra-low operating power consumption and standby power consumption. This article details the communication process of Bluetooth Low Energy version 4.2 based on the Android platform application.
Highlights
Bluetooth technology has an important application in wireless communication technology
We will sort out the Bluetooth low energy communication process under the Android platform
With Bluetooth enabled and enabled, call the startLeScan() method and pass in the BluetoothAdapter.LeScanCallback callback method as a parameter to search for Bluetooth
Summary
Bluetooth technology has an important application in wireless communication technology. Bluetooth low energy is a new type of ultra-low power wireless transmission technology introduced after Bluetooth 4.0, which has extremely low operating and standby power consumption. Android 4.3 introduced BluetoothManager, the application can get Bluetooth adapter through BluetoothManager class. The whole system has only one Bluetooth adapter, which is used for various general operations of Bluetooth low energy. Check whether Bluetooth is turned on by calling the isEnabled() method If it returns false, the user is prompted to enable Bluetooth. The user is prompted to enable Bluetooth. code show as below: if
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.