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

    Interface TransportConfig

    OrpheBleTransport の生成設定。

    interface TransportConfig {
        bluetooth?: BleBluetooth;
        characteristics?: Record<string, CharacteristicId>;
        connectTimeoutMs?: number;
        deviceGuard?: DeviceGuard;
        events?: TransportEvents;
        log?: (message: string, detail?: unknown) => void;
        reconnect?: ReconnectConfig;
        reconnectConnect?: () => Promise<unknown>;
        requestDeviceOptions:
            | BleRequestDeviceOptions
            | (() => BleRequestDeviceOptions);
        storage?: StorageLike;
        storageKey?: string;
        wait?: (ms: number) => Promise<void>;
    }
    Index
    bluetooth?: BleBluetooth

    注入点: 既定 navigator.bluetooth

    characteristics?: Record<string, CharacteristicId>

    論理名 → UUID ペア。registerCharacteristic() でも追加できる

    connectTimeoutMs?: number

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

    deviceGuard?: DeviceGuard

    デバイス重複割当ガード

    デバイスSDK層へのイベント通知先

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

    デバッグログ出力先(未設定ならログなし)

    reconnect?: ReconnectConfig

    自動再接続の設定

    reconnectConnect?: () => Promise<unknown>

    自動再接続1回分の接続処理。デバイスSDKの begin() シーケンス (DeviceInfo書込・streaming mode設定・時刻同期・notify開始)を渡す。 未設定の場合、自動再接続は有効化できない。

    requestDeviceOptions: BleRequestDeviceOptions | (() => BleRequestDeviceOptions)

    chooser のフィルタ設定。関数を渡すと chooser を開くたびに呼んで最新の設定を使う

    storage?: StorageLike

    注入点: 既定 localStorage

    storageKey?: string

    デバイス記憶の localStorage キー(スロットごとに一意にする)

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

    テスト用: 再接続待機の実装(既定 setTimeout)