![]() We're only going to focus on the new technology at hand. This example shows how to configure your Android device to send data over Bluetooth Low Energy (BLE) protocol and receive data on another Android device. Although there are ways to wrap the APIs that are not supported before SDK 21, they will not be covered in this tutorial. Bluetooth Low Energy, a subset of the 2.4 GHz Bluetooth wireless technology that specializes in low power and oftentimes infrequent data transmissions for connected devices. You need to set the minimum SDK version to 21 in your adle file, as Bluetooth LE advertising was not introduced on Android until the release of Lollipop. For this reason, we omit version-2 from our UUID generator. Project Setupįor this tutorial, you can start by creating a basic empty project in Android Studio. RFC 4122 reserves version-2 for DCE security UUIDs however no details are provided. You can download the source files for this tutorial on GitHub. You will also learn how to scan for Bluetooth LE advertisement data so that you can react appropriately within your own applications. In this tutorial, you will learn about the BluetoothLeAdvertiser class, which enables developers to turn a supported phone into a Bluetooth LE beacon without the need for additional hardware. While it can be used for connecting devices to each other wirelessly, it also enables devices to act as beacons and broadcast data. Although a relatively new technology, Bluetooth Low Energy (LE) has already proven itself to be a versatile and useful communication medium.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |