Parcourir la source

Merge remote-tracking branch 'origin/master'

linfeng il y a 1 an
Parent
commit
35fbdf80ee

+ 7 - 2
android/app/src/main/java/com/example/smartledz_wifi_test/MainActivity.java

@@ -98,9 +98,14 @@ public class MainActivity extends FlutterActivity {
                 throw new RuntimeException(e);
             }
             EventChannelPlugin.getInstance().sendEventData(response.toString());
-//            wifiList.add(wifi);
         }
-
+        response = new JSONObject();
+        try {
+            response.put("cmd","scanComplete");
+        } catch (JSONException e) {
+            throw new RuntimeException(e);
+        }
+        EventChannelPlugin.getInstance().sendEventData(response.toString());
 
     }