Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VitalBand

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 Optional BeaconDataLength

BeaconDataLength: ObnizPartsBleCompare<number | null> = undefined

Used as a condition of isDevice() by default.

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

Static Optional BeaconDataLength_ScanResponse

BeaconDataLength_ScanResponse: ObnizPartsBleCompare<number | null> = undefined

Used as a condition of isDevice() by default.

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

Static CompanyID

CompanyID: number[] = [0xff, 0xff]

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: "VitalBand" = "VitalBand"

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 VitalBand_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

SN

SN: 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 } = VitalBand.Config.SN

Sp02

Sp02: 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 } = VitalBand.Config.Sp02

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 } = VitalBand.Config.battery

blood_pleasure_high

blood_pleasure_high: 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 } = VitalBand.Config.blood_pleasure_high

blood_pleasure_low

blood_pleasure_low: 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 } = VitalBand.Config.blood_pleasure_low

body_temp

body_temp: 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 } = VitalBand.Config.body_temp

heart_rate

heart_rate: 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 } = VitalBand.Config.heart_rate

steps

steps: 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 } = VitalBand.Config.steps

Static Config

Config: object

SN

SN: object

index

index: number = 0

length

length: number = 3

type

type: "numBE" = "numBE"

Sp02

Sp02: object

index

index: number = 8

type

type: "numBE" = "numBE"

battery

battery: object

index

index: number = 9

type

type: "numBE" = "numBE"

blood_pleasure_high

blood_pleasure_high: object

index

index: number = 6

type

type: "numBE" = "numBE"

blood_pleasure_low

blood_pleasure_low: object

index

index: number = 7

type

type: "numBE" = "numBE"

body_temp

body_temp: object

index

index: number = 4

length

length: number = 2

multiple

multiple: number = 0.01

round

round: number = 2

type

type: "numLE" = "numLE"

heart_rate

heart_rate: object

index

index: number = 3

type

type: "numBE" = "numBE"

steps

steps: object

index

index: number = 10

length

length: number = 3

type

type: "numLE" = "numLE"

Generated using TypeDoc