BluetoothLEScanDeviceEventInfo

개요

게시(Advertisement)중인 Peripheral 디바이스가 검색되었을 때 발생하는 이벤트에 전달되는 EventInfo 오브젝트입니다.

지원 환경

Desktop NRE

Desktop WRE

☑ Windows

☑ macOS

☐ Edge

☐ Chrome

☐ Safari

☐ Firefox

☐ Opera

Mobile NRE

Mobile WRE

☑ Android

☑ iOS/iPadOS

☐ Android

☐ iOS/iPadOS




속성

deviceaddress

게시(Advertisement)중인 Peripheral 디바이스의 주소값을 갖는 읽기전용 속성입니다.

지원 환경

Desktop NRE

Desktop WRE

☑ Windows

☑ macOS

☐ Edge

☐ Chrome

☐ Safari

☐ Firefox

☐ Opera

Mobile NRE

Mobile WRE

☑ Android

☑ iOS/iPadOS

☐ Android

☐ iOS/iPadOS




속성 타입

☐ Enum

☐ Expr

☐ Control

☐ Hidden

☑ ReadOnly

☐ Bind

☐ Collection

☐ StringResource

문법

BluetoothLEScanDeviceEventInfo.deviceaddress

문법 설정

var strDeviceAddress = e.deviceaddress

deviceaddress

Windows NRE 와 Android NRE 는 MAC Address 값을 갖습니다.


iOS/iPadOS NRE 는 검색된 디바이스 목록의 Index 값을 갖습니다.


macOS NRE 는 OS 가 부여한 UUID 값을 갖습니다.

참고

- 게시(Advertisement)중인 Peripheral 디바이스가 여러개 일 경우 onscanresult 이벤트가 여러번 발생합니다.
   이 때, 발생하는 onscanresult 이벤트마다 검색된 디바이스의 주소가 deviceaddress 속성으로 전달됩니다.

devicename

게시(Advertisement)중인 Peripheral 디바이스의 이름을 갖는 읽기전용 속성입니다.

지원 환경

Desktop NRE

Desktop WRE

☑ Windows

☑ macOS

☐ Edge

☐ Chrome

☐ Safari

☐ Firefox

☐ Opera

Mobile NRE

Mobile WRE

☑ Android

☑ iOS/iPadOS

☐ Android

☐ iOS/iPadOS




속성 타입

☐ Enum

☐ Expr

☐ Control

☐ Hidden

☑ ReadOnly

☐ Bind

☐ Collection

☐ StringResource

문법

BluetoothLEScanDeviceEventInfo.devicename

문법 설정

var strDeviceName = e.devicename

devicename

Android NRE 이면 Advertisement Name 값을 갖습니다.


Android NRE 이외의 환경에서는 Device Name 값을 갖습니다.

참고

- 게시(Advertisement)중인 Peripheral 디바이스가 여러개 일 경우 onscanresult 이벤트가 여러번 발생합니다.
   이 때, 발생하는 onscanresult 이벤트마다 검색된 디바이스 이름이 devicename 속성으로 전달됩니다.

eventid

이벤트의 ID를 갖는 읽기전용 속성입니다.

지원 환경

Desktop NRE

Desktop WRE

☑ Windows

☑ macOS

☑ Edge

☑ Chrome

☑ Safari

☑ Firefox

☑ Opera

Mobile NRE

Mobile WRE

☑ Android

☑ iOS/iPadOS

☑ Android

☑ iOS/iPadOS




속성 타입

☐ Enum

☐ Expr

☐ Control

☐ Hidden

☑ ReadOnly

☐ Bind

☐ Collection

☐ StringResource

문법

BluetoothLEScanDeviceEventInfo.eventid

문법 설정

var strEventid = e.eventid;

참고

- 이벤트에 핸들러로 등록된 함수의 이름이 아닌 발생한 이벤트명을 갖습니다.