-1
블루투스 BLE을 구현했으며 성공적으로 읽기/쓰기 명령을 만들었습니다. 그러나 얼마 전 onCharacteristicRead
이 호출되지 않습니다. 무엇이 문제 일 수 있습니까? 때로는 완벽하게 작동하므로 읽기/쓰기 코드가 적절합니다. 이러한 작업을 수행하기 위해 장치를 쌍으로 연결해야합니까? 아니면 그냥 connectGatt
충분하니?BLE onCharacteristicRead 콜백이 호출되지 않습니다.
일부 코드없이 답장하기가 어렵습니다. 특정 특성에 대한 알림을 사용하려면 [setCharacteristicNotification] (https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#setCharacteristicNotification (android.bluetooth.BluetoothGattCharacteristic, % 20boolean))을 사용 하시겠습니까? – ricc