Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MINEW_S1

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

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: ObnizPartsBleMode | ObnizPartsBleMode[] = "Beacon"

Only beacon mode support at the moment 現時点ではビーコンモードのみサポート

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 BeaconDataStruct

BeaconDataStruct: ObnizPartsBleCompare<ObnizBleBeaconStruct<unknown> | null>

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

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

Static Optional CompanyID

CompanyID: 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: "MINEW_S1" = "MINEW_S1"

Static Optional ServiceDataLength

ServiceDataLength: ObnizPartsBleCompare<number | null> = undefined

Used as a condition of isDevice() by default.

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

Static ServiceDataStruct

ServiceDataStruct: ObnizPartsBleCompare<ObnizBleBeaconStruct<MINEW_S1_Data>> = MINEW.getServiceDataStruct<MINEW_S1_Data>(7, 1, {// TODO: deleteframeType: {index: 0,type: 'unsignedNumLE',},// TODO: deleteversionNumber: {index: 1,type: 'unsignedNumLE',},// TODO: change key namebatteryLevel: {index: 2,type: 'unsignedNumLE',},temperature: {index: 3,length: 2,type: 'numLE',fixedIntegerBytes: 1,round: 2,},humidity: {index: 5,length: 2,type: 'numLE',fixedIntegerBytes: 1,round: 2,},// TODO: deletemacAddress: {index: 7,length: 6,type: 'custom',func: (data, peripheral) => peripheral.address,},// TODO: delete by disable info slotversionNumber_: {index: 1,type: 'check',data: 1,scanResponse: true, // for ignored by check},})

Static ServiceDataUUID

ServiceDataUUID: ObnizPartsBleCompare<[number, number]> = [0xe1, 0xff]

Static ServiceUuids

ServiceUuids: ObnizPartsBleCompare<string> = "ffe1"

Accessors

mode

Methods

checkMode

getData

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

    Returns MINEW_S1_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 getHTData

  • deprecated

    Use MINEW_S1.getData();

    Get temperature and humidity data from the MINEW_S1

    MINEW_S1からの温湿度データを取得

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns null | MINEW_S1_Data

    received temperature and humidity data from the MINEW_S1

    MINEW_S1から受け取った温湿度データ

Static getInfoData

  • Get device information data from the MINEW_S1

    MINEW_S1からのデバイス情報データを取得

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns null | MINEW_S1_InfoData

    received device information data from the MINEW_S1

    MINEW_S1から受け取ったデバイス情報データ

Static getServiceUuids

Static info

  • Information of parts. name: PartsName

    Returns ObnizPartsInfo

Static isDevice

Static isDeviceWithMode

Generated using TypeDoc