JianXin 1 рік тому
батько
коміт
8c86f61dec

+ 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());
 
     }