added http to address

development
Thiemann96 4 years ago
parent a6399cf4e9
commit a09ab7614a

@ -59,7 +59,6 @@ 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 })
} }

@ -170,7 +170,8 @@ export class OtaWizardPage implements OnInit, OnDestroy {
case OtaSlides.Compilation: case OtaSlides.Compilation:
this.handleCompilation() this.handleCompilation()
break break
case OtaSlides.Mode:
break
case OtaSlides.WifiSelection: case OtaSlides.WifiSelection:
this.handleWifiSelection() this.handleWifiSelection()
break break

@ -70,7 +70,7 @@ export class OtaWifiProvider {
async uploadFirmware (binary: ArrayBuffer,OTAAddress:String): Promise<any> { async uploadFirmware (binary: ArrayBuffer,OTAAddress:String): Promise<any> {
// TODO: send checksum? // TODO: send checksum?
return this.http.post(`${OTAAddress}/sketch`, binary, { return this.http.post(`http://${OTAAddress}/sketch`, binary, {
responseType: 'text', responseType: 'text',
}) })
.pipe(timeout(5000), catchError(err => { .pipe(timeout(5000), catchError(err => {

Loading…
Cancel
Save