Class default

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

Hierarchy

Constructors

Properties

address: string
beaconData: null | number[]
beaconDataInScanResponse: null | number[]
firmwareRevision: string = ''
onButtonPressed: null | ((pressed) => void) = null

Event handler for button ボタンのイベントハンドラー

Type declaration

    • (pressed): void
    • Parameters

      • pressed: boolean

      Returns void

onCo2Measured: null | ((co2) => void) = null

Event handler for co2 sensor CO2センサーのイベントハンドラー

Type declaration

    • (co2): void
    • Parameters

      • co2: number

      Returns void

onPm2_5Measured: null | ((pm2_5) => void) = null

Event handler for PM2.5 sensor PM2.5センサーのイベントハンドラー

Type declaration

onTempMeasured: null | ((temp, humidity) => void) = null

Event handler for temperature sensor 温度センサーのイベントハンドラー

Type declaration

    • (temp, humidity): void
    • Parameters

      • temp: number
      • humidity: number

      Returns void

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> = undefined

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()の条件として使用

BeaconDataStruct: ObnizBleBeaconStruct<RS_BTEVS1_Data> = ...

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: RegExp = ...

BTEVS-1234: 1.0.2 EVS-1234: 1.1.2 EVS_1234 1.2~

PartsName: "RS_BTEVS1" = 'RS_BTEVS1'
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?: ObnizPartsBleCompare<string | string[]> = undefined

Used as a condition of isDevice() by default.

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

Accessors

Methods

  • Start reading the button state

    ボタンの状態読み取りを開始

    Returns Promise<void>

  • Returns Promise<void>

    Deprecated

    Start reading the co2 sensor

    CO2センサーの読み取りを開始

  • Returns Promise<void>

    Deprecated

    Start reading the PM2.5 sensor Version 1.1 is not supported PM2.5センサーの読み取りを開始 バージョン1.1より上のバージョンはサポートされません

  • Write device settings, blanks write initial values

    デバイス設定の書き込み、空欄は初期値を書き込み

    Parameters

    • config: Partial<RS_BTEVS1_Config>

      Instance of RS_BTEVS1_Config RS_BTEVS1_Configのインスタンス

    Returns Promise<boolean>

    Write result 書き込み結果

  • Change pairing LED flashing status Version 1.0.x is not supported ペアリングLEDの点滅状態の変更 バージョン1.0.xはサポートされません

    Parameters

    • blink: boolean

      Whether it blinks 点滅するかどうか

    Returns Promise<boolean>

    Write result 書き込み結果

  • Returns Promise<void>

    Deprecated

    Start reading the temperature sensor Version 1.0.x is not supported 温度センサーの読み取りを開始 バージョン1.0.xはサポートされません

  • Get Peripheral Mode.

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

    Parameters

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

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

Generated using TypeDoc