Home Reference Source
      import { iBeacon } from 'buildthing-ble-sdk'
    
public class | source

iBeacon

Extends:

DeviceBeacon → iBeacon

iBeacon 모드 정보를 가지는 비콘 클래스

Constructor Summary

Public Constructor
public

iBeacon 생성자

Member Summary

Public Members
public

Bluetooth SIG 회원사 Company ID

public

UUID, Major, Minor, TxPower 합친 데이터의 길이

public

비콘 major 값 (0~65535)

public

비콘 minor 값 (0~65535)

public

비콘 txPower 값

public

ibeacon 식별자 (0b2b0848-205f-11e9-ab14-820316983006)

Method Summary

Public Methods
public

companyId 값을 가져오는 함수

public

UUID, Major, Minor, TxPower 데이터의 길이 값을 가져오는 함수

public

비콘 major 값 (0~65535) 을 가져오는 함수

public

비콘 minor 값 (0~65535) 을 가져오는 함수

public

uuid 값을 가져오는 함수

public

setCompanyId(companyId: string)

companyId 값을 설정하는 함수

public

setDataLength(dataLength: number)

UUID, Major, Minor, TxPower 데이터의 길이 값을 설정하는 함수

public

setMajor(major: number)

비콘 major 값 (0~65535) 을 설정하는 함수

public

setMinor(minor: type)

비콘 minor 값 (0~65535) 을 설정하는 함수

public

setUuid(uuid: string)

uuid 값을 설정하는 함수

Inherited Summary

From class Device
public

디바이스 맥 어드레스

public
public

디바이스 펌웨어 버전 값

public

디바이스 식별 id

public

디바이스 이름

public

디바이스 수신 세기를 나태내는 rssi 값

public

디바이스 타입

public

디바이스 맥 어드레스 가져오는 함수

public

디바이스 id 가져오는 함수

public

디바이스 이름 가져오는 함수

public

수신한 본래의 디바이스 정보를 담은 객체를 가져오는 함수

public

디바이스 rssi 값을 가져오는 함수

public

디바이스 타입을 가져오는 함수

public

setAddress(address: string)

디바이스 맥 어드레스 설정하는 함수

public

setId(id: string)

디바이스 id 설정하는 함수

public

setName(name: string)

디바이스 이름 설정하는 함수

public

setPeripheral(peripheral: Object)

수신한 본래의 디바이스 정보를 담은 객체를 설정하는 함수

public

setRssi(rssi: number)

디바이스 rssi 값을 설정하는 함수

public

setType(type: number)

디바이스 타입을 설정하는 함수

public

디바이스 기본 정보를 리턴하는 함수

From class Beacon
public static

사용하고 있는 distanceCalculator 인스턴스 가져오는 함수

public static

실제 사용할 distanceCalculator 설정 하는 함수

public

비콘의 거리 계산 값

public

현재 비콘 모드 (BuildThing, iBeacon, EddyStoneTLM, EddyStoneUID, EddyStoneURL)

public

ranging 할때에, 비콘 패킷 수신 횟수

public

ranging 할때에, filter 을 통해 rssi 값을 재측정 한 횟수

public

비콘 txPower 값

public

비콘과의 대략적인 거리를 계산하는 함수

public

비콘과의 대략적인 거리를 가져오는 함수

public

ranging 할때에, filter 을 통해 rssi 값을 재측정 한 횟수 를 가져오는 하는 함수

public

현재 비콘 모드를 가져오는 함수

public

ranging 할때에, 비콘 패킷 수신 횟수 정보를 가져오는 함수

public

비콘 txPower 값을 가져오는 함수

public

setMode(mode: string)

현재 비콘 모드를 설정하는 함수

public

setPacketCount(packetCount: number)

ranging 할때에, 비콘 패킷 수신 횟수 정보를 설정하는 함수

public

setRssiMeasurementCount(rssiMeasurementCount: number)

ranging 할때에, filter 을 통해 rssi 값을 재측정 한 횟수 를 설정 하는 함수

public

setTxPower(txPower: Object)

비콘 txPower 값을 설정하는 함수

Public Constructors

public constructor(data: Object) source

iBeacon 생성자

Override:

Beacon#constructor

Params:

NameTypeAttributeDescription
data Object

초기화 정보 객체

data.companyId string

Bluetooth SIG 회원사 Company ID

data.dataLength number

UUID, Major, Minor, TxPower 데이터의 길이

data.uuid string

ibeacon 식별자 (0b2b0848-205f-11e9-ab14-820316983006)

data.major number

비콘 major 값 (0~65535)

data.minor number

비콘 minor 값 (0~65535)

data.txPower Object

비콘 txPower 값

Public Members

public companyId: string source

Bluetooth SIG 회원사 Company ID

public dataLength: number source

UUID, Major, Minor, TxPower 합친 데이터의 길이

public major: number source

비콘 major 값 (0~65535)

public minor: number source

비콘 minor 값 (0~65535)

public txPower: Object source

비콘 txPower 값

Override:

Beacon#txPower

Properties:

NameTypeAttributeDescription
value number

실제 값

unit string

단위

public uuid: string source

ibeacon 식별자 (0b2b0848-205f-11e9-ab14-820316983006)

Public Methods

public getCompanyId(): string source

companyId 값을 가져오는 함수

Return:

string

Bluetooth SIG 회원사 Company ID

public getDataLength(): number source

UUID, Major, Minor, TxPower 데이터의 길이 값을 가져오는 함수

Return:

number

UUID, Major, Minor, TxPower 데이터의 길이

public getMajor(): number source

비콘 major 값 (0~65535) 을 가져오는 함수

Return:

number

비콘 major 값 (0~65535)

public getMinor(): number source

비콘 minor 값 (0~65535) 을 가져오는 함수

Return:

number

비콘 minor 값 (0~65535)

public getUuid(): string source

uuid 값을 가져오는 함수

Return:

string

ibeacon 식별자 (0b2b0848-205f-11e9-ab14-820316983006)

public setCompanyId(companyId: string) source

companyId 값을 설정하는 함수

Params:

NameTypeAttributeDescription
companyId string

Bluetooth SIG 회원사 Company ID

public setDataLength(dataLength: number) source

UUID, Major, Minor, TxPower 데이터의 길이 값을 설정하는 함수

Params:

NameTypeAttributeDescription
dataLength number

UUID, Major, Minor, TxPower 데이터의 길이

public setMajor(major: number) source

비콘 major 값 (0~65535) 을 설정하는 함수

Params:

NameTypeAttributeDescription
major number

비콘 major 값 (0~65535)

public setMinor(minor: type) source

비콘 minor 값 (0~65535) 을 설정하는 함수

Params:

NameTypeAttributeDescription
minor type

비콘 minor 값 (0~65535)

public setUuid(uuid: string) source

uuid 값을 설정하는 함수

Params:

NameTypeAttributeDescription
uuid string

ibeacon 식별자 (0b2b0848-205f-11e9-ab14-820316983006)