简体   繁体   English

如何连接两部Android手机?

[英]How can I connect two android phones?

I want to connect two android phones via Bluetooth low energy but, I dont know how to create characteristic uuids and service uuid in android; 我想通过低功耗蓝牙连接两部android手机,但是,我不知道如何在android中创建典型的uuid和服务uuid​​。 I Googled a lot that I could connect the two android phones via Bluetooth low energy but, could not find useful stuff. 我用Google搜索了很多东西,可以通过低功耗蓝牙连接两部android手机,但是找不到有用的东西。

Please guide me that how could I solve the issue. 请指导我如何解决该问题。 I would be very thankful for this act of kindness. 我将非常感谢您的这种举动。 Thanks in advance. 提前致谢。

From what i understood: 据我了解:

  • Upload BluetoothChat sample codes to both devices using Eclipse or Android studio 使用Eclipse或Android Studio将BluetoothChat示例代码上传到两个设备
  • Pair them 配对它们
  • Open BluetoothChat sample app 打开BluetoothChat示例应用程序
  • Connect to each other 互相连接

Bingo, you are connected and even can chat in a range. 宾果游戏,您已经联网,甚至可以在一定范围内聊天。

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM