Upload
taeung-ra
View
168
Download
0
Embed Size (px)
DESCRIPTION
Wi-Fi MAC Address를 통해 같은 구역에 있는지 식별하기. 간단한 방법만 제시되어 있습니다. 처음으로 영어로 써 본 PPT라 영어가 이상하게 적혀있을지도..
Citation preview
NHN NEXT THIS PLUS TECHNICAL REPORTCONNECTTION BETWEEN PHONES BY WI-FI AP’S MAC ADDRESS (THANKS TO NAM-SEHYUN)
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
ANDROID.NET.WIFI
‘android.net.wifi’ provides classes to manage Wi-Fi functionality on the device.
We need that!
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