0
BLE 장치에서 특정 특성이 변경 될 때 알림을 받고 싶습니다 .CharacteristicChanged 및 setCharacteristicNotification() 메서드를 사용했지만 연결된 장치의 동작을 변경할 때 변경 사항이 발생하지 않았습니다.블루투스 저전력을 사용하여 수신 및 수신 변경
BLE로 장치 변경을 수신하는 예는 무엇입니까?
BLE 장치에서 특정 특성이 변경 될 때 알림을 받고 싶습니다 .CharacteristicChanged 및 setCharacteristicNotification() 메서드를 사용했지만 연결된 장치의 동작을 변경할 때 변경 사항이 발생하지 않았습니다.블루투스 저전력을 사용하여 수신 및 수신 변경
BLE로 장치 변경을 수신하는 예는 무엇입니까?
descriptor.setValue()를 사용 했습니까?
BluetoothGattDescriptor descriptor = characteristic.getDescriptor(
UUID.fromString(SampleGattAttributes.CLIENT_CHARACTERISTIC_CONFIG));
descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);
mBluetoothGatt.writeDescriptor(descriptor);
https://developer.android.com/guide/topics/connectivity/bluetooth-le.html#notification
코드를 게시하시기 바랍니다 –