orphe-core-insole - v0.4.0
    Preparing search index...

    Interface OrpheCoreInsoleOptions<TFields, TCommands, TProfile>

    OrpheCoreInsole のコンストラクタオプション

    interface OrpheCoreInsoleOptions<
        TFields extends object = SensorFieldMap,
        TCommands = unknown,
        TProfile extends
            DeviceProfile<TFields, TCommands> = DeviceProfile<TFields, TCommands>,
    > {
        bluetooth?: BleBluetooth;
        clock?: () => number;
        connectTimeoutMs?: number;
        deviceGuard?: DeviceGuard;
        events?: TransportEvents;
        id?: number;
        log?: (message: string, detail?: unknown) => void;
        profile?: TProfile & DeviceProfile<TFields, TCommands>;
        reconnect?: ReconnectConfig;
        sharedBridge?: SharedBridgeOptions;
        storage?: StorageLike;
        wait?: (ms: number) => Promise<void>;
    }

    Type Parameters

    Index
    bluetooth?: BleBluetooth

    注入点(テスト・非ブラウザ環境用): Web Bluetooth 実装。既定 navigator.bluetooth

    clock?: () => number

    テスト用注入点: BLE 実測周波数計測の単調クロック [ms]。既定 performance.now

    connectTimeoutMs?: number

    gatt.connect() のハング対策タイムアウト(opt-in)

    deviceGuard?: DeviceGuard

    デバイス重複割当ガード

    transport イベントの購読(onNotification は parse 前の生 DataView が透過で届く)

    id?: number

    スロット番号(0 or 1)。記憶キーの分離に使う。既定 0

    log?: (message: string, detail?: unknown) => void

    内部動作のデバッグログ出力先(requestDevice / GATT 解決 / notify 開始など)

    デバイス種別の実装(coreProfile() / insoleProfile() / autoProfile())。省略時は autoProfile()

    reconnect?: ReconnectConfig

    再接続の既定設定(begin の options.reconnect が優先)

    sharedBridge?: SharedBridgeOptions

    タブ間共有(begin の useSharedBridge)の環境とタイミング。通常は省略する

    storage?: StorageLike

    注入点: デバイス記憶の保存先。既定 localStorage

    wait?: (ms: number) => Promise<void>

    注入点: 待機の実装。既定 setTimeout