wifidirectplugin 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ public class WifiDirectPlugin extends Plugin {
33
33
 
34
34
  @PluginMethod
35
35
  public void scanWifiPeers(PluginCall call) {
36
- Log.d(TAG, "scanWifiPeers Called");
36
+ Log.d(TAG, "scanWifiPeers Calleded");
37
37
  manager.discoverPeers(channel, new WifiP2pManager.ActionListener() {
38
38
  @Override
39
39
  public void onSuccess() {
@@ -43,7 +43,7 @@ public class WifiDirectPlugin extends Plugin {
43
43
  JSONArray devicesJson = new JSONArray();
44
44
  for(WifiP2pDevice device: peerWifiDirDevices) {
45
45
  try {
46
- if(!device.deviceName.toUpperCase().contains("LINKVUE")) continue;
46
+ // if(!device.deviceName.toUpperCase().contains("LINKVUE")) continue;
47
47
 
48
48
  JSONObject deviceJson = new JSONObject();
49
49
  deviceJson.put("deviceName", device.deviceName);
@@ -52,7 +52,7 @@ public class WifiDirectPlugin extends Plugin {
52
52
  deviceJson.put("connected", device.status == WifiP2pDevice.CONNECTED);
53
53
  devicesJson.put(deviceJson);
54
54
  } catch (JSONException e) {
55
- e.printStackTrace();
55
+ Log.e(TAG, "JSON error: ", e);
56
56
  }
57
57
  }
58
58
  JSObject ret = new JSObject();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wifidirectplugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "HT-Installer Wifi Direct Plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",