WiFiFlutter
WiFiFlutter copied to clipboard
cant find AP Android
Hello, I want to programm a App to connect to my Raspberry Pi but I only get the Popup Window with searching device but It cant find it. I checked the SSID etc and everything is right. After a week of trouble shooting I dont know where to look to find a solution. Pls Help.
void connectToWifi(String SSID, String? BSSID) async { if (state == false) { state = true; message = SSID; showToast(context); bool isConnected = await WiFiForIoTPlugin.connect( SSID, security: NetworkSecurity.NONE, joinOnce: true, withInternet: false, timeoutInSeconds: 30, ); if (isConnected == true) { message = 'Connected to Raspberry Pi'; showToast(context); setState(() { instruction = 'Test'; }); } } else { state = false; } }