登录
首页 » Android » android buletooth通信

android buletooth通信

于 2022-01-22 发布 文件大小:162.18 kB
0 148
下载积分: 2 下载次数: 1

代码说明:

通过蓝牙实现安卓设备连接,通过socket进行通信。界面友好,是github上的开源项目。之前上传过一个类似的,现在想换取积分拿到一个蓝牙的代码。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Android 演示Socket通信的例子 包括了服务器端代码
    Android 演示Socket通信的例子 包括了服务器端、客户端代码,以及测试的主程序。在本实例中,演示了采用两种方法实现添加线程,演示了Socket通信的建立方法,在客户端中连接到本机的端口号是5500,测试将数据输入流、输出流连接到socket,在输入测试时,输入半径数值发送到服务器,输入bye结束,程序会反复读用户数据并计算,服务端线程将监听是否有客户端连接到服务器了。   注意两种按键监听的写法,一种需要执行OnClickListener接口,btnOut.setOnClickListener(this);并且重写 @Override,另一种是:rev.setOnClickListener(new receiverlistenr());需要写内部类:class receiverlistenr implements OnClickListener。控件的设置不能在子线程中操作,需要在主线程中。
    2022-06-19 12:32:46下载
    积分:1
  • Android 自动获取短信的验证码
    Android实现自动获取短信的验证码,这是一个内部类,用于监听短信,如果是特定的电话号码的,则取出验证码,这里做实验,同样不管接到谁的短信,都取出连续六位数字,6个数字的正则表达式可以这样写:private String patternCoder = "(?
    2022-01-25 16:35:06下载
    积分:1
  • TestOnItemClickListener
    This is a TestOnItemClickListener sample in Android.
    2014-10-28 23:12:55下载
    积分:1
  • android 自定义列表选择Dialog实例源码下载,可网络请求数据
    android 自定义列表选择Dialog实例源码下载,可网络请求数据
    2014-08-21下载
    积分:1
  • confirm__brevkpoint__random
    自适应滤波器理论一书第五章的有关程序,希望对大家有用(The procedure in chapter 5 of the theory of adaptive filter, I hope it will be useful to all of us.)
    2019-03-28 13:06:32下载
    积分:1
  • 50个优秀Android项目源码.rar
    2022-07-23 08:55:39下载
    积分:1
  • AndroidBaseControls
    android常用控件的代码实现,非常适合初学者,值得拥有(This demo shows us how to use the basic controls in android, it is really useful for the beginners, it is worthful)
    2014-08-09 09:09:43下载
    积分:1
  • 扫描枪精简demo
    通过USB接口 监听键盘事件 获取扫描结果
    2023-06-10 11:50:06下载
    积分:1
  • 蓝牙4.0 android Eclipse demo源码
    对于Android开发新手,网上很多蓝牙4.0通讯的demo都显得过于复杂和不好理解上手,这个demo相对来说写的比较容易理解,注释也都清晰,对新手学习借鉴意义比较大。
    2022-03-21 11:51:30下载
    积分:1
  • MyGatt
    BLE开发所需要的知识,通过官方demo,我们会发现很多service,点击service后,每个service下面是Characteristic,每个service和Characteristic都对应一个唯一的UUID。所以,在做BLE时候,首先你应该找出你的蓝牙外围设备uuid,不然会很头疼,这个UUID也可能是硬件给你的,也可以你自己试出来,当然自己试出来是个很烦的过程。自己试的方法就是根据demo,加上一份读写的协议,然后,排着点击,显示出来的蓝牙列表进行测试,看是否和协议对应。另外,BluetoothLeService类不用做太多的更改。(BLE develops the knowledge we need. Through official demo, we will find many service. After clicking service, every service is Characteristic, each service and Characteristic correspond to a unique UUID. So, when making BLE, first you should find out your Bluetooth peripheral device UUID, otherwise it will be very headache. This UUID may also be hardware for you, or you can try it out yourself, of course, trying out it yourself is a very boring process. The way to do it is to add a read and write protocol based on demo,then test the Bluetooth list displayed by clicking on it to see if it corresponds to the protocol. In addition, the BluetoothLeService class does not have to make too many changes.)
    2018-02-07 11:55:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载