다음을 통해 공유


GattLocalCharacteristic.ReadRequested 이벤트

정의

GATT 클라이언트가 읽기 작업을 요청할 때 트리거되는 이벤트입니다.

// Register
event_token ReadRequested(TypedEventHandler<GattLocalCharacteristic, GattReadRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void ReadRequested(event_token const* cookie) const;

// Revoke with event_revoker
GattLocalCharacteristic::ReadRequested_revoker ReadRequested(auto_revoke_t, TypedEventHandler<GattLocalCharacteristic, GattReadRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<GattLocalCharacteristic,GattReadRequestedEventArgs> ReadRequested;
function onReadRequested(eventArgs) { /* Your code */ }
gattLocalCharacteristic.addEventListener("readrequested", onReadRequested);
gattLocalCharacteristic.removeEventListener("readrequested", onReadRequested);
- or -
gattLocalCharacteristic.onreadrequested = onReadRequested;
Public Custom Event ReadRequested As TypedEventHandler(Of GattLocalCharacteristic, GattReadRequestedEventArgs) 

이벤트 유형

Windows 요구 사항

앱 기능
bluetooth

적용 대상