Documentation
    Preparing search index...

    Interface MockBleSession

    One BLE session the mock holds for a window.

    service.mock.state().sessions.get('ble-1')?.subscriptions.has(MOCK_BLE_UUIDS.uartRx);
    
    interface MockBleSession {
        id: string;
        label?: string;
        state: BleSessionState;
        subscriptions: Set<string>;
        values: Map<string, number[]>;
        windowId: string;
        writes: MockBleWrite[];
    }
    Index

    Properties

    id: string

    Runtime-assigned session id (ble-N).

    label?: string

    Optional chooser label from the request.

    state: BleSessionState

    Lifecycle state.

    subscriptions: Set<string>

    Canonical characteristic UUIDs with active notifications.

    values: Map<string, number[]>

    Characteristic values overridden by writes (canonical UUID → bytes).

    windowId: string

    Owning napplet window.

    writes: MockBleWrite[]

    Every accepted write, oldest first.