[Android App] BLE GATT:: [4] characteristic read/write/ notify : 이번에는 Characteristic 에 대한 read/write/notify 하는 방법에 대해 알아 보겠습니다. 아시겠지만 블루투스 코드는 성능이 느리므로 UI 가 아닌 service class 에 메서드를 만들고 호출하게 구현했습니다. GATT callback에 대한 처리는 broadcast 로 메시지를 전송하고 Activity 에서 이를 받아서 처리했습니다. ▶ Characteristic read : Characteristic read는 BluetoothGatt 클래스의 readCharacteristic() 메서드를 이용합니다. 다음처럼 선언이 되어 있습니다. Characteristic 속성 값에 아래처럼 READ 가 존재하는 특성에 대해서 체킹후 호출해야 합니다. → Characteristic .. Android_app 2023. 6. 20. 11:00
[Bluetooth ] GATT Profile feature 그림 : Bluetooth Core Specification 내용중 GATT Feature 11개 관련 동작 예제 그림 첨부합니다. 1> GATT profile 안 11 가지 features 1-1> Server Configuration 1-2> Primary Service Discovery 1-3> Relationship Discovery 1-4> Characteristic Discovery 1-5> Characteristic Descriptor Discovery 1-6> Reading a Characteristic Value (4가지) ▶ Read Characteristic Value ▶ Read Using Characteristic UUID ▶ Read Long Characteristic Values ▶.. 카테고리 없음 2022. 6. 16. 14:48