Options
All
  • Public
  • Public/Protected
  • All
Menu

Class iBS02IR

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

Hierarchy

Index

Constructors

constructor

Properties

address

address: string

beaconData

beaconData: number[] | null

beaconDataInScanResponse

beaconDataInScanResponse: number[] | null

peripheral

serviceData

serviceData: number[] | null

Static Optional Address

Address: ObnizPartsBleCompare<RegExp> = undefined

Used as a condition of isDevice() by default.

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

Static AvailableBleMode

AvailableBleMode: "Beacon" = "Beacon"

Static BeaconDataLength

BeaconDataLength: number = 18

Static Optional BeaconDataLength_ScanResponse

BeaconDataLength_ScanResponse: ObnizPartsBleCompare<number | null> = undefined

Used as a condition of isDevice() by default.

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

Static CompanyID

CompanyID: number[] = [0x0d, 0x00]

Static Optional CompanyID_ScanResponse

CompanyID_ScanResponse: ObnizPartsBleCompare<number[] | null> = undefined

Used as a condition of isDevice() by default.

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

Static Optional LocalName

LocalName: ObnizPartsBleCompare<RegExp> = undefined

Used as a condition of isDevice() by default.

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

Static PartsName

PartsName: "iBS02IR" = "iBS02IR"

Static Optional ServiceDataLength

ServiceDataLength: ObnizPartsBleCompare<number | null> = undefined

Used as a condition of isDevice() by default.

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

Static Optional ServiceDataStruct

ServiceDataStruct: ObnizPartsBleCompare<ObnizBleBeaconStruct<unknown> | null>

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

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

Static Optional ServiceDataUUID

ServiceDataUUID: ObnizPartsBleCompare<number[] | null> = undefined

Used as a condition of isDevice() by default.

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

Static Optional ServiceUuids

ServiceUuids: ObnizPartsBleCompare<string | string[] | null> = undefined

Used as a condition of isDevice() by default.

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

Accessors

mode

Methods

checkMode

getData

  • アドバタイジングデータを連想配列に成形 利用可能なモード: Beacon, Connectable(一部のみ) Form advertising data into an associative array Available modes: Beacon, Connectable(only part)

    Returns iBS02IR_Data

Static getAvailableBleMode

  • Available BLE modes (Beacon | Connectable | Pairing)

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

    Returns ObnizPartsBleMode[]

Static getData

  • Form advertising data into an associative array.

    アドバタイジングデータを連想配列に成形

    deprecated

    Parameters

    Returns unknown | null

Static getDeviceMode

  • Get Peripheral Mode.

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

    Parameters

    Returns ObnizPartsBleMode | null

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

Static getServiceUuids

Static info

  • Information of parts. name: PartsName

    Returns ObnizPartsInfo

Static isDevice

Static isDeviceWithMode

  • Check if peripherals and modes match the library.

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

    Parameters

    Returns boolean

    Whether to match 合致するかどうか

Object literals

Static BeaconDataStruct

BeaconDataStruct: object

battery

battery: ObnizBleBeaconStructStandard<"string" | "numLE" | "numBE" | "unsignedNumLE" | "unsignedNumBE" | "bool0001" | "bool0010" | "bool0100" | "bool1000" | "bool00010000" | "bool00100000" | "bool01000000" | "bool10000000" | "xyz" | "custom"> & { fixedIntegerBytes?: undefined | number; func?: undefined | ((data: number[], peripheral: BleRemotePeripheral) => S[key]); multiple?: undefined | number; round?: undefined | number } = BaseiBS.Config.battery

event

event: ObnizBleBeaconStructStandard<"string" | "numLE" | "numBE" | "unsignedNumLE" | "unsignedNumBE" | "bool0001" | "bool0010" | "bool0100" | "bool1000" | "bool00010000" | "bool00100000" | "bool01000000" | "bool10000000" | "xyz" | "custom"> & { fixedIntegerBytes?: undefined | number; func?: undefined | ((data: number[], peripheral: BleRemotePeripheral) => S[key]); multiple?: undefined | number; round?: undefined | number } = BaseiBS.Config.event

Static Config

Config: object

acceleration

acceleration: object

index

index: number = 4

length

length: number = 18

type

type: "xyz" = "xyz"

battery

battery: object

index

index: number = 2

length

length: number = 2

multiple

multiple: number = 0.01

round

round: number = 2

type

type: "unsignedNumLE" = "unsignedNumLE"

button

button: object

index

index: number = 4

type

type: "bool0001" = "bool0001"

count

count: object

index

index: number = 7

length

length: number = 2

type

type: "unsignedNumLE" = "unsignedNumLE"

event

event: object

HallSensor / Reed / Event

index

index: number = 4

type

type: "bool0100" = "bool0100"

fall

fall: object

index

index: number = 4

type

type: "bool1000" = "bool1000"

humidity

humidity: object

index

index: number = 7

length

length: number = 2

type

type: "numLE" = "numLE"

input_trigger

input_trigger: object

index

index: number = 4

type

type: "bool01000000" = "bool01000000"

moving

moving: object

index

index: number = 4

type

type: "bool0010" = "bool0010"

temperature

temperature: object

index

index: number = 5

length

length: number = 2

multiple

multiple: number = 0.01

round

round: number = 2

type

type: "numLE" = "numLE"

user

user: object

index

index: number = 9

length

length: number = 2

type

type: "unsignedNumLE" = "unsignedNumLE"

Generated using TypeDoc