BLE设备找出未知特征的目的

时间:2015-03-26 20:13:00

标签: bluetooth-lowenergy android-sensors gatt characteristics

先用英语抱歉。我正在尝试创建可以连接到BLE设备(传感器)并从中提取一些数据的应用程序。问题是,我的传感器来自Relayr Wunderbar,我无法找到任何可以帮助我确定从设备获得的每个特征的目的的文档。 所以我的想法是我从传感器获得所有服务(工作正常,我得到其中的5个),但后来我无法确定哪些特性适用于CONFIG,DATA等。

有什么方法可以解决这个问题吗?

方法显示数据解析列表并返回所有服务和特征。

private final BroadcastReceiver mGattUpdateReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            final String action = intent.getAction();
            if (BluetoothLeService.ACTION_DATA_AVAILABLE.equals(action)) {
                displayData(intent.getStringExtra(BluetoothLeService.EXTRA_DATA));
            }
        }
    };

如果您需要更多我的代码来帮助我,请询问。

0 个答案:

没有答案