Class default

Logtta_AD management class Logtta_ADを管理するクラス

Hierarchy

Constructors

Properties

address: string
batteryService?: BleBatteryService
beaconData: null | number[]
beaconDataInScanResponse: null | number[]
genericAccess?: BleGenericAccess
onNotify?: ((data) => void)

Type declaration

ondisconnect?: ((reason) => void | Promise<void>)

Type declaration

    • (reason): void | Promise<void>
    • onDisconnect callback function.

      切断された時に呼ばれるコールバック関数

      Parameters

      • reason: unknown

        Reason for being disconnected 切断された理由

      Returns void | Promise<void>

serviceData: null | number[]
Address?: ObnizPartsBleCompareWithNonNull<RegExp> = undefined

Used as a condition of isDevice() by default.

標準でisDevice()の条件として使用

AvailableBleMode: "Beacon" | "Connectable" | "Pairing" | ("Beacon" | "Connectable" | "Pairing")[] = ...
BeaconDataLength: ObnizPartsBleCompare<number> = ...

Used as a condition of isDevice() by default.

標準でisDevice()の条件として使用

BeaconDataLength_ScanResponse?: ObnizPartsBleCompare<number> = undefined

Overall length of manufacturer-specific data. Used as a condition of isDevice() by default.

製造者固有データ全体の長さ 標準でisDevice()の条件として使用

Used as a condition of isDevice() by default. Compare with data after Company ID.

標準でisDevice()の条件として使用 CompanyID以降のデータと比較

CompanyID: ObnizPartsBleCompare<number[]> = ...

Used as a condition of isDevice() by default.

標準でisDevice()の条件として使用

CompanyID_ScanResponse?: ObnizPartsBleCompare<number[]> = undefined

Used as a condition of isDevice() by default.

標準でisDevice()の条件として使用

LocalName: {
    Beacon: RegExp;
    Connectable: undefined;
} = ...

Used as a condition of isDevice() by default.

標準でisDevice()の条件として使用

Type declaration

  • Beacon: RegExp
  • Connectable: undefined
PartsName: "Logtta_AD" = 'Logtta_AD'
ServiceDataLength?: ObnizPartsBleCompare<number> = undefined

Used as a condition of isDevice() by default.

標準でisDevice()の条件として使用

ServiceDataStruct?: ObnizPartsBleCompare<ObnizBleBeaconStruct<unknown>>

Used as a condition of isDevice() by default. Compare with data after Service UUID.

標準でisDevice()の条件として使用 ServiceUUID以降のデータと比較

ServiceDataUUID?: ObnizPartsBleCompare<number[]> = undefined

Used as a condition of isDevice() by default.

標準でisDevice()の条件として使用

ServiceUuids: {
    Beacon: null;
    Connectable: string;
} = ...

Used as a condition of isDevice() by default.

標準でisDevice()の条件として使用

Type declaration

  • Beacon: null
  • Connectable: string

Accessors

Methods

  • Authorize PIN code

    ピンコードを認証

    Parameters

    • code: string | number

      PIN code ピンコード

    Returns Promise<boolean>

    Whether authentication was/is passed 認証が通った/通っているかどうか

  • Connect to the services of a device

    デバイスのサービスに接続

    Parameters

    • Optional keys: string

      Key acquired when pairing previously 以前にペアリングしたときに取得されたキー

    Returns Promise<void>

  • Get the current value from the Logtta_AD

    Logtta_ADから電流値を取得

    Returns Promise<number>

    the current value from the Logtta_AD

    Logtta_ADから受け取った電流値

  • Get the count data from the Logtta_AD

    Logtta_ADからカウントデータを取得

    Returns Promise<number>

    the count data from the Logtta_AD

    Logtta_ADから受け取ったカウントデータ

  • Get the voltage value from the Logtta_AD

    Logtta_ADから電圧値を取得

    Returns Promise<number>

    the voltage value from the Logtta_AD

    Logtta_ADから受け取った電圧値

  • Available BLE modes (Beacon | Connectable | Pairing)

    利用可能なBLEのモード (Beacon | Connectable | Pairing)

    Returns ("Beacon" | "Connectable" | "Pairing")[]

  • Get Peripheral Mode.

    ペリフェラルのモードを取得

    Parameters

    Returns null | "Beacon" | "Connectable" | "Pairing"

    If the corresponding device is that mode, it must be null if not applicable 該当するデバイスならばそのモード、該当しなければnull

  • Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the Logtta_AD

    Logtta_ADかどうか

    Deprecated

    Verify that the received peripheral is from the Logtta_AD

    受け取ったPeripheralがLogtta_ADのものかどうかを確認する

  • Check if peripherals and modes match the library.

    ペリフェラルとモードがライブラリと合致するかチェック

    Parameters

    • peripheral: BleRemotePeripheral

      BleRemotePeripheral

    • mode: "Beacon" | "Connectable" | "Pairing"

      Beacon | Connectable | Pairing

    Returns boolean

    Whether to match 合致するかどうか

Generated using TypeDoc