GattSession.MaxPduSizeChanged Evento

Definizione

Evento generato quando le dimensioni massime dell'unità dati del protocollo (PDU) cambiano. Il PDU è noto anche come unità di trasmissione massima (MTU).

MaxPduSizeChanged viene generato ogni volta che viene modificata l'MTU negoziata per il protocollo di attributo (ATT). E che può essere modificato o negoziato da una periferica Bluetooth remota. Come sviluppatore, non è possibile modificare il valore usato da Windows stesso, poiché è completamente gestito dal sistema operativo.

Vedere anche la proprietà GattSession.MaxPduSize che, come accennato, è di sola lettura.

// Register
event_token MaxPduSizeChanged(TypedEventHandler<GattSession, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
GattSession::MaxPduSizeChanged_revoker MaxPduSizeChanged(auto_revoke_t, TypedEventHandler<GattSession, IInspectable const&> const& handler) const;
public event TypedEventHandler<GattSession,object> MaxPduSizeChanged;
function onMaxPduSizeChanged(eventArgs) { /* Your code */ }
gattSession.addEventListener("maxpdusizechanged", onMaxPduSizeChanged);
gattSession.removeEventListener("maxpdusizechanged", onMaxPduSizeChanged);
- or -
gattSession.onmaxpdusizechanged = onMaxPduSizeChanged;
Public Custom Event MaxPduSizeChanged As TypedEventHandler(Of GattSession, Object) 

Tipo evento

Requisiti Windows

Funzionalità dell'app
bluetooth

Commenti

Importante

Vedere le osservazioni nell'argomento della proprietà GattSession.MaxPduSize .

Si applica a