added http to address

development
Thiemann96 4 years ago
parent a6399cf4e9
commit a09ab7614a

@ -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 })
}

@ -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

@ -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 => {

Loading…
Cancel
Save