You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a project in which we connect to a Raspberry PI device. This PI device makes a hotspot and we make a connection to PI using WIFI. If Mobile data is off then all APIs request are sent to WIFI but if mobile data is on then APIs request doesn't redirect to wifi instead request are send to Mobile data.
I try forceWifiUsage method but that is not also working. wifi.forceWifiUsage(true); wifi.findAndConnect(FlyDetect-${this.props.navigation.state.params.deviceSerial.substr(11)}, API.pIDevicePassword, (found) => { if (found) { this.checkConnection(); } else { alert(strings("errorMessages.CT1008", this.lang)) } });
I am working on a project in which we connect to a Raspberry PI device. This PI device makes a hotspot and we make a connection to PI using WIFI. If Mobile data is off then all APIs request are sent to WIFI but if mobile data is on then APIs request doesn't redirect to wifi instead request are send to Mobile data.
I try forceWifiUsage method but that is not also working.
wifi.forceWifiUsage(true); wifi.findAndConnect(
FlyDetect-${this.props.navigation.state.params.deviceSerial.substr(11)}, API.pIDevicePassword, (found) => { if (found) { this.checkConnection(); } else { alert(strings("errorMessages.CT1008", this.lang)) } });
wifi.connectionStatusOfBoundNetwork((isBound) => {
if (isBound) {
this.getConfig();
} else {
alert('no');
this.checkConnection();
}
});
after implementing this all request are going to mobile data, instead of wifi.
What am I doing wrong ?
The text was updated successfully, but these errors were encountered: