Closed PrudhviBanki closed 10 months ago
console.log('wifiSSID:', this.state.wifiSSID); console.log('password:', this.state.password); WifiTethering.connectToNetwork(this.state.wifiSSID, this.state.password, true, 6000) .then(() => { console.log("Connected successfully!"); }) .catch(error => { console.error("Error connecting to network:", error); });
this will work? facing issue
Which android version do you use? Device type?
Is it always fail to connect? Are you sure you allow all permissions needed?
console.log('wifiSSID:', this.state.wifiSSID); console.log('password:', this.state.password); WifiTethering.connectToNetwork(this.state.wifiSSID, this.state.password, true, 6000) .then(() => { console.log("Connected successfully!"); }) .catch(error => { console.error("Error connecting to network:", error); });
this will work? facing issue