1
0
Fork 0
mirror of https://github.com/sensebox/blockly-app synced 2025-04-05 09:00:27 +02:00

added http to address

This commit is contained in:
Thiemann96 2020-03-28 18:29:18 +01:00
parent a6399cf4e9
commit a09ab7614a
3 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,6 @@ export class BlocklyPage implements OnInit {
async launchOtaWizard () {
const sketch = await this.blockly.getSketch()
console.log(typeof sketch);
this.navCtrl.push(OtaWizardPage, { sketch })
}

View file

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

View file

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