|
|
|
@ -21,8 +21,8 @@ export class WifiModalComponent implements OnInit {
|
|
|
|
public userData: any = {};
|
|
|
|
public userData: any = {};
|
|
|
|
public gifStatus = false;
|
|
|
|
public gifStatus = false;
|
|
|
|
|
|
|
|
|
|
|
|
private ssid = 'HMG-MobileApp'; // Mobile-Team-Official
|
|
|
|
private ssid = CommonService.MOHEMM_WIFI_SSID; // Mobile-Team-Official
|
|
|
|
private password = '12345678';
|
|
|
|
private password = CommonService.MOHEMM_WIFI_PASSWORD;
|
|
|
|
private algo = 'WPA'; // WPA -> WPA2
|
|
|
|
private algo = 'WPA'; // WPA -> WPA2
|
|
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
constructor(
|
|
|
|
@ -78,9 +78,8 @@ export class WifiModalComponent implements OnInit {
|
|
|
|
console.log("Connecting wifi to mark attendance...");
|
|
|
|
console.log("Connecting wifi to mark attendance...");
|
|
|
|
this.wifiWizard2.iOSConnectNetwork(this.ssid,this.password).then((value) => {
|
|
|
|
this.wifiWizard2.iOSConnectNetwork(this.ssid,this.password).then((value) => {
|
|
|
|
|
|
|
|
|
|
|
|
let ssid_ = this.wifiWizard2.getConnectedSSID();
|
|
|
|
|
|
|
|
let bssid = this.wifiWizard2.getConnectedBSSID();
|
|
|
|
let bssid = this.wifiWizard2.getConnectedBSSID();
|
|
|
|
console.log("Wifi Connected: Verified Access | " + value + " | " + ssid_ + " | " + bssid);
|
|
|
|
console.log("Wifi Connected: Verified Access | " + value + " | " + bssid);
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.swipeAttendanceWifi(this.ssid);
|
|
|
|
this.swipeAttendanceWifi(this.ssid);
|
|
|
|
},1000);
|
|
|
|
},1000);
|
|
|
|
|