简体   繁体   English

蓝牙低功耗广告服务器Android

[英]Bluetooth Low Energy Advertising Server Android

I am creating an android App that acts as a peripheral and sends out a Bluetooth Low energy advertisement. 我正在创建一个充当外围设备并发送低功耗蓝牙广告的android应用。 I am using BluetoothGattServer to set up a server for a client device to connect. 我正在使用BluetoothGattServer设置用于客户端设备连接的服务器。 My main goal is to read an RSSI value from the client. 我的主要目标是从客户端读取RSSI值。 Is it possible for me to use the BluetoothGattCallback as opposed to BluetoothGattServerCallback with the BluetoothGattServer so that i can implement and use readRemoteRssi? 我可以将BluetoothGattCallback与BluetoothGattServer使用BluetoothGattServerCallback相对,以便我可以实现和使用readRemoteRssi吗?

BluetoothGattCallback与主机相关,因此如果您的电话充当服务器/从机,则您将无法使用它

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

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