蓝牙低能耗广告

时间:2018-02-22 02:27:47

标签: bluetooth-lowenergy advertisement rssi bluetooth-peripheral

作为外围设备,根据我的理解,当您宣传数据包时,会包含RSSI值。一旦连接到中央设备,外围设备有没有办法读取该RSSI值?

1 个答案:

答案 0 :(得分:0)

你没有提到你是在尝试Android还是iOS。我会给两个提示。

适用于Android

make readRemoteRssi()异步调用并从其回调中读取RSSI值onReadRemoteRssi

适用于iOS:

调用 readRSSI()实例方法并从其代理peripheral(_:didReadRSSI:error:)

接收RSSI值
相关问题