mirror of
https://github.com/sensebox/blockly-app
synced 2025-04-08 22:00:28 +02:00
starts ota wizard on button
This commit is contained in:
parent
aa760714fd
commit
0f92171cea
2 changed files with 9 additions and 6 deletions
|
@ -59,6 +59,7 @@ export class BlocklyPage implements OnInit {
|
||||||
|
|
||||||
async launchOtaWizard () {
|
async launchOtaWizard () {
|
||||||
const sketch = await this.blockly.getSketch()
|
const sketch = await this.blockly.getSketch()
|
||||||
|
console.log(typeof sketch);
|
||||||
this.navCtrl.push(OtaWizardPage, { sketch })
|
this.navCtrl.push(OtaWizardPage, { sketch })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { IonicPage, NavController, NavParams } from 'ionic-angular';
|
import { IonicPage, NavController, NavParams } from 'ionic-angular';
|
||||||
|
import { OtaWizardPage } from '../ota-wizard/ota-wizard';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated class for the AboutPage page.
|
* Generated class for the AboutPage page.
|
||||||
|
@ -23,17 +24,18 @@ export class ConfigurationPage {
|
||||||
constructor(public navCtrl: NavController, public navParams: NavParams) {
|
constructor(public navCtrl: NavController, public navParams: NavParams) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async launchOtaWizard () {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
uploadStandardSketch(){
|
uploadStandardSketch(){
|
||||||
console.log(this.temp);
|
|
||||||
console.log(this.humi);
|
|
||||||
console.log(this.lux);
|
|
||||||
console.log(this.uv);
|
|
||||||
console.log(this.pm10);
|
|
||||||
console.log(this.pm25);
|
|
||||||
/**
|
/**
|
||||||
* Start OTA Wizard here but with the pre defined sketch here and not with the blockly sketch
|
* Start OTA Wizard here but with the pre defined sketch here and not with the blockly sketch
|
||||||
*
|
*
|
||||||
* */
|
* */
|
||||||
|
const sketch = 'void setup(){Serial.begin(9600);} void loop(){Serial.println("Working");}'
|
||||||
|
this.navCtrl.push(OtaWizardPage, { sketch })
|
||||||
}
|
}
|
||||||
|
|
||||||
ionViewDidLoad() {
|
ionViewDidLoad() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue