简体   繁体   English

如何在Android中不配对的情况下从蓝牙BLE设备读取数据

[英]How to read data from a Bluethooth BLE device without pair in Android

I have a Bluetooth device and I need to read data from it but without pairing with it, since it does not allow it, but I do not know how to do it, I know it is possible because I have another application that does it, but I do not know how to display the device data.我有一个蓝牙设备,我需要从中读取数据但没有与之配对,因为它不允许这样做,但我不知道该怎么做,我知道这是可能的,因为我有另一个应用程序可以做到这一点,但我不知道如何显示设备数据。

Thank you谢谢

Bluetooth works by pairing with a specific device, whereas BLE is more like a community message board, with devices posting little pieces of information or accepting small updates.蓝牙通过与特定设备配对来工作,而 BLE 更像是社区留言板,设备发布少量信息或接受小更新。 Take a look at the official Android docs on BLE.查看有关 BLE 的官方 Android 文档。 They describe the basics of the protocol and outline how to discover devices and perform read/write operations: https://developer.android.com/guide/topics/connectivity/bluetooth-le他们描述了协议的基础知识并概述了如何发现设备和执行读/写操作: https : //developer.android.com/guide/topics/connectivity/bluetooth-le

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

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