Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #208 from denzilferreira/development
Browse files Browse the repository at this point in the history
- Added wifi scan start and end to logcat for debugging purposes.
  • Loading branch information
denzilferreira authored Jul 11, 2017
2 parents b5808ae + bc2e162 commit 29948be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aware-core/src/main/java/com/aware/WiFi.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ public String call() throws Exception {
mContext.sendBroadcast(detectedAP);
}

if (Aware.DEBUG) Log.d(TAG, ACTION_AWARE_WIFI_SCAN_ENDED);

Intent scanEnd = new Intent(ACTION_AWARE_WIFI_SCAN_ENDED);
mContext.sendBroadcast(scanEnd);

Expand All @@ -264,6 +266,7 @@ protected void onHandleIntent(Intent intent) {

if (intent.getAction().equals(WiFi.ACTION_AWARE_WIFI_REQUEST_SCAN)) {
if (wifiManager.isWifiEnabled()) {
if (Aware.DEBUG) Log.d(TAG, ACTION_AWARE_WIFI_SCAN_STARTED);
Intent scanStart = new Intent(ACTION_AWARE_WIFI_SCAN_STARTED);
sendBroadcast(scanStart);
wifiManager.startScan();
Expand Down

0 comments on commit 29948be

Please sign in to comment.