4
NHN NEXT THIS PLUS TECHNICAL REPORT CONNECTTION BETWEEN PHONES BY WI-FI AP’S MAC ADDRESS (THANKS TO NAM-SEHYUN)

Nhn next this plus technical report

Embed Size (px)

DESCRIPTION

Wi-Fi MAC Address를 통해 같은 구역에 있는지 식별하기. 간단한 방법만 제시되어 있습니다. 처음으로 영어로 써 본 PPT라 영어가 이상하게 적혀있을지도..

Citation preview

Page 1: Nhn next this plus technical report

NHN NEXT THIS PLUS TECHNICAL REPORTCONNECTTION BETWEEN PHONES BY WI-FI AP’S MAC ADDRESS (THANKS TO NAM-SEHYUN)

Page 2: Nhn next this plus technical report

HOW TO KNOW PERSON AT SAME PUBLIC TRANSPORTATION?

Find enable Wi-Fi AP

Get enable Wi-Fi AP’s MAC Address

Request that create room by MAC Address Handle that MAC Addresses at same section is same

Create room

Connect person at same public transportation

Page 3: Nhn next this plus technical report

ANDROID.NET.WIFI

‘android.net.wifi’ provides classes to manage Wi-Fi functionality on the device.

We need that!

Page 4: Nhn next this plus technical report

FIND ENABLE WI-FI AP AND GET MAC ADDRESS (BSSID)

First, we should check Wi-Fi option on device. (if the option is disable, we can’t use Man-ager) WifiManager wm = (WifiManager)getSystemService(Context.WIFI_SERVICE);

if(wm.isWifiEnabled())

wm.setWifiEnabled(true);

And, find enable Wi-Fi and get BSSID (BSSID is same with MAC ADDRESS) Use List<ScanResult> getScanResults ()

So, you can get ScanResult of List

And use ScanResult.BSSID Field