development
Thiemann96 5 years ago
parent 6d7c9bdece
commit 77a981cac8

@ -19,11 +19,11 @@
<ion-card-content> <ion-card-content>
<ion-item> <ion-item>
<ion-label>SSID</ion-label> <ion-label>SSID</ion-label>
<ion-input [(ngModel)]="ssid" placeholder="GIATSCHOOL-NET"></ion-input> <ion-input [(ngModel)]="ssid" ></ion-input>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label>{{'Password'|translate}}</ion-label> <ion-label>{{'Password'|translate}}</ion-label>
<ion-input [(ngModel)]="pw" placeholder="********"></ion-input> <ion-input [(ngModel)]="pw" ></ion-input>
</ion-item> </ion-item>
</ion-card-content> </ion-card-content>
</ion-card> </ion-card>

@ -44,10 +44,8 @@ export class ConfigurationPage {
return returnValue; return returnValue;
} }
async uploadStandardSketch() { async uploadStandardSketch() {
const sketch = await this.loginProvider.getUserSketch(this.token,this.box._id,this.ssid,this.pw) const sketch = await this.loginProvider.getUserSketch(this.token,this.box._id,this.ssid,this.pw)
console.log(sketch); this.navCtrl.push(OtaWizardPage,{sketch})
this.navCtrl.push(OtaWizardPage,{sketch})
} }
addSensor() { addSensor() {

@ -29,7 +29,7 @@ export class LoginPage {
private async submitLogin(form){ private async submitLogin(form){
try { try {
this.token = await this.loginProvider.login("e_thie10@uni-muenster.de","Qxpxtexb1") this.token = await this.loginProvider.login(form.values.email,form.values.password)
this.boxes = await this.loginProvider.getUserBoxes(this.token); this.boxes = await this.loginProvider.getUserBoxes(this.token);
} }
catch(err){ catch(err){

Loading…
Cancel
Save