Data for a connection event.

interface PixelSessionConnectionEvent {
    reason:
        | "unknown"
        | "peripheral"
        | "success"
        | "canceled"
        | "notSupported"
        | "timeout"
        | "linkLoss"
        | "bluetoothOff"
        | "host";
    status:
        | "ready"
        | "connecting"
        | "connected"
        | "failedToConnect"
        | "disconnecting"
        | "disconnected";
    systemId: string;
}

Properties

reason:
    | "unknown"
    | "peripheral"
    | "success"
    | "canceled"
    | "notSupported"
    | "timeout"
    | "linkLoss"
    | "bluetoothOff"
    | "host"
status:
    | "ready"
    | "connecting"
    | "connected"
    | "failedToConnect"
    | "disconnecting"
    | "disconnected"
systemId: string