Options
All
  • Public
  • Public/Protected
  • All
Menu

Class STM550B

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' as const

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

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

acceleration_vector

acceleration_vector: object

func

func: (Anonymous function) = findType('acceleration_vector')

index

index: number = 7

length

length: number = 255

type

type: "custom" = "custom"

energy_level

energy_level: object

func

func: (Anonymous function) = findType('energy_level', 0.5)

index

index: number = 4

length

length: number = 255

type

type: "custom" = "custom"

humidity

humidity: object

func

func: (Anonymous function) = findType('humidity', 0.5)

index

index: number = 4

length

length: number = 255

type

type: "custom" = "custom"

illumination_sensor

illumination_sensor: object

func

func: (Anonymous function) = findType('illumination_sensor')

index

index: number = 4

length

length: number = 255

type

type: "custom" = "custom"

illumination_solar_cell

illumination_solar_cell: object

func

func: (Anonymous function) = findType('illumination_solar_cell')

index

index: number = 4

length

length: number = 255

type

type: "custom" = "custom"

magnet_contact

magnet_contact: object

func

func: (Anonymous function) = findType('magnet_contact')

index

index: number = 7

length

length: number = 255

type

type: "custom" = "custom"

temperature

temperature: object

func

func: (Anonymous function) = findType('temperature', 0.01)

index

index: number = 4

length

length: number = 255

type

type: "custom" = "custom"

voltage

voltage: object

func

func: (Anonymous function) = findType('voltage', 0.5)

index

index: number = 4

length

length: number = 255

type

type: "custom" = "custom"

Static CompanyID

CompanyID: object

Beacon

Beacon: number[] = [0xda, 0x03]

Generated using TypeDoc