본문 바로가기

안드로이드

GattSever

반응형

https://jung-max.github.io/2019/09/09/Android-BLE-Gatt%EC%84%9C%EB%B2%84-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0/

 

Gatt Server 사용하기

장치가 주변 장치로 작동하려면 먼저 BluetoothGattServer를 열고 하나 이상의 BluetoothGattService 및 하나의 BluetoothGattCharacteristic로 채워야합니다. 123BluetoothGattServer server=bluetoothManager.openGattServer(context, bl

jung-max.github.io

장치가 주변장치로 작동하려면 blutoothGattserver를 열고

하나이상의 BluetoothGattService 및 하나의 BluetoothGattCharacteristic로 채워야합니다.

 

전체 쓰기, 읽기 및 알림 권한이있는 BluetoothGattCharacteristic

BluetoothGattServerCallback은 BluetoothGattServer와 관련된 모든 이벤트를 수신합니다

characteristic 또는 descriptor에 대한 쓰기 / 읽기 요청을받을 때마다 요청을 성공적으로 완료하려면 응답을 보내야합니다.

 

서비스를 하나 이상 선언할 수 있습니다. 각 서비스는 UUID에 의해 고유 하 게 식별 됩니다.

각 서비스, 특징 및 설명자는 고유한 128 비트 UUID로 정의 됩니다.

반응형

'안드로이드' 카테고리의 다른 글

뷰의 터치이벤트 관리  (0) 2021.10.18
KeyEvent  (0) 2021.06.23
Burn-in ?  (0) 2021.06.22
Service 란?  (0) 2021.06.03
Powermanager  (0) 2021.05.25