Bluetooth find
2016-08-23
0 0 0
no vote
Other
Earn points
1. Register broadcastreceiver with registerreceiver to obtain Bluetooth status, search device and other messages; 2. Search with blueadatper; 3. Obtain the Bluetooth device information (such as name, MAC, RSSI) obtained from the search in onreceive() of broadcastreceiver; 4. Establish a Bluetooth device object through the MAC address of the device; 5. Derive the Bluetooth socket from the Bluetooth device to prepare the Bluetooth device Socket to read and write devices; 6. Select the protocol / service of the connection through the createrfcomsockettoservicerecord() method of Bluetooth socket, here spp is used( UUID:00001101-0000-1000-8000-00805F9B34FB )7. After connect (if it is not paired, the system will automatically prompt), use getinputstream() and getoutputstream() of Bluetooth socket to read and write Bluetooth devices.
java
蓝牙
寻找
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
VPN source code accelerator
0
0
no vote
VPN source code
0
0
no vote
Springboot Campus Recruitment System
0
0
no vote
Java intelligent QR code access control management
0
0
no vote
No comment