UNPKG

obniz

Version:

obniz sdk for javascript

32 lines (31 loc) 1.37 kB
/** * @packageDocumentation * @module Parts.iBS */ import { ObnizBleBeaconStructCheck, ObnizBleBeaconStructNormal, ObnizPartsBle } from '../../../../obniz/ObnizPartsBleAbstract'; declare const magic: { 1: number[]; 1.1: number[]; 2: number[]; 3: number[]; 4: number[]; 5: number[]; }; declare type PresetConfigName = 'battery' | 'button' | 'moving' | 'event' | 'proximity' | 'pir' | 'input_trigger' | 'fall' | 'acceleration' | 'temperature' | 'humidity' | 'voltage' | 'current' | 'flood' | 'triggered' | 'triggered_count' | 'count' | 'user'; /** abstract class common to the iBS series iBSシリーズ共通の抽象クラス */ export declare abstract class BaseiBS<S> extends ObnizPartsBle<S> { static readonly AvailableBleMode = "Beacon"; static readonly BeaconDataLength: number; static readonly CompanyID: number[]; protected static getUniqueData(series: keyof typeof magic, subtype: number, addLength?: number, scanResponse?: boolean): { [key in 'magic' | 'subtype']: ObnizBleBeaconStructCheck; }; static readonly Config: { [key in PresetConfigName]: ObnizBleBeaconStructNormal<unknown, never>; }; } /** abstract class for iBS iBS01のための抽象クラス */ export declare abstract class BaseiBS01<S> extends BaseiBS<S> { static readonly CompanyID: number[]; } export default BaseiBS;